(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 (v)

Summary

Commit Testing Time Unexpected
Failures
Expected
Failures
Files Tests Elapsed Time
f837686b 2020-10-27 03:33:36 GMT 8303 440 115 10606 5248 sec

LuaJIT

LuaJIT 2.1.0-beta3, commit 70f88773

Compilation Errors

Unexpected Failures

File Name Details
002-content.t TEST 12: ngx.say table arguments (github issue #54) - Can't connect to 127.0.0.1:1984: Connection refused ==19799== Invalid read of size 4
==19799== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19799== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19799== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19799== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19799== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19799== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19799== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19799== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19799== by 0x8062D4E: main (nginx.c:382)
==19799== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19799==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
002-content.t TEST 12: ngx.say table arguments (github issue #54) - Can't connect to 127.0.0.1:1984: Connection refused ==19799==
==19799== Process terminating with default action of signal 11 (SIGSEGV)
==19799== Access not within mapped region at address 0x0
==19799== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19799== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19799== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19799== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19799== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19799== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19799== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19799== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19799== by 0x8062D4E: main (nginx.c:382)
==19799== If you believe this happened as a result of a stack
==19799== overflow in your program's main thread (unlikely but
==19799== possible), you can try to increase the size of the
==19799== main thread stack using the --main-stacksize= flag.
==19799== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 15: syntax error in inlined Lua code - Can't connect to 127.0.0.1:1984: Connection refused ==19801== Invalid read of size 4
==19801== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19801== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19801== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19801== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19801== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19801== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19801== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19801== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19801== by 0x8062D4E: main (nginx.c:382)
==19801== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19801==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
002-content.t TEST 15: syntax error in inlined Lua code - Can't connect to 127.0.0.1:1984: Connection refused ==19801==
==19801== Process terminating with default action of signal 11 (SIGSEGV)
==19801== Access not within mapped region at address 0x0
==19801== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19801== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19801== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19801== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19801== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19801== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19801== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19801== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19801== by 0x8062D4E: main (nginx.c:382)
==19801== If you believe this happened as a result of a stack
==19801== overflow in your program's main thread (unlikely but
==19801== possible), you can try to increase the size of the
==19801== main thread stack using the --main-stacksize= flag.
==19801== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - pattern "(?^:failed to load inlined Lua code: )" should match a line in error.log (req 1)
002-content.t TEST 4: calc expression - 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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19803== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
002-content.t TEST 4: calc expression - 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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19803== by 0x8062D4E: main (nginx.c:382)
==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 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 9: multiple eof - Can't connect to 127.0.0.1:1984: Connection refused ==19805== Invalid read of size 4
==19805== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19805== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19805== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19805== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19805== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19805== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19805== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19805== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19805== by 0x8062D4E: main (nginx.c:382)
==19805== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19805==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
002-content.t TEST 9: multiple eof - Can't connect to 127.0.0.1:1984: Connection refused ==19805==
==19805== Process terminating with default action of signal 11 (SIGSEGV)
==19805== Access not within mapped region at address 0x0
==19805== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19805== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19805== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19805== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19805== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19805== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19805== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19805== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19805== by 0x8062D4E: main (nginx.c:382)
==19805== If you believe this happened as a result of a stack
==19805== overflow in your program's main thread (unlikely but
==19805== possible), you can try to increase the size of the
==19805== main thread stack using the --main-stacksize= flag.
==19805== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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)
002-content.t TEST 9: multiple eof - pattern "lua send eof" should match a line in error.log (req 1)
002-content.t TEST 9: multiple eof - pattern "eof failed: seen eof" should match a line in error.log (req 1)
002-content.t TEST 11: ngx.print table arguments (github issue #54) - Can't connect to 127.0.0.1:1984: Connection refused ==19807== Invalid read of size 4
==19807== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19807== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19807== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19807== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19807== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19807== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19807== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19807== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19807== by 0x8062D4E: main (nginx.c:382)
==19807== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19807==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
002-content.t TEST 11: ngx.print table arguments (github issue #54) - Can't connect to 127.0.0.1:1984: Connection refused ==19807==
==19807== Process terminating with default action of signal 11 (SIGSEGV)
==19807== Access not within mapped region at address 0x0
==19807== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19807== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19807== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19807== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19807== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19807== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19807== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19807== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19807== by 0x8062D4E: main (nginx.c:382)
==19807== If you believe this happened as a result of a stack
==19807== overflow in your program's main thread (unlikely but
==19807== possible), you can try to increase the size of the
==19807== main thread stack using the --main-stacksize= flag.
==19807== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==19809== Invalid read of size 4
==19809== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19809== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19809== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19809== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19809== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19809== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19809== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19809== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19809== by 0x8062D4E: main (nginx.c:382)
==19809== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19809==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
002-content.t TEST 13: Lua file does not exist - Can't connect to 127.0.0.1:1984: Connection refused ==19809==
==19809== Process terminating with default action of signal 11 (SIGSEGV)
==19809== Access not within mapped region at address 0x0
==19809== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19809== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19809== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19809== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19809== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19809== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19809== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19809== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19809== by 0x8062D4E: main (nginx.c:382)
==19809== If you believe this happened as a result of a stack
==19809== overflow in your program's main thread (unlikely but
==19809== possible), you can try to increase the size of the
==19809== main thread stack using the --main-stacksize= flag.
==19809== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - pattern "(?^:failed to load external Lua file ".*?test2\.lua": cannot open .*? No such file or directory)" should match a line in error.log (req 1)
002-content.t TEST 6: write boolean - Can't connect to 127.0.0.1:1984: Connection refused ==19811== Invalid read of size 4
==19811== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19811== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19811== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19811== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19811== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19811== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19811== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19811== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19811== by 0x8062D4E: main (nginx.c:382)
==19811== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19811==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
002-content.t TEST 6: write boolean - Can't connect to 127.0.0.1:1984: Connection refused ==19811==
==19811== Process terminating with default action of signal 11 (SIGSEGV)
==19811== Access not within mapped region at address 0x0
==19811== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19811== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19811== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19811== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19811== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19811== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19811== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19811== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19811== by 0x8062D4E: main (nginx.c:382)
==19811== If you believe this happened as a result of a stack
==19811== overflow in your program's main thread (unlikely but
==19811== possible), you can try to increase the size of the
==19811== main thread stack using the --main-stacksize= flag.
==19811== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 5: nil is "nil" - Can't connect to 127.0.0.1:1984: Connection refused ==19813== Invalid read of size 4
==19813== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19813== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19813== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19813== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19813== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19813== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19813== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19813== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19813== by 0x8062D4E: main (nginx.c:382)
==19813== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19813==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
002-content.t TEST 5: nil is "nil" - Can't connect to 127.0.0.1:1984: Connection refused ==19813==
==19813== Process terminating with default action of signal 11 (SIGSEGV)
==19813== Access not within mapped region at address 0x0
==19813== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19813== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19813== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19813== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19813== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19813== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19813== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19813== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19813== by 0x8062D4E: main (nginx.c:382)
==19813== If you believe this happened as a result of a stack
==19813== overflow in your program's main thread (unlikely but
==19813== possible), you can try to increase the size of the
==19813== main thread stack using the --main-stacksize= flag.
==19813== 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" - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: basic print - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19815== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
002-content.t TEST 1: basic print - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19815== by 0x8062D4E: main (nginx.c:382)
==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 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 3: no ngx.echo - Can't connect to 127.0.0.1:1984: Connection refused ==19817== Invalid read of size 4
==19817== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19817== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19817== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19817== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19817== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19817== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19817== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19817== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19817== by 0x8062D4E: main (nginx.c:382)
==19817== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19817==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
002-content.t TEST 3: no ngx.echo - Can't connect to 127.0.0.1:1984: Connection refused ==19817==
==19817== Process terminating with default action of signal 11 (SIGSEGV)
==19817== Access not within mapped region at address 0x0
==19817== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19817== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19817== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19817== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19817== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19817== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19817== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19817== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19817== by 0x8062D4E: main (nginx.c:382)
==19817== If you believe this happened as a result of a stack
==19817== overflow in your program's main thread (unlikely but
==19817== possible), you can try to increase the size of the
==19817== main thread stack using the --main-stacksize= flag.
==19817== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
002-content.t TEST 3: no ngx.echo - status code ok got: ''
expected: '200'
002-content.t TEST 3: no ngx.echo - pattern "(?^:content_by_lua\(nginx\.conf:\d+\):1: attempt to call field 'echo' \(a nil value\))" should match a line in error.log (req 1)
002-content.t TEST 14: .lua file with shebang - Can't connect to 127.0.0.1:1984: Connection refused ==19819== Invalid read of size 4
==19819== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19819== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19819== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19819== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19819== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19819== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19819== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19819== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19819== by 0x8062D4E: main (nginx.c:382)
==19819== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19819==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
002-content.t TEST 14: .lua file with shebang - Can't connect to 127.0.0.1:1984: Connection refused ==19819==
==19819== Process terminating with default action of signal 11 (SIGSEGV)
==19819== Access not within mapped region at address 0x0
==19819== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19819== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19819== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19819== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19819== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19819== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19819== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19819== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19819== by 0x8062D4E: main (nginx.c:382)
==19819== If you believe this happened as a result of a stack
==19819== overflow in your program's main thread (unlikely but
==19819== possible), you can try to increase the size of the
==19819== main thread stack using the --main-stacksize= flag.
==19819== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 10: ngx.eof before ngx.say - Can't connect to 127.0.0.1:1984: Connection refused ==19821== Invalid read of size 4
==19821== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19821== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19821== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19821== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19821== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19821== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19821== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19821== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19821== by 0x8062D4E: main (nginx.c:382)
==19821== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19821==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
002-content.t TEST 10: ngx.eof before ngx.say - Can't connect to 127.0.0.1:1984: Connection refused ==19821==
==19821== Process terminating with default action of signal 11 (SIGSEGV)
==19821== Access not within mapped region at address 0x0
==19821== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19821== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19821== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19821== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19821== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19821== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19821== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19821== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19821== by 0x8062D4E: main (nginx.c:382)
==19821== If you believe this happened as a result of a stack
==19821== overflow in your program's main thread (unlikely but
==19821== possible), you can try to increase the size of the
==19821== main thread stack using the --main-stacksize= flag.
==19821== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - pattern "failed to say: seen eof" should match a line in error.log (req 1)
002-content.t TEST 2: basic say - Can't connect to 127.0.0.1:1984: Connection refused ==19823== Invalid read of size 4
==19823== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19823== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19823== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19823== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19823== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19823== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19823== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19823== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19823== by 0x8062D4E: main (nginx.c:382)
==19823== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19823==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
002-content.t TEST 2: basic say - Can't connect to 127.0.0.1:1984: Connection refused ==19823==
==19823== Process terminating with default action of signal 11 (SIGSEGV)
==19823== Access not within mapped region at address 0x0
==19823== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19823== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19823== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19823== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19823== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19823== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19823== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19823== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19823== by 0x8062D4E: main (nginx.c:382)
==19823== If you believe this happened as a result of a stack
==19823== overflow in your program's main thread (unlikely but
==19823== possible), you can try to increase the size of the
==19823== main thread stack using the --main-stacksize= flag.
==19823== 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 (aborted) '
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 8: nginx quote sql string 2 - Can't connect to 127.0.0.1:1984: Connection refused ==19825== Invalid read of size 4
==19825== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19825== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19825== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19825== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19825== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19825== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19825== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19825== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19825== by 0x8062D4E: main (nginx.c:382)
==19825== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19825==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
002-content.t TEST 8: nginx quote sql string 2 - Can't connect to 127.0.0.1:1984: Connection refused ==19825==
==19825== Process terminating with default action of signal 11 (SIGSEGV)
==19825== Access not within mapped region at address 0x0
==19825== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19825== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19825== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19825== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19825== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19825== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19825== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19825== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19825== by 0x8062D4E: main (nginx.c:382)
==19825== If you believe this happened as a result of a stack
==19825== overflow in your program's main thread (unlikely but
==19825== possible), you can try to increase the size of the
==19825== main thread stack using the --main-stacksize= flag.
==19825== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 7: nginx quote sql string 1 - Can't connect to 127.0.0.1:1984: Connection refused ==19827== Invalid read of size 4
==19827== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19827== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19827== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19827== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19827== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19827== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19827== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19827== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19827== by 0x8062D4E: main (nginx.c:382)
==19827== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19827==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
002-content.t TEST 7: nginx quote sql string 1 - Can't connect to 127.0.0.1:1984: Connection refused ==19827==
==19827== Process terminating with default action of signal 11 (SIGSEGV)
==19827== Access not within mapped region at address 0x0
==19827== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19827== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19827== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19827== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19827== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19827== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19827== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19827== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19827== by 0x8062D4E: main (nginx.c:382)
==19827== If you believe this happened as a result of a stack
==19827== overflow in your program's main thread (unlikely but
==19827== possible), you can try to increase the size of the
==19827== main thread stack using the --main-stacksize= flag.
==19827== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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)
003-errors.t TEST 2: syntax error in lua file - Can't connect to 127.0.0.1:1984: Connection refused ==19832== Invalid read of size 4
==19832== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19832== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19832== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19832== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19832== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19832== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19832== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19832== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19832== by 0x8062D4E: main (nginx.c:382)
==19832== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19832==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==19832==
==19832== Process terminating with default action of signal 11 (SIGSEGV)
==19832== Access not within mapped region at address 0x0
==19832== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19832== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19832== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19832== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19832== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19832== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19832== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19832== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19832== by 0x8062D4E: main (nginx.c:382)
==19832== If you believe this happened as a result of a stack
==19832== overflow in your program's main thread (unlikely but
==19832== possible), you can try to increase the size of the
==19832== main thread stack using the --main-stacksize= flag.
==19832== 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 (aborted) '
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 - pattern "(?^:failed to load external Lua file ".*?html/test\.lua": .*?test\.lua:2: unexpected symbol near ';')" should match a line in error.log (req 1)
003-errors.t TEST 1: syntax error in lua code chunk - Can't connect to 127.0.0.1:1984: Connection refused ==19834== Invalid read of size 4
==19834== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19834== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19834== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19834== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19834== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19834== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19834== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19834== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19834== by 0x8062D4E: main (nginx.c:382)
==19834== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19834==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
003-errors.t TEST 1: syntax error in lua code chunk - Can't connect to 127.0.0.1:1984: Connection refused ==19834==
==19834== Process terminating with default action of signal 11 (SIGSEGV)
==19834== Access not within mapped region at address 0x0
==19834== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19834== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19834== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19834== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19834== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19834== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19834== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19834== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19834== by 0x8062D4E: main (nginx.c:382)
==19834== If you believe this happened as a result of a stack
==19834== overflow in your program's main thread (unlikely but
==19834== possible), you can try to increase the size of the
==19834== main thread stack using the --main-stacksize= flag.
==19834== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - pattern "(?^:failed to load inlined Lua code: content_by_lua\(nginx\.conf:\d+\):2: unexpected symbol near ';')" should match a line in error.log (req 1)
004-require.t TEST 3: expand default path (after) - Can't connect to 127.0.0.1:1984: Connection refused ==19839== Invalid read of size 4
==19839== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19839== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19839== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19839== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19839== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19839== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19839== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19839== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19839== by 0x8062D4E: main (nginx.c:382)
==19839== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19839==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
004-require.t TEST 3: expand default path (after) - Can't connect to 127.0.0.1:1984: Connection refused ==19839==
==19839== Process terminating with default action of signal 11 (SIGSEGV)
==19839== Access not within mapped region at address 0x0
==19839== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19839== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19839== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19839== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19839== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19839== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19839== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19839== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19839== by 0x8062D4E: main (nginx.c:382)
==19839== If you believe this happened as a result of a stack
==19839== overflow in your program's main thread (unlikely but
==19839== possible), you can try to increase the size of the
==19839== main thread stack using the --main-stacksize= flag.
==19839== 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 (aborted) '
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 6: expand default cpath (before) - Can't connect to 127.0.0.1:1984: Connection refused ==19841== Invalid read of size 4
==19841== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19841== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19841== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19841== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19841== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19841== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19841== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19841== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19841== by 0x8062D4E: main (nginx.c:382)
==19841== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19841==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
004-require.t TEST 6: expand default cpath (before) - Can't connect to 127.0.0.1:1984: Connection refused ==19841==
==19841== Process terminating with default action of signal 11 (SIGSEGV)
==19841== Access not within mapped region at address 0x0
==19841== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19841== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19841== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19841== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19841== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19841== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19841== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19841== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19841== by 0x8062D4E: main (nginx.c:382)
==19841== If you believe this happened as a result of a stack
==19841== overflow in your program's main thread (unlikely but
==19841== possible), you can try to increase the size of the
==19841== main thread stack using the --main-stacksize= flag.
==19841== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==19843== Invalid read of size 4
==19843== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19843== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19843== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19843== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19843== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19843== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19843== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19843== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19843== by 0x8062D4E: main (nginx.c:382)
==19843== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19843==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
004-require.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==19843==
==19843== Process terminating with default action of signal 11 (SIGSEGV)
==19843== Access not within mapped region at address 0x0
==19843== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19843== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19843== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19843== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19843== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19843== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19843== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19843== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19843== by 0x8062D4E: main (nginx.c:382)
==19843== If you believe this happened as a result of a stack
==19843== overflow in your program's main thread (unlikely but
==19843== possible), you can try to increase the size of the
==19843== main thread stack using the --main-stacksize= flag.
==19843== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 7: require "ngx" (content_by_lua_block) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19845== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
004-require.t TEST 7: require "ngx" (content_by_lua_block) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19845== by 0x8062D4E: main (nginx.c:382)
==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.

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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused ==19847== Invalid read of size 4
==19847== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19847== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19847== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19847== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19847== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19847== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19847== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19847== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19847== by 0x8062D4E: main (nginx.c:382)
==19847== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19847==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
004-require.t TEST 4: expand default cpath (after) - Can't connect to 127.0.0.1:1984: Connection refused ==19847==
==19847== Process terminating with default action of signal 11 (SIGSEGV)
==19847== Access not within mapped region at address 0x0
==19847== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19847== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19847== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19847== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19847== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19847== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19847== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19847== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19847== by 0x8062D4E: main (nginx.c:382)
==19847== If you believe this happened as a result of a stack
==19847== overflow in your program's main thread (unlikely but
==19847== possible), you can try to increase the size of the
==19847== main thread stack using the --main-stacksize= flag.
==19847== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 5: expand default path (before) - Can't connect to 127.0.0.1:1984: Connection refused ==19849== Invalid read of size 4
==19849== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19849== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19849== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19849== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19849== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19849== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19849== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19849== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19849== by 0x8062D4E: main (nginx.c:382)
==19849== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19849==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
004-require.t TEST 5: expand default path (before) - Can't connect to 127.0.0.1:1984: Connection refused ==19849==
==19849== Process terminating with default action of signal 11 (SIGSEGV)
==19849== Access not within mapped region at address 0x0
==19849== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19849== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19849== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19849== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19849== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19849== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19849== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19849== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19849== by 0x8062D4E: main (nginx.c:382)
==19849== If you believe this happened as a result of a stack
==19849== overflow in your program's main thread (unlikely but
==19849== possible), you can try to increase the size of the
==19849== main thread stack using the --main-stacksize= flag.
==19849== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 2: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==19851== Invalid read of size 4
==19851== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19851== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19851== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19851== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19851== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19851== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19851== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19851== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19851== by 0x8062D4E: main (nginx.c:382)
==19851== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19851==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
004-require.t TEST 2: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==19851==
==19851== Process terminating with default action of signal 11 (SIGSEGV)
==19851== Access not within mapped region at address 0x0
==19851== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19851== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19851== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19851== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19851== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19851== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19851== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19851== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19851== by 0x8062D4E: main (nginx.c:382)
==19851== If you believe this happened as a result of a stack
==19851== overflow in your program's main thread (unlikely but
==19851== possible), you can try to increase the size of the
==19851== main thread stack using the --main-stacksize= flag.
==19851== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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$)'
005-exit.t TEST 3: throw 0 - Can't connect to 127.0.0.1:1984: Connection refused ==19856== Invalid read of size 4
==19856== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19856== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19856== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19856== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19856== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19856== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19856== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19856== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19856== by 0x8062D4E: main (nginx.c:382)
==19856== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19856==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
005-exit.t TEST 3: throw 0 - Can't connect to 127.0.0.1:1984: Connection refused ==19856==
==19856== Process terminating with default action of signal 11 (SIGSEGV)
==19856== Access not within mapped region at address 0x0
==19856== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19856== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19856== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19856== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19856== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19856== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19856== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19856== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19856== by 0x8062D4E: main (nginx.c:382)
==19856== If you believe this happened as a result of a stack
==19856== overflow in your program's main thread (unlikely but
==19856== possible), you can try to increase the size of the
==19856== main thread stack using the --main-stacksize= flag.
==19856== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 4: pcall safe - Can't connect to 127.0.0.1:1984: Connection refused ==19858== Invalid read of size 4
==19858== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19858== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19858== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19858== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19858== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19858== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19858== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19858== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19858== by 0x8062D4E: main (nginx.c:382)
==19858== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19858==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
005-exit.t TEST 4: pcall safe - Can't connect to 127.0.0.1:1984: Connection refused ==19858==
==19858== Process terminating with default action of signal 11 (SIGSEGV)
==19858== Access not within mapped region at address 0x0
==19858== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19858== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19858== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19858== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19858== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19858== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19858== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19858== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19858== by 0x8062D4E: main (nginx.c:382)
==19858== If you believe this happened as a result of a stack
==19858== overflow in your program's main thread (unlikely but
==19858== possible), you can try to increase the size of the
==19858== main thread stack using the --main-stacksize= flag.
==19858== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
005-exit.t TEST 6: throw 499 after sending out responses - Can't connect to 127.0.0.1:1984: Connection refused ==19860== Invalid read of size 4
==19860== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19860== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19860== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19860== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19860== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19860== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19860== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19860== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19860== by 0x8062D4E: main (nginx.c:382)
==19860== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19860==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
005-exit.t TEST 6: throw 499 after sending out responses - Can't connect to 127.0.0.1:1984: Connection refused ==19860==
==19860== Process terminating with default action of signal 11 (SIGSEGV)
==19860== Access not within mapped region at address 0x0
==19860== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19860== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19860== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19860== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19860== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19860== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19860== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19860== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19860== by 0x8062D4E: main (nginx.c:382)
==19860== If you believe this happened as a result of a stack
==19860== overflow in your program's main thread (unlikely but
==19860== possible), you can try to increase the size of the
==19860== main thread stack using the --main-stacksize= flag.
==19860== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 2: throw error after sending the header and partial body - Can't connect to 127.0.0.1:1984: Connection refused ==19862== Invalid read of size 4
==19862== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19862== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19862== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19862== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19862== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19862== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19862== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19862== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19862== by 0x8062D4E: main (nginx.c:382)
==19862== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19862==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==19862==
==19862== Process terminating with default action of signal 11 (SIGSEGV)
==19862== Access not within mapped region at address 0x0
==19862== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19862== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19862== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19862== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19862== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19862== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19862== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19862== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19862== by 0x8062D4E: main (nginx.c:382)
==19862== If you believe this happened as a result of a stack
==19862== overflow in your program's main thread (unlikely but
==19862== possible), you can try to increase the size of the
==19862== main thread stack using the --main-stacksize= flag.
==19862== 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 (aborted) '
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 7: throw 408 after sending out responses - Can't connect to 127.0.0.1:1984: Connection refused ==19864== Invalid read of size 4
==19864== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19864== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19864== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19864== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19864== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19864== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19864== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19864== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19864== by 0x8062D4E: main (nginx.c:382)
==19864== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19864==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
005-exit.t TEST 7: throw 408 after sending out responses - Can't connect to 127.0.0.1:1984: Connection refused ==19864==
==19864== Process terminating with default action of signal 11 (SIGSEGV)
==19864== Access not within mapped region at address 0x0
==19864== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19864== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19864== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19864== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19864== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19864== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19864== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19864== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19864== by 0x8062D4E: main (nginx.c:382)
==19864== If you believe this happened as a result of a stack
==19864== overflow in your program's main thread (unlikely but
==19864== possible), you can try to increase the size of the
==19864== main thread stack using the --main-stacksize= flag.
==19864== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 5: throw 444 after sending out responses - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19866== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
005-exit.t TEST 5: throw 444 after sending out responses - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19866== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: throw error - Can't connect to 127.0.0.1:1984: Connection refused ==19868== Invalid read of size 4
==19868== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19868== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19868== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19868== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19868== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19868== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19868== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19868== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19868== by 0x8062D4E: main (nginx.c:382)
==19868== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19868==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
005-exit.t TEST 1: throw error - Can't connect to 127.0.0.1:1984: Connection refused ==19868==
==19868== Process terminating with default action of signal 11 (SIGSEGV)
==19868== Access not within mapped region at address 0x0
==19868== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19868== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19868== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19868== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19868== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19868== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19868== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19868== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19868== by 0x8062D4E: main (nginx.c:382)
==19868== If you believe this happened as a result of a stack
==19868== overflow in your program's main thread (unlikely but
==19868== possible), you can try to increase the size of the
==19868== main thread stack using the --main-stacksize= flag.
==19868== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
005-exit.t TEST 1: throw error - status code ok got: ''
expected: '200'
006-escape.t TEST 5: escape a string that cannot be escaped - Can't connect to 127.0.0.1:1984: Connection refused ==19873== Invalid read of size 4
==19873== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19873== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19873== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19873== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19873== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19873== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19873== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19873== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19873== by 0x8062D4E: main (nginx.c:382)
==19873== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19873==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
006-escape.t TEST 5: escape a string that cannot be escaped - Can't connect to 127.0.0.1:1984: Connection refused ==19873==
==19873== Process terminating with default action of signal 11 (SIGSEGV)
==19873== Access not within mapped region at address 0x0
==19873== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19873== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19873== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19873== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19873== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19873== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19873== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19873== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19873== by 0x8062D4E: main (nginx.c:382)
==19873== If you believe this happened as a result of a stack
==19873== overflow in your program's main thread (unlikely but
==19873== possible), you can try to increase the size of the
==19873== main thread stack using the --main-stacksize= flag.
==19873== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - 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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19875== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
006-escape.t TEST 10: unescape numbers - 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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19875== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
006-escape.t TEST 2: unescape uri in content_by_lua - 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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19877== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
006-escape.t TEST 2: unescape uri in content_by_lua - 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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19877== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 8: escape numbers - Can't connect to 127.0.0.1:1984: Connection refused ==19879== Invalid read of size 4
==19879== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19879== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19879== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19879== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19879== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19879== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19879== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19879== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19879== by 0x8062D4E: main (nginx.c:382)
==19879== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19879==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
006-escape.t TEST 8: escape numbers - Can't connect to 127.0.0.1:1984: Connection refused ==19879==
==19879== Process terminating with default action of signal 11 (SIGSEGV)
==19879== Access not within mapped region at address 0x0
==19879== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19879== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19879== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19879== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19879== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19879== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19879== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19879== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19879== by 0x8062D4E: main (nginx.c:382)
==19879== If you believe this happened as a result of a stack
==19879== overflow in your program's main thread (unlikely but
==19879== possible), you can try to increase the size of the
==19879== main thread stack using the --main-stacksize= flag.
==19879== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: escape uri in content_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19881== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
006-escape.t TEST 1: escape uri in content_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19881== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==19883== Invalid read of size 4
==19883== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19883== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19883== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19883== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19883== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19883== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19883== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19883== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19883== by 0x8062D4E: main (nginx.c:382)
==19883== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19883==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
006-escape.t TEST 7: escape nil - Can't connect to 127.0.0.1:1984: Connection refused ==19883==
==19883== Process terminating with default action of signal 11 (SIGSEGV)
==19883== Access not within mapped region at address 0x0
==19883== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19883== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19883== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19883== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19883== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19883== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19883== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19883== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19883== by 0x8062D4E: main (nginx.c:382)
==19883== If you believe this happened as a result of a stack
==19883== overflow in your program's main thread (unlikely but
==19883== possible), you can try to increase the size of the
==19883== main thread stack using the --main-stacksize= flag.
==19883== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 4: escape uri in content_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==19885== Invalid read of size 4
==19885== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19885== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19885== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19885== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19885== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19885== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19885== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19885== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19885== by 0x8062D4E: main (nginx.c:382)
==19885== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19885==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
006-escape.t TEST 4: escape uri in content_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==19885==
==19885== Process terminating with default action of signal 11 (SIGSEGV)
==19885== Access not within mapped region at address 0x0
==19885== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19885== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19885== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19885== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19885== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19885== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19885== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19885== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19885== by 0x8062D4E: main (nginx.c:382)
==19885== If you believe this happened as a result of a stack
==19885== overflow in your program's main thread (unlikely but
==19885== possible), you can try to increase the size of the
==19885== main thread stack using the --main-stacksize= flag.
==19885== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 6: escape an empty string that cannot be escaped - Can't connect to 127.0.0.1:1984: Connection refused ==19887== Invalid read of size 4
==19887== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19887== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19887== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19887== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19887== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19887== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19887== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19887== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19887== by 0x8062D4E: main (nginx.c:382)
==19887== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19887==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
006-escape.t TEST 6: escape an empty string that cannot be escaped - Can't connect to 127.0.0.1:1984: Connection refused ==19887==
==19887== Process terminating with default action of signal 11 (SIGSEGV)
==19887== Access not within mapped region at address 0x0
==19887== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19887== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19887== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19887== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19887== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19887== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19887== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19887== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19887== by 0x8062D4E: main (nginx.c:382)
==19887== If you believe this happened as a result of a stack
==19887== overflow in your program's main thread (unlikely but
==19887== possible), you can try to increase the size of the
==19887== main thread stack using the --main-stacksize= flag.
==19887== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 11: escape type - Can't connect to 127.0.0.1:1984: Connection refused ==19889== Invalid read of size 4
==19889== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19889== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19889== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19889== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19889== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19889== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19889== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19889== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19889== by 0x8062D4E: main (nginx.c:382)
==19889== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19889==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
006-escape.t TEST 11: escape type - Can't connect to 127.0.0.1:1984: Connection refused ==19889==
==19889== Process terminating with default action of signal 11 (SIGSEGV)
==19889== Access not within mapped region at address 0x0
==19889== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19889== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19889== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19889== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19889== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19889== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19889== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19889== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19889== by 0x8062D4E: main (nginx.c:382)
==19889== If you believe this happened as a result of a stack
==19889== overflow in your program's main thread (unlikely but
==19889== possible), you can try to increase the size of the
==19889== main thread stack using the --main-stacksize= flag.
==19889== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 12: escape type error - Can't connect to 127.0.0.1:1984: Connection refused ==19891== Invalid read of size 4
==19891== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19891== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19891== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19891== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19891== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19891== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19891== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19891== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19891== by 0x8062D4E: main (nginx.c:382)
==19891== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19891==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
006-escape.t TEST 12: escape type error - Can't connect to 127.0.0.1:1984: Connection refused ==19891==
==19891== Process terminating with default action of signal 11 (SIGSEGV)
==19891== Access not within mapped region at address 0x0
==19891== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19891== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19891== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19891== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19891== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19891== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19891== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19891== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19891== by 0x8062D4E: main (nginx.c:382)
==19891== If you believe this happened as a result of a stack
==19891== overflow in your program's main thread (unlikely but
==19891== possible), you can try to increase the size of the
==19891== main thread stack using the --main-stacksize= flag.
==19891== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
006-escape.t TEST 12: escape type error - status code ok got: ''
expected: '200'
006-escape.t TEST 12: escape type error - pattern "(?^:\[error\] \d+\#\d+: \*\d+ lua entry thread aborted: runtime error: "type" is not a number)" should match a line in error.log (req 1)
006-escape.t TEST 3: escape uri in content_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==19893== Invalid read of size 4
==19893== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19893== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19893== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19893== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19893== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19893== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19893== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19893== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19893== by 0x8062D4E: main (nginx.c:382)
==19893== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19893==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
006-escape.t TEST 3: escape uri in content_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==19893==
==19893== Process terminating with default action of signal 11 (SIGSEGV)
==19893== Access not within mapped region at address 0x0
==19893== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19893== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19893== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19893== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19893== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19893== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19893== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19893== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19893== by 0x8062D4E: main (nginx.c:382)
==19893== If you believe this happened as a result of a stack
==19893== overflow in your program's main thread (unlikely but
==19893== possible), you can try to increase the size of the
==19893== main thread stack using the --main-stacksize= flag.
==19893== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 14: escape type error - Can't connect to 127.0.0.1:1984: Connection refused ==19895== Invalid read of size 4
==19895== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19895== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19895== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19895== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19895== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19895== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19895== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19895== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19895== by 0x8062D4E: main (nginx.c:382)
==19895== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19895==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
006-escape.t TEST 14: escape type error - Can't connect to 127.0.0.1:1984: Connection refused ==19895==
==19895== Process terminating with default action of signal 11 (SIGSEGV)
==19895== Access not within mapped region at address 0x0
==19895== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19895== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19895== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19895== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19895== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19895== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19895== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19895== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19895== by 0x8062D4E: main (nginx.c:382)
==19895== If you believe this happened as a result of a stack
==19895== overflow in your program's main thread (unlikely but
==19895== possible), you can try to increase the size of the
==19895== main thread stack using the --main-stacksize= flag.
==19895== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
006-escape.t TEST 14: escape type error - status code ok got: ''
expected: '200'
006-escape.t TEST 14: escape type error - pattern "(?^:\[error\] \d+\#\d+: \*\d+ lua entry thread aborted: runtime error: "type" 100 out of range)" should match a line in error.log (req 1)
006-escape.t TEST 9: unescape nil - Can't connect to 127.0.0.1:1984: Connection refused ==19897== Invalid read of size 4
==19897== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19897== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19897== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19897== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19897== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19897== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19897== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19897== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19897== by 0x8062D4E: main (nginx.c:382)
==19897== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19897==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
006-escape.t TEST 9: unescape nil - Can't connect to 127.0.0.1:1984: Connection refused ==19897==
==19897== Process terminating with default action of signal 11 (SIGSEGV)
==19897== Access not within mapped region at address 0x0
==19897== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19897== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19897== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19897== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19897== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19897== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19897== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19897== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19897== by 0x8062D4E: main (nginx.c:382)
==19897== If you believe this happened as a result of a stack
==19897== overflow in your program's main thread (unlikely but
==19897== possible), you can try to increase the size of the
==19897== main thread stack using the --main-stacksize= flag.
==19897== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 13: escape type out of range - Can't connect to 127.0.0.1:1984: Connection refused ==19899== Invalid read of size 4
==19899== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19899== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19899== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19899== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19899== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19899== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19899== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19899== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19899== by 0x8062D4E: main (nginx.c:382)
==19899== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19899==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
006-escape.t TEST 13: escape type out of range - Can't connect to 127.0.0.1:1984: Connection refused ==19899==
==19899== Process terminating with default action of signal 11 (SIGSEGV)
==19899== Access not within mapped region at address 0x0
==19899== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19899== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19899== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19899== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19899== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19899== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19899== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19899== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19899== by 0x8062D4E: main (nginx.c:382)
==19899== If you believe this happened as a result of a stack
==19899== overflow in your program's main thread (unlikely but
==19899== possible), you can try to increase the size of the
==19899== main thread stack using the --main-stacksize= flag.
==19899== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "(?^:\[error\] \d+\#\d+: \*\d+ lua entry thread aborted: runtime error: "type" -1 out of range)" should match a line in error.log (req 1)
009-log.t TEST 16: ngx.log in Lua files - Can't connect to 127.0.0.1:1984: Connection refused ==19915== Invalid read of size 4
==19915== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19915== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19915== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19915== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19915== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19915== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19915== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19915== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19915== by 0x8062D4E: main (nginx.c:382)
==19915== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19915==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
009-log.t TEST 16: ngx.log in Lua files - Can't connect to 127.0.0.1:1984: Connection refused ==19915==
==19915== Process terminating with default action of signal 11 (SIGSEGV)
==19915== Access not within mapped region at address 0x0
==19915== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19915== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19915== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19915== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19915== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19915== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19915== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19915== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19915== by 0x8062D4E: main (nginx.c:382)
==19915== If you believe this happened as a result of a stack
==19915== overflow in your program's main thread (unlikely but
==19915== possible), you can try to increase the size of the
==19915== main thread stack using the --main-stacksize= flag.
==19915== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 16: ngx.log in Lua files - pattern "(?^:\[error\] \S+: \S+ stream \[lua\] test.lua:6: bar\(\): hello, log12343.14159)" should match a line in error.log (req 1)
009-log.t TEST 4: test log-level CRIT - Can't connect to 127.0.0.1:1984: Connection refused ==19917== Invalid read of size 4
==19917== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19917== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19917== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19917== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19917== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19917== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19917== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19917== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19917== by 0x8062D4E: main (nginx.c:382)
==19917== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19917==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
009-log.t TEST 4: test log-level CRIT - Can't connect to 127.0.0.1:1984: Connection refused ==19917==
==19917== Process terminating with default action of signal 11 (SIGSEGV)
==19917== Access not within mapped region at address 0x0
==19917== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19917== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19917== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19917== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19917== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19917== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19917== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19917== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19917== by 0x8062D4E: main (nginx.c:382)
==19917== If you believe this happened as a result of a stack
==19917== overflow in your program's main thread (unlikely but
==19917== possible), you can try to increase the size of the
==19917== main thread stack using the --main-stacksize= flag.
==19917== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 4: test log-level CRIT - pattern "(?^:\[crit\] \S+: \S+ stream \[lua\] content_by_lua\(nginx\.conf:\d+\):3: hello, log12343.14159)" should match a line in error.log (req 1)
009-log.t TEST 10: regression test print() - Can't connect to 127.0.0.1:1984: Connection refused ==19919== Invalid read of size 4
==19919== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19919== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19919== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19919== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19919== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19919== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19919== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19919== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19919== by 0x8062D4E: main (nginx.c:382)
==19919== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19919==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
009-log.t TEST 10: regression test print() - Can't connect to 127.0.0.1:1984: Connection refused ==19919==
==19919== Process terminating with default action of signal 11 (SIGSEGV)
==19919== Access not within mapped region at address 0x0
==19919== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19919== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19919== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19919== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19919== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19919== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19919== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19919== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19919== by 0x8062D4E: main (nginx.c:382)
==19919== If you believe this happened as a result of a stack
==19919== overflow in your program's main thread (unlikely but
==19919== possible), you can try to increase the size of the
==19919== main thread stack using the --main-stacksize= flag.
==19919== 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() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 10: regression test print() - pattern "(?^:\[notice\] \S+: \S+ stream \[lua\] content_by_lua\(nginx\.conf:\d+\):3: hello, log12343.14159)" should match a line in error.log (req 1)
009-log.t TEST 11: print(nil) - Can't connect to 127.0.0.1:1984: Connection refused ==19921== Invalid read of size 4
==19921== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19921== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19921== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19921== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19921== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19921== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19921== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19921== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19921== by 0x8062D4E: main (nginx.c:382)
==19921== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19921==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
009-log.t TEST 11: print(nil) - Can't connect to 127.0.0.1:1984: Connection refused ==19921==
==19921== Process terminating with default action of signal 11 (SIGSEGV)
==19921== Access not within mapped region at address 0x0
==19921== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19921== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19921== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19921== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19921== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19921== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19921== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19921== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19921== by 0x8062D4E: main (nginx.c:382)
==19921== If you believe this happened as a result of a stack
==19921== overflow in your program's main thread (unlikely but
==19921== possible), you can try to increase the size of the
==19921== main thread stack using the --main-stacksize= flag.
==19921== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 11: print(nil) - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):2: ,)" should match a line in error.log (req 1)
009-log.t TEST 11: print(nil) - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):3: nil,)" should match a line in error.log (req 1)
009-log.t TEST 11: print(nil) - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):4: nil: nil,)" should match a line in error.log (req 1)
009-log.t TEST 1: test log-level STDERR - Can't connect to 127.0.0.1:1984: Connection refused ==19923== Invalid read of size 4
==19923== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19923== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19923== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19923== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19923== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19923== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19923== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19923== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19923== by 0x8062D4E: main (nginx.c:382)
==19923== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19923==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
009-log.t TEST 1: test log-level STDERR - Can't connect to 127.0.0.1:1984: Connection refused ==19923==
==19923== Process terminating with default action of signal 11 (SIGSEGV)
==19923== Access not within mapped region at address 0x0
==19923== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19923== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19923== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19923== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19923== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19923== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19923== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19923== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19923== by 0x8062D4E: main (nginx.c:382)
==19923== If you believe this happened as a result of a stack
==19923== overflow in your program's main thread (unlikely but
==19923== possible), you can try to increase the size of the
==19923== main thread stack using the --main-stacksize= flag.
==19923== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: test log-level STDERR - pattern "(?^:\[\] \S+: \S+ stream \[lua\] content_by_lua\(nginx\.conf:\d+\):3: hello, log12343.14159)" should match a line in error.log (req 1)
009-log.t TEST 2: test log-level EMERG - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19925== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
009-log.t TEST 2: test log-level EMERG - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19925== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 2: test log-level EMERG - pattern "(?^:\[emerg\] \S+: \S+ stream \[lua\] content_by_lua\(nginx\.conf:\d+\):3: hello, log12343.14159)" should match a line in error.log (req 1)
009-log.t TEST 12: test booleans and nil - Can't connect to 127.0.0.1:1984: Connection refused ==19927== Invalid read of size 4
==19927== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19927== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19927== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19927== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19927== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19927== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19927== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19927== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19927== by 0x8062D4E: main (nginx.c:382)
==19927== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19927==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
009-log.t TEST 12: test booleans and nil - Can't connect to 127.0.0.1:1984: Connection refused ==19927==
==19927== Process terminating with default action of signal 11 (SIGSEGV)
==19927== Access not within mapped region at address 0x0
==19927== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19927== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19927== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19927== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19927== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19927== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19927== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19927== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19927== by 0x8062D4E: main (nginx.c:382)
==19927== If you believe this happened as a result of a stack
==19927== overflow in your program's main thread (unlikely but
==19927== possible), you can try to increase the size of the
==19927== main thread stack using the --main-stacksize= flag.
==19927== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 12: test booleans and nil - pattern "(?^:\[error\] \S+: \S+ stream \[lua\] content_by_lua\(nginx\.conf:\d+\):2: truefalsenil)" should match a line in error.log (req 1)
009-log.t TEST 14: ngx.log in Lua function calls & inlined lua - Can't connect to 127.0.0.1:1984: Connection refused ==19929== Invalid read of size 4
==19929== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19929== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19929== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19929== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19929== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19929== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19929== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19929== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19929== by 0x8062D4E: main (nginx.c:382)
==19929== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19929==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
009-log.t TEST 14: ngx.log in Lua function calls & inlined lua - Can't connect to 127.0.0.1:1984: Connection refused ==19929==
==19929== Process terminating with default action of signal 11 (SIGSEGV)
==19929== Access not within mapped region at address 0x0
==19929== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19929== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19929== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19929== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19929== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19929== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19929== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19929== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19929== by 0x8062D4E: main (nginx.c:382)
==19929== If you believe this happened as a result of a stack
==19929== overflow in your program's main thread (unlikely but
==19929== possible), you can try to increase the size of the
==19929== main thread stack using the --main-stacksize= flag.
==19929== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 14: ngx.log in Lua function calls & inlined lua - pattern "(?^:\[error\] \S+: \S+ stream \[lua\] content_by_lua\(nginx\.conf:\d+\):7: bar\(\): hello, log12343.14159)" should match a line in error.log (req 1)
009-log.t TEST 19: \0 in the log message - Can't connect to 127.0.0.1:1984: Connection refused ==19931== Invalid read of size 4
==19931== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19931== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19931== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19931== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19931== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19931== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19931== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19931== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19931== by 0x8062D4E: main (nginx.c:382)
==19931== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19931==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
009-log.t TEST 19: \0 in the log message - Can't connect to 127.0.0.1:1984: Connection refused ==19931==
==19931== Process terminating with default action of signal 11 (SIGSEGV)
==19931== Access not within mapped region at address 0x0
==19931== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19931== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19931== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19931== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19931== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19931== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19931== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19931== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19931== by 0x8062D4E: main (nginx.c:382)
==19931== If you believe this happened as a result of a stack
==19931== overflow in your program's main thread (unlikely but
==19931== possible), you can try to increase the size of the
==19931== main thread stack using the --main-stacksize= flag.
==19931== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 19: \0 in the log message - pattern "2: helloworld" should match a line in error.log (req 1)
009-log.t TEST 3: test log-level ALERT - Can't connect to 127.0.0.1:1984: Connection refused ==19933== Invalid read of size 4
==19933== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19933== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19933== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19933== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19933== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19933== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19933== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19933== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19933== by 0x8062D4E: main (nginx.c:382)
==19933== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19933==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
009-log.t TEST 3: test log-level ALERT - Can't connect to 127.0.0.1:1984: Connection refused ==19933==
==19933== Process terminating with default action of signal 11 (SIGSEGV)
==19933== Access not within mapped region at address 0x0
==19933== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19933== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19933== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19933== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19933== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19933== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19933== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19933== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19933== by 0x8062D4E: main (nginx.c:382)
==19933== If you believe this happened as a result of a stack
==19933== overflow in your program's main thread (unlikely but
==19933== possible), you can try to increase the size of the
==19933== main thread stack using the --main-stacksize= flag.
==19933== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 3: test log-level ALERT - pattern "(?^:\[alert\] \S+: \S+ stream \[lua\] content_by_lua\(nginx\.conf:\d+\):3: hello, log12343.14159)" should match a line in error.log (req 1)
009-log.t TEST 6: test log-level WARN - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19935== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
009-log.t TEST 6: test log-level WARN - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19935== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 6: test log-level WARN - pattern "(?^:\[warn\] \S+: \S+ stream \[lua\] content_by_lua\(nginx\.conf:\d+\):3: hello, log12343.14159)" should match a line in error.log (req 1)
009-log.t TEST 8: test log-level INFO - Can't connect to 127.0.0.1:1984: Connection refused ==19937== Invalid read of size 4
==19937== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19937== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19937== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19937== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19937== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19937== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19937== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19937== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19937== by 0x8062D4E: main (nginx.c:382)
==19937== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19937==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
009-log.t TEST 8: test log-level INFO - Can't connect to 127.0.0.1:1984: Connection refused ==19937==
==19937== Process terminating with default action of signal 11 (SIGSEGV)
==19937== Access not within mapped region at address 0x0
==19937== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19937== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19937== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19937== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19937== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19937== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19937== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19937== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19937== by 0x8062D4E: main (nginx.c:382)
==19937== If you believe this happened as a result of a stack
==19937== overflow in your program's main thread (unlikely but
==19937== possible), you can try to increase the size of the
==19937== main thread stack using the --main-stacksize= flag.
==19937== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 8: test log-level INFO - pattern "(?^:\[info\] \S+: \S+ stream \[lua\] content_by_lua\(nginx\.conf:\d+\):3: hello, log12343.14159)" should match a line in error.log (req 1)
009-log.t TEST 7: test log-level NOTICE - Can't connect to 127.0.0.1:1984: Connection refused ==19939== Invalid read of size 4
==19939== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19939== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19939== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19939== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19939== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19939== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19939== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19939== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19939== by 0x8062D4E: main (nginx.c:382)
==19939== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19939==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
009-log.t TEST 7: test log-level NOTICE - Can't connect to 127.0.0.1:1984: Connection refused ==19939==
==19939== Process terminating with default action of signal 11 (SIGSEGV)
==19939== Access not within mapped region at address 0x0
==19939== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19939== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19939== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19939== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19939== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19939== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19939== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19939== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19939== by 0x8062D4E: main (nginx.c:382)
==19939== If you believe this happened as a result of a stack
==19939== overflow in your program's main thread (unlikely but
==19939== possible), you can try to increase the size of the
==19939== main thread stack using the --main-stacksize= flag.
==19939== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 7: test log-level NOTICE - pattern "(?^:\[notice\] \S+: \S+ stream \[lua\] content_by_lua\(nginx\.conf:\d+\):3: hello, log12343.14159)" should match a line in error.log (req 1)
009-log.t TEST 15: ngx.log in Lua function tail-calls & inlined lua - Can't connect to 127.0.0.1:1984: Connection refused ==19941== Invalid read of size 4
==19941== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19941== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19941== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19941== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19941== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19941== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19941== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19941== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19941== by 0x8062D4E: main (nginx.c:382)
==19941== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19941==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
009-log.t TEST 15: ngx.log in Lua function tail-calls & inlined lua - Can't connect to 127.0.0.1:1984: Connection refused ==19941==
==19941== Process terminating with default action of signal 11 (SIGSEGV)
==19941== Access not within mapped region at address 0x0
==19941== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19941== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19941== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19941== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19941== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19941== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19941== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19941== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19941== by 0x8062D4E: main (nginx.c:382)
==19941== If you believe this happened as a result of a stack
==19941== overflow in your program's main thread (unlikely but
==19941== possible), you can try to increase the size of the
==19941== main thread stack using the --main-stacksize= flag.
==19941== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 15: ngx.log in Lua function tail-calls & inlined lua - pattern "(?^:\[error\] \S+: \S+ stream \[lua\] content_by_lua\(nginx\.conf:\d+\):8:(?: foo\(\):)? hello, log12343.14159)" should match a line in error.log (req 1)
009-log.t TEST 18: ngx.log with bad levels (9) - Can't connect to 127.0.0.1:1984: Connection refused ==19943== Invalid read of size 4
==19943== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19943== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19943== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19943== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19943== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19943== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19943== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19943== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19943== by 0x8062D4E: main (nginx.c:382)
==19943== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19943==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
009-log.t TEST 18: ngx.log with bad levels (9) - Can't connect to 127.0.0.1:1984: Connection refused ==19943==
==19943== Process terminating with default action of signal 11 (SIGSEGV)
==19943== Access not within mapped region at address 0x0
==19943== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19943== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19943== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19943== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19943== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19943== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19943== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19943== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19943== by 0x8062D4E: main (nginx.c:382)
==19943== If you believe this happened as a result of a stack
==19943== overflow in your program's main thread (unlikely but
==19943== possible), you can try to increase the size of the
==19943== main thread stack using the --main-stacksize= flag.
==19943== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - pattern "bad log level: 9" should match a line in error.log (req 1)
009-log.t TEST 17: ngx.log with bad levels (ngx.ERROR, -1) - Can't connect to 127.0.0.1:1984: Connection refused ==19945== Invalid read of size 4
==19945== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19945== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19945== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19945== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19945== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19945== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19945== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19945== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19945== by 0x8062D4E: main (nginx.c:382)
==19945== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19945==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==19945==
==19945== Process terminating with default action of signal 11 (SIGSEGV)
==19945== Access not within mapped region at address 0x0
==19945== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19945== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19945== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19945== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19945== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19945== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19945== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19945== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19945== by 0x8062D4E: main (nginx.c:382)
==19945== If you believe this happened as a result of a stack
==19945== overflow in your program's main thread (unlikely but
==19945== possible), you can try to increase the size of the
==19945== main thread stack using the --main-stacksize= flag.
==19945== 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 (aborted) '
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) - pattern "bad log level: -1" should match a line in error.log (req 1)
009-log.t TEST 13: ngx.log() big data - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19947== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
009-log.t TEST 13: ngx.log() big data - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19947== by 0x8062D4E: main (nginx.c:382)
==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.

009-log.t TEST 13: ngx.log() big data - status code ok got: ''
expected: '200'
009-log.t TEST 13: ngx.log() big data - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
009-log.t TEST 13: ngx.log() big data - status code ok got: ''
expected: '200'
009-log.t TEST 13: ngx.log() big data - pattern "(?^:ah{1970}b)" should match a line in error.log (req 1)
009-log.t TEST 5: test log-level ERR - Can't connect to 127.0.0.1:1984: Connection refused ==19949== Invalid read of size 4
==19949== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19949== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19949== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19949== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19949== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19949== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19949== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19949== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19949== by 0x8062D4E: main (nginx.c:382)
==19949== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19949==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
009-log.t TEST 5: test log-level ERR - Can't connect to 127.0.0.1:1984: Connection refused ==19949==
==19949== Process terminating with default action of signal 11 (SIGSEGV)
==19949== Access not within mapped region at address 0x0
==19949== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19949== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19949== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19949== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19949== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19949== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19949== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19949== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19949== by 0x8062D4E: main (nginx.c:382)
==19949== If you believe this happened as a result of a stack
==19949== overflow in your program's main thread (unlikely but
==19949== possible), you can try to increase the size of the
==19949== main thread stack using the --main-stacksize= flag.
==19949== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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)
009-log.t TEST 5: test log-level ERR - pattern "(?^:\[error\] \S+: \S+ stream \[lua\] content_by_lua\(nginx\.conf:\d+\):3: hello, log12343.14159)" should match a line in error.log (req 1)
009-log.t TEST 9: test log-level DEBUG - Can't connect to 127.0.0.1:1984: Connection refused ==19951== Invalid read of size 4
==19951== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19951== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19951== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19951== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19951== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19951== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19951== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19951== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19951== by 0x8062D4E: main (nginx.c:382)
==19951== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19951==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
009-log.t TEST 9: test log-level DEBUG - Can't connect to 127.0.0.1:1984: Connection refused ==19951==
==19951== Process terminating with default action of signal 11 (SIGSEGV)
==19951== Access not within mapped region at address 0x0
==19951== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19951== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19951== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19951== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19951== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19951== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19951== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19951== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19951== by 0x8062D4E: main (nginx.c:382)
==19951== If you believe this happened as a result of a stack
==19951== overflow in your program's main thread (unlikely but
==19951== possible), you can try to increase the size of the
==19951== main thread stack using the --main-stacksize= flag.
==19951== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 9: test log-level DEBUG - pattern "(?^:\[debug\] \S+: \S+ stream \[lua\] content_by_lua\(nginx\.conf:\d+\):3: hello, log12343.14159)" should match a line in error.log (req 1)
014-bugs.t TEST 3: say lua empty strings - Can't connect to 127.0.0.1:1984: Connection refused ==19989== Invalid read of size 4
==19989== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19989== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19989== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19989== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19989== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19989== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19989== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19989== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19989== by 0x8062D4E: main (nginx.c:382)
==19989== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19989==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
014-bugs.t TEST 3: say lua empty strings - Can't connect to 127.0.0.1:1984: Connection refused ==19989==
==19989== Process terminating with default action of signal 11 (SIGSEGV)
==19989== Access not within mapped region at address 0x0
==19989== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19989== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19989== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19989== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19989== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19989== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19989== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19989== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19989== by 0x8062D4E: main (nginx.c:382)
==19989== If you believe this happened as a result of a stack
==19989== overflow in your program's main thread (unlikely but
==19989== possible), you can try to increase the size of the
==19989== main thread stack using the --main-stacksize= flag.
==19989== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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'
014-bugs.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==19992== Invalid read of size 4
==19992== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19992== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19992== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19992== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19992== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19992== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19992== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19992== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19992== by 0x8062D4E: main (nginx.c:382)
==19992== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19992==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
014-bugs.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==19992==
==19992== Process terminating with default action of signal 11 (SIGSEGV)
==19992== Access not within mapped region at address 0x0
==19992== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19992== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19992== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19992== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19992== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19992== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19992== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19992== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19992== by 0x8062D4E: main (nginx.c:382)
==19992== If you believe this happened as a result of a stack
==19992== overflow in your program's main thread (unlikely but
==19992== possible), you can try to increase the size of the
==19992== main thread stack using the --main-stacksize= flag.
==19992== 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 (aborted) '
014-bugs.t TEST 1: sanity - status code ok got: ''
expected: '200'
014-bugs.t TEST 1: sanity - pattern "error loading module 'foo' from file" should match a line in error.log (req 1)
014-bugs.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
014-bugs.t TEST 1: sanity - status code ok got: ''
expected: '200'
014-bugs.t TEST 1: sanity - pattern "error loading module 'foo' from file" should match a line in error.log (req 2)
014-bugs.t TEST 4: lua_code_cache off + setkeepalive - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19995== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
014-bugs.t TEST 4: lua_code_cache off + setkeepalive - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19995== by 0x8062D4E: main (nginx.c:382)
==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.

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:48:30 [error] 19995\#0: *3 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/27 03:48:30 [debug] 19995\#0: *3 stream lua tcp socket handle connect error
2020/10/27 03:48:30 [debug] 19995\#0: *3 stream lua finalize socket
2020/10/27 03:48:30 [debug] 19995\#0: *3 lua stream cleanup free: 04C547E8
2020/10/27 03:48:30 [debug] 19995\#0: *3 lua close socket connection
2020/10/27 03:48:30 [debug] 19995\#0: *3 reusable connection: 0
2020/10/27 03:48:30 [debug] 19995\#0: *3 stream lua tcp socket waking up the current request
2020/10/27 03:48:30 [debug] 19995\#0: *3 lua ngx_stream_lua_content_wev_handler
2020/10/27 03:48:30 [debug] 19995\#0: *3 stream lua tcp operation done, resuming lua thread
2020/10/27 03:48:30 [debug] 19995\#0: *3 stream lua tcp socket calling prepare retvals handler 081677D0, u:04C54450
'
014-bugs.t TEST 4: lua_code_cache off + setkeepalive - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 2: print lua empty strings - Can't connect to 127.0.0.1:1984: Connection refused ==19998== Invalid read of size 4
==19998== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19998== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19998== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19998== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19998== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19998== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19998== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19998== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19998== by 0x8062D4E: main (nginx.c:382)
==19998== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19998==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
014-bugs.t TEST 2: print lua empty strings - Can't connect to 127.0.0.1:1984: Connection refused ==19998==
==19998== Process terminating with default action of signal 11 (SIGSEGV)
==19998== Access not within mapped region at address 0x0
==19998== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==19998== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==19998== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==19998== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==19998== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==19998== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==19998== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==19998== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==19998== by 0x8062D4E: main (nginx.c:382)
==19998== If you believe this happened as a result of a stack
==19998== overflow in your program's main thread (unlikely but
==19998== possible), you can try to increase the size of the
==19998== main thread stack using the --main-stacksize= flag.
==19998== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 5: .lua file of exactly N*1024 bytes (github issue #385) - Can't connect to 127.0.0.1:1984: Connection refused ==20001== Invalid read of size 4
==20001== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20001== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20001== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20001== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20001== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20001== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20001== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20001== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20001== by 0x8062D4E: main (nginx.c:382)
==20001== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20001==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
014-bugs.t TEST 5: .lua file of exactly N*1024 bytes (github issue #385) - Can't connect to 127.0.0.1:1984: Connection refused ==20001==
==20001== Process terminating with default action of signal 11 (SIGSEGV)
==20001== Access not within mapped region at address 0x0
==20001== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20001== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20001== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20001== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20001== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20001== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20001== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20001== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20001== by 0x8062D4E: main (nginx.c:382)
==20001== If you believe this happened as a result of a stack
==20001== overflow in your program's main thread (unlikely but
==20001== possible), you can try to increase the size of the
==20001== main thread stack using the --main-stacksize= flag.
==20001== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
019-const.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==20007== Invalid read of size 4
==20007== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20007== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20007== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20007== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20007== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20007== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20007== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20007== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20007== by 0x8062D4E: main (nginx.c:382)
==20007== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20007==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
019-const.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==20007==
==20007== Process terminating with default action of signal 11 (SIGSEGV)
==20007== Access not within mapped region at address 0x0
==20007== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20007== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20007== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20007== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20007== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20007== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20007== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20007== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20007== by 0x8062D4E: main (nginx.c:382)
==20007== If you believe this happened as a result of a stack
==20007== overflow in your program's main thread (unlikely but
==20007== possible), you can try to increase the size of the
==20007== main thread stack using the --main-stacksize= flag.
==20007== 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 (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==20021== Invalid read of size 4
==20021== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20021== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20021== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20021== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20021== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20021== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20021== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20021== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20021== by 0x8062D4E: main (nginx.c:382)
==20021== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20021==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
023-preread/client-abort.t TEST 10: cosocket + stop - Can't connect to 127.0.0.1:1984: Connection refused ==20021==
==20021== Process terminating with default action of signal 11 (SIGSEGV)
==20021== Access not within mapped region at address 0x0
==20021== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20021== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20021== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20021== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20021== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20021== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20021== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20021== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20021== by 0x8062D4E: main (nginx.c:382)
==20021== If you believe this happened as a result of a stack
==20021== overflow in your program's main thread (unlikely but
==20021== possible), you can try to increase the size of the
==20021== main thread stack using the --main-stacksize= flag.
==20021== 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:31 [error] 20021\#0: *3 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:31 [debug] 20021\#0: *3 stream lua tcp socket handle connect error
2020/10/27 03:49:31 [debug] 20021\#0: *3 stream lua finalize socket
2020/10/27 03:49:31 [debug] 20021\#0: *3 lua stream cleanup free: 04B92780
2020/10/27 03:49:31 [debug] 20021\#0: *3 lua close socket connection
2020/10/27 03:49:31 [debug] 20021\#0: *3 reusable connection: 0
2020/10/27 03:49:31 [debug] 20021\#0: *3 stream lua tcp socket waking up the current request
2020/10/27 03:49:31 [debug] 20021\#0: *3 lua session run phases: "04B903C8"
2020/10/27 03:49:31 [debug] 20021\#0: *3 lua preread handler
2020/10/27 03:49:31 [debug] 20021\#0: *3 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:31 [error] 20021\#0: *3 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:31 [debug] 20021\#0: *3 lua resume returned 0
2020/10/27 03:49:31 [debug] 20021\#0: *3 lua light thread ended normally
2020/10/27 03:49:31 [debug] 20021\#0: *3 lua deleting light thread
2020/10/27 03:49:31 [debug] 20021\#0: *3 stream lua run thread returned 0
2020/10/27 03:49:31 [debug] 20021\#0: *3 tcp_nodelay
2020/10/27 03:49:31 [debug] 20021\#0: *3 stream lua content handler
2020/10/27 03:49:31 [debug] 20021\#0: *3 looking up Lua code cache with key '=content_by_lua(nginx.conf:53)nhli_e70c4df10ef0983b9c8c31bd06b2a2c3'
2020/10/27 03:49:31 [debug] 20021\#0: *3 lua reset ctx
2020/10/27 03:49:31 [debug] 20021\#0: *3 lua creating new thread
'
023-preread/client-abort.t TEST 10: cosocket + stop - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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/exit.t TEST 1: throw 500 - Can't connect to 127.0.0.1:1984: Connection refused ==20029== Invalid read of size 4
==20029== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20029== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20029== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20029== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20029== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20029== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20029== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20029== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20029== by 0x8062D4E: main (nginx.c:382)
==20029== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20029==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
023-preread/exit.t TEST 1: throw 500 - Can't connect to 127.0.0.1:1984: Connection refused ==20029==
==20029== Process terminating with default action of signal 11 (SIGSEGV)
==20029== Access not within mapped region at address 0x0
==20029== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20029== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20029== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20029== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20029== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20029== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20029== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20029== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20029== by 0x8062D4E: main (nginx.c:382)
==20029== If you believe this happened as a result of a stack
==20029== overflow in your program's main thread (unlikely but
==20029== possible), you can try to increase the size of the
==20029== main thread stack using the --main-stacksize= flag.
==20029== 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 (aborted) '
023-preread/exit.t TEST 1: throw 500 - status code ok got: ''
expected: '200'
023-preread/exit.t TEST 1: throw 500 - pattern "finalize stream request: 500" should match a line in error.log (req 1)
023-preread/exit.t TEST 2: throw 0 - Can't connect to 127.0.0.1:1984: Connection refused ==20031== Invalid read of size 4
==20031== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20031== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20031== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20031== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20031== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20031== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20031== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20031== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20031== by 0x8062D4E: main (nginx.c:382)
==20031== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20031==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
023-preread/exit.t TEST 2: throw 0 - Can't connect to 127.0.0.1:1984: Connection refused ==20031==
==20031== Process terminating with default action of signal 11 (SIGSEGV)
==20031== Access not within mapped region at address 0x0
==20031== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20031== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20031== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20031== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20031== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20031== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20031== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20031== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20031== by 0x8062D4E: main (nginx.c:382)
==20031== If you believe this happened as a result of a stack
==20031== overflow in your program's main thread (unlikely but
==20031== possible), you can try to increase the size of the
==20031== main thread stack using the --main-stacksize= flag.
==20031== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 7: peeking preread buffer, buffer size is small - Can't connect to 127.0.0.1:1984: Connection refused ==20036== Invalid read of size 4
==20036== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20036== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20036== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20036== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20036== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20036== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20036== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20036== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20036== by 0x8062D4E: main (nginx.c:382)
==20036== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20036==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
023-preread/req-socket.t TEST 7: peeking preread buffer, buffer size is small - Can't connect to 127.0.0.1:1984: Connection refused ==20036==
==20036== Process terminating with default action of signal 11 (SIGSEGV)
==20036== Access not within mapped region at address 0x0
==20036== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20036== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20036== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20036== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20036== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20036== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20036== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20036== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20036== by 0x8062D4E: main (nginx.c:382)
==20036== If you believe this happened as a result of a stack
==20036== overflow in your program's main thread (unlikely but
==20036== possible), you can try to increase the size of the
==20036== main thread stack using the --main-stacksize= flag.
==20036== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - pattern "preread buffer full while prereading client data" should match a line in error.log (req 1)
023-preread/req-socket.t TEST 7: peeking preread buffer, buffer size is small - pattern "finalize stream session: 400" should match a line in error.log (req 1)
023-preread/req-socket.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==20038== Invalid read of size 4
==20038== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20038== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20038== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20038== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20038== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20038== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20038== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20038== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20038== by 0x8062D4E: main (nginx.c:382)
==20038== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20038==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
023-preread/req-socket.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==20038==
==20038== Process terminating with default action of signal 11 (SIGSEGV)
==20038== Access not within mapped region at address 0x0
==20038== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20038== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20038== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20038== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20038== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20038== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20038== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20038== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20038== by 0x8062D4E: main (nginx.c:382)
==20038== If you believe this happened as a result of a stack
==20038== overflow in your program's main thread (unlikely but
==20038== possible), you can try to increase the size of the
==20038== main thread stack using the --main-stacksize= flag.
==20038== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 9: peek in wrong phase - Can't connect to 127.0.0.1:1984: Connection refused ==20040== Invalid read of size 4
==20040== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20040== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20040== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20040== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20040== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20040== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20040== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20040== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20040== by 0x8062D4E: main (nginx.c:382)
==20040== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20040==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
023-preread/req-socket.t TEST 9: peek in wrong phase - Can't connect to 127.0.0.1:1984: Connection refused ==20040==
==20040== Process terminating with default action of signal 11 (SIGSEGV)
==20040== Access not within mapped region at address 0x0
==20040== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20040== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20040== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20040== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20040== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20040== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20040== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20040== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20040== by 0x8062D4E: main (nginx.c:382)
==20040== If you believe this happened as a result of a stack
==20040== overflow in your program's main thread (unlikely but
==20040== possible), you can try to increase the size of the
==20040== main thread stack using the --main-stacksize= flag.
==20040== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - pattern "API disabled in the context of content_by_lua*" should match a line in error.log (req 1)
023-preread/req-socket.t TEST 11: peek before and after receive - Can't connect to 127.0.0.1:1984: Connection refused ==20042== Invalid read of size 4
==20042== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20042== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20042== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20042== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20042== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20042== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20042== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20042== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20042== by 0x8062D4E: main (nginx.c:382)
==20042== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20042==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
023-preread/req-socket.t TEST 11: peek before and after receive - Can't connect to 127.0.0.1:1984: Connection refused ==20042==
==20042== Process terminating with default action of signal 11 (SIGSEGV)
==20042== Access not within mapped region at address 0x0
==20042== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20042== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20042== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20042== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20042== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20042== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20042== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20042== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20042== by 0x8062D4E: main (nginx.c:382)
==20042== If you believe this happened as a result of a stack
==20042== overflow in your program's main thread (unlikely but
==20042== possible), you can try to increase the size of the
==20042== main thread stack using the --main-stacksize= flag.
==20042== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 5: small preread buffer - Can't connect to 127.0.0.1:1984: Connection refused ==20044== Invalid read of size 4
==20044== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20044== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20044== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20044== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20044== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20044== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20044== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20044== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20044== by 0x8062D4E: main (nginx.c:382)
==20044== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20044==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
023-preread/req-socket.t TEST 5: small preread buffer - Can't connect to 127.0.0.1:1984: Connection refused ==20044==
==20044== Process terminating with default action of signal 11 (SIGSEGV)
==20044== Access not within mapped region at address 0x0
==20044== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20044== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20044== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20044== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20044== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20044== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20044== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20044== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20044== by 0x8062D4E: main (nginx.c:382)
==20044== If you believe this happened as a result of a stack
==20044== overflow in your program's main thread (unlikely but
==20044== possible), you can try to increase the size of the
==20044== main thread stack using the --main-stacksize= flag.
==20044== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 3: receive until on request_body - receiveuntil(1) on the last byte of the body - Can't connect to 127.0.0.1:1984: Connection refused ==20046== Invalid read of size 4
==20046== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20046== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20046== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20046== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20046== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20046== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20046== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20046== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20046== by 0x8062D4E: main (nginx.c:382)
==20046== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20046==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused ==20046==
==20046== Process terminating with default action of signal 11 (SIGSEGV)
==20046== Access not within mapped region at address 0x0
==20046== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20046== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20046== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20046== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20046== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20046== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20046== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20046== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20046== by 0x8062D4E: main (nginx.c:382)
==20046== If you believe this happened as a result of a stack
==20046== overflow in your program's main thread (unlikely but
==20046== possible), you can try to increase the size of the
==20046== main thread stack using the --main-stacksize= flag.
==20046== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 4: read from preread buffer - Can't connect to 127.0.0.1:1984: Connection refused ==20048== Invalid read of size 4
==20048== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20048== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20048== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20048== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20048== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20048== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20048== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20048== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20048== by 0x8062D4E: main (nginx.c:382)
==20048== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20048==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
023-preread/req-socket.t TEST 4: read from preread buffer - Can't connect to 127.0.0.1:1984: Connection refused ==20048==
==20048== Process terminating with default action of signal 11 (SIGSEGV)
==20048== Access not within mapped region at address 0x0
==20048== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20048== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20048== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20048== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20048== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20048== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20048== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20048== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20048== by 0x8062D4E: main (nginx.c:382)
==20048== If you believe this happened as a result of a stack
==20048== overflow in your program's main thread (unlikely but
==20048== possible), you can try to increase the size of the
==20048== main thread stack using the --main-stacksize= flag.
==20048== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 8: peeking preread buffer, timedout - Can't connect to 127.0.0.1:1984: Connection refused ==20050== Invalid read of size 4
==20050== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20050== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20050== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20050== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20050== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20050== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20050== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20050== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20050== by 0x8062D4E: main (nginx.c:382)
==20050== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20050==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==20050==
==20050== Process terminating with default action of signal 11 (SIGSEGV)
==20050== Access not within mapped region at address 0x0
==20050== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20050== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20050== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20050== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20050== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20050== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20050== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20050== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20050== by 0x8062D4E: main (nginx.c:382)
==20050== If you believe this happened as a result of a stack
==20050== overflow in your program's main thread (unlikely but
==20050== possible), you can try to increase the size of the
==20050== main thread stack using the --main-stacksize= flag.
==20050== 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 (aborted) '
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 12: peek works with other preread handlers - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20052== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
023-preread/req-socket.t TEST 12: peek works with other preread handlers - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20052== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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/req-socket.t TEST 12: peek works with other preread handlers - pattern "$ssl_preread_server_name is empty while prereading client data" should match a line in error.log (req 1)
023-preread/req-socket.t TEST 12: peek works with other preread handlers - pattern "$ssl_preread_server_name = my.sni.server.name while prereading client data" should match a line in error.log (req 1)
023-preread/req-socket.t TEST 2: attempt to use the req socket across request boundary - Can't connect to 127.0.0.1:1984: Connection refused ==20054== Invalid read of size 4
==20054== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20054== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20054== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20054== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20054== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20054== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20054== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20054== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20054== by 0x8062D4E: main (nginx.c:382)
==20054== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20054==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
023-preread/req-socket.t TEST 2: attempt to use the req socket across request boundary - Can't connect to 127.0.0.1:1984: Connection refused ==20054==
==20054== Process terminating with default action of signal 11 (SIGSEGV)
==20054== Access not within mapped region at address 0x0
==20054== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20054== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20054== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20054== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20054== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20054== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20054== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20054== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20054== by 0x8062D4E: main (nginx.c:382)
==20054== If you believe this happened as a result of a stack
==20054== overflow in your program's main thread (unlikely but
==20054== possible), you can try to increase the size of the
==20054== main thread stack using the --main-stacksize= flag.
==20054== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 6: peeking preread buffer - Can't connect to 127.0.0.1:1984: Connection refused ==20056== Invalid read of size 4
==20056== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20056== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20056== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20056== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20056== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20056== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20056== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20056== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20056== by 0x8062D4E: main (nginx.c:382)
==20056== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20056==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
023-preread/req-socket.t TEST 6: peeking preread buffer - Can't connect to 127.0.0.1:1984: Connection refused ==20056==
==20056== Process terminating with default action of signal 11 (SIGSEGV)
==20056== Access not within mapped region at address 0x0
==20056== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20056== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20056== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20056== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20056== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20056== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20056== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20056== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20056== by 0x8062D4E: main (nginx.c:382)
==20056== If you believe this happened as a result of a stack
==20056== overflow in your program's main thread (unlikely but
==20056== possible), you can try to increase the size of the
==20056== main thread stack using the --main-stacksize= flag.
==20056== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 10: peek busy reading - Can't connect to 127.0.0.1:1984: Connection refused ==20058== Invalid read of size 4
==20058== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20058== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20058== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20058== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20058== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20058== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20058== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20058== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20058== by 0x8062D4E: main (nginx.c:382)
==20058== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20058==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
023-preread/req-socket.t TEST 10: peek busy reading - Can't connect to 127.0.0.1:1984: Connection refused ==20058==
==20058== Process terminating with default action of signal 11 (SIGSEGV)
==20058== Access not within mapped region at address 0x0
==20058== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20058== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20058== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20058== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20058== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20058== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20058== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20058== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20058== by 0x8062D4E: main (nginx.c:382)
==20058== If you believe this happened as a result of a stack
==20058== overflow in your program's main thread (unlikely but
==20058== possible), you can try to increase the size of the
==20058== main thread stack using the --main-stacksize= flag.
==20058== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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/sanity.t TEST 9: nginx quote sql string 2 - 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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20063== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
023-preread/sanity.t TEST 9: nginx quote sql string 2 - 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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20063== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 11: short circuit - Can't connect to 127.0.0.1:1984: Connection refused ==20065== Invalid read of size 4
==20065== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20065== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20065== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20065== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20065== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20065== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20065== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20065== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20065== by 0x8062D4E: main (nginx.c:382)
==20065== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20065==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
023-preread/sanity.t TEST 11: short circuit - Can't connect to 127.0.0.1:1984: Connection refused ==20065==
==20065== Process terminating with default action of signal 11 (SIGSEGV)
==20065== Access not within mapped region at address 0x0
==20065== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20065== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20065== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20065== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20065== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20065== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20065== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20065== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20065== by 0x8062D4E: main (nginx.c:382)
==20065== If you believe this happened as a result of a stack
==20065== overflow in your program's main thread (unlikely but
==20065== possible), you can try to increase the size of the
==20065== main thread stack using the --main-stacksize= flag.
==20065== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 12: nginx vars in script path - Can't connect to 127.0.0.1:1984: Connection refused ==20067== Invalid read of size 4
==20067== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20067== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20067== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20067== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20067== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20067== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20067== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20067== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20067== by 0x8062D4E: main (nginx.c:382)
==20067== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20067==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
023-preread/sanity.t TEST 12: nginx vars in script path - Can't connect to 127.0.0.1:1984: Connection refused ==20067==
==20067== Process terminating with default action of signal 11 (SIGSEGV)
==20067== Access not within mapped region at address 0x0
==20067== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20067== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20067== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20067== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20067== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20067== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20067== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20067== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20067== by 0x8062D4E: main (nginx.c:382)
==20067== If you believe this happened as a result of a stack
==20067== overflow in your program's main thread (unlikely but
==20067== possible), you can try to increase the size of the
==20067== main thread stack using the --main-stacksize= flag.
==20067== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 4: variable - Can't connect to 127.0.0.1:1984: Connection refused ==20069== Invalid read of size 4
==20069== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20069== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20069== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20069== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20069== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20069== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20069== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20069== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20069== by 0x8062D4E: main (nginx.c:382)
==20069== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20069==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
023-preread/sanity.t TEST 4: variable - Can't connect to 127.0.0.1:1984: Connection refused ==20069==
==20069== Process terminating with default action of signal 11 (SIGSEGV)
==20069== Access not within mapped region at address 0x0
==20069== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20069== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20069== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20069== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20069== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20069== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20069== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20069== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20069== by 0x8062D4E: main (nginx.c:382)
==20069== If you believe this happened as a result of a stack
==20069== overflow in your program's main thread (unlikely but
==20069== possible), you can try to increase the size of the
==20069== main thread stack using the --main-stacksize= flag.
==20069== 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 (aborted) '
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 10: use dollar - Can't connect to 127.0.0.1:1984: Connection refused ==20071== Invalid read of size 4
==20071== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20071== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20071== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20071== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20071== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20071== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20071== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20071== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20071== by 0x8062D4E: main (nginx.c:382)
==20071== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20071==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
023-preread/sanity.t TEST 10: use dollar - Can't connect to 127.0.0.1:1984: Connection refused ==20071==
==20071== Process terminating with default action of signal 11 (SIGSEGV)
==20071== Access not within mapped region at address 0x0
==20071== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20071== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20071== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20071== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20071== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20071== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20071== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20071== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20071== by 0x8062D4E: main (nginx.c:382)
==20071== If you believe this happened as a result of a stack
==20071== overflow in your program's main thread (unlikely but
==20071== possible), you can try to increase the size of the
==20071== main thread stack using the --main-stacksize= flag.
==20071== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 2: basic say - Can't connect to 127.0.0.1:1984: Connection refused ==20073== Invalid read of size 4
==20073== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20073== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20073== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20073== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20073== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20073== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20073== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20073== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20073== by 0x8062D4E: main (nginx.c:382)
==20073== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20073==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
023-preread/sanity.t TEST 2: basic say - Can't connect to 127.0.0.1:1984: Connection refused ==20073==
==20073== Process terminating with default action of signal 11 (SIGSEGV)
==20073== Access not within mapped region at address 0x0
==20073== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20073== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20073== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20073== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20073== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20073== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20073== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20073== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20073== by 0x8062D4E: main (nginx.c:382)
==20073== If you believe this happened as a result of a stack
==20073== overflow in your program's main thread (unlikely but
==20073== possible), you can try to increase the size of the
==20073== main thread stack using the --main-stacksize= flag.
==20073== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 14: Lua file does not exist - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20075== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
023-preread/sanity.t TEST 14: Lua file does not exist - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20075== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - pattern "(?^:failed to load external Lua file ".*?\btest2\.lua": cannot open .*? No such file or directory)" should match a line in error.log (req 1)
023-preread/sanity.t TEST 7: write boolean - Can't connect to 127.0.0.1:1984: Connection refused ==20077== Invalid read of size 4
==20077== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20077== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20077== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20077== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20077== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20077== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20077== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20077== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20077== by 0x8062D4E: main (nginx.c:382)
==20077== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20077==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
023-preread/sanity.t TEST 7: write boolean - Can't connect to 127.0.0.1:1984: Connection refused ==20077==
==20077== Process terminating with default action of signal 11 (SIGSEGV)
==20077== Access not within mapped region at address 0x0
==20077== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20077== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20077== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20077== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20077== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20077== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20077== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20077== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20077== by 0x8062D4E: main (nginx.c:382)
==20077== If you believe this happened as a result of a stack
==20077== overflow in your program's main thread (unlikely but
==20077== possible), you can try to increase the size of the
==20077== main thread stack using the --main-stacksize= flag.
==20077== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 3: no ngx.echo - Can't connect to 127.0.0.1:1984: Connection refused ==20079== Invalid read of size 4
==20079== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20079== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20079== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20079== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20079== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20079== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20079== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20079== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20079== by 0x8062D4E: main (nginx.c:382)
==20079== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20079==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
023-preread/sanity.t TEST 3: no ngx.echo - Can't connect to 127.0.0.1:1984: Connection refused ==20079==
==20079== Process terminating with default action of signal 11 (SIGSEGV)
==20079== Access not within mapped region at address 0x0
==20079== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20079== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20079== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20079== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20079== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20079== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20079== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20079== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20079== by 0x8062D4E: main (nginx.c:382)
==20079== If you believe this happened as a result of a stack
==20079== overflow in your program's main thread (unlikely but
==20079== possible), you can try to increase the size of the
==20079== main thread stack using the --main-stacksize= flag.
==20079== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
023-preread/sanity.t TEST 3: no ngx.echo - status code ok got: ''
expected: '200'
023-preread/sanity.t TEST 3: no ngx.echo - pattern "attempt to call field 'echo' (a nil value)" should match a line in error.log (req 1)
023-preread/sanity.t TEST 6: nil is "nil" - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20081== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
023-preread/sanity.t TEST 6: nil is "nil" - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20081== by 0x8062D4E: main (nginx.c:382)
==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.

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" - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 13: phase postponing works - Can't connect to 127.0.0.1:1984: Connection refused ==20083== Invalid read of size 4
==20083== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20083== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20083== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20083== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20083== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20083== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20083== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20083== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20083== by 0x8062D4E: main (nginx.c:382)
==20083== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20083==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
023-preread/sanity.t TEST 13: phase postponing works - Can't connect to 127.0.0.1:1984: Connection refused ==20083==
==20083== Process terminating with default action of signal 11 (SIGSEGV)
==20083== Access not within mapped region at address 0x0
==20083== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20083== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20083== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20083== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20083== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20083== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20083== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20083== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20083== by 0x8062D4E: main (nginx.c:382)
==20083== If you believe this happened as a result of a stack
==20083== overflow in your program's main thread (unlikely but
==20083== possible), you can try to increase the size of the
==20083== main thread stack using the --main-stacksize= flag.
==20083== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 13: phase postponing works - pattern "$ssl_preread_server_name = my.sni.server.name while prereading client data" should match a line in error.log (req 1)
023-preread/sanity.t TEST 1: basic print - Can't connect to 127.0.0.1:1984: Connection refused ==20085== Invalid read of size 4
==20085== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20085== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20085== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20085== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20085== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20085== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20085== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20085== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20085== by 0x8062D4E: main (nginx.c:382)
==20085== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20085==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
023-preread/sanity.t TEST 1: basic print - Can't connect to 127.0.0.1:1984: Connection refused ==20085==
==20085== Process terminating with default action of signal 11 (SIGSEGV)
==20085== Access not within mapped region at address 0x0
==20085== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20085== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20085== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20085== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20085== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20085== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20085== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20085== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20085== by 0x8062D4E: main (nginx.c:382)
==20085== If you believe this happened as a result of a stack
==20085== overflow in your program's main thread (unlikely but
==20085== possible), you can try to increase the size of the
==20085== main thread stack using the --main-stacksize= flag.
==20085== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 8: nginx quote sql string 1 - Can't connect to 127.0.0.1:1984: Connection refused ==20087== Invalid read of size 4
==20087== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20087== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20087== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20087== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20087== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20087== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20087== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20087== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20087== by 0x8062D4E: main (nginx.c:382)
==20087== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20087==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
023-preread/sanity.t TEST 8: nginx quote sql string 1 - Can't connect to 127.0.0.1:1984: Connection refused ==20087==
==20087== Process terminating with default action of signal 11 (SIGSEGV)
==20087== Access not within mapped region at address 0x0
==20087== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20087== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20087== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20087== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20087== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20087== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20087== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20087== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20087== by 0x8062D4E: main (nginx.c:382)
==20087== If you believe this happened as a result of a stack
==20087== overflow in your program's main thread (unlikely but
==20087== possible), you can try to increase the size of the
==20087== main thread stack using the --main-stacksize= flag.
==20087== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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/sanity.t TEST 5: variable (file) - Can't connect to 127.0.0.1:1984: Connection refused ==20089== Invalid read of size 4
==20089== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20089== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20089== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20089== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20089== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20089== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20089== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20089== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20089== by 0x8062D4E: main (nginx.c:382)
==20089== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20089==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
023-preread/sanity.t TEST 5: variable (file) - Can't connect to 127.0.0.1:1984: Connection refused ==20089==
==20089== Process terminating with default action of signal 11 (SIGSEGV)
==20089== Access not within mapped region at address 0x0
==20089== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20089== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20089== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20089== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20089== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20089== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20089== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20089== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20089== by 0x8062D4E: main (nginx.c:382)
==20089== If you believe this happened as a result of a stack
==20089== overflow in your program's main thread (unlikely but
==20089== possible), you can try to increase the size of the
==20089== main thread stack using the --main-stacksize= flag.
==20089== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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/sleep.t TEST 4: sleep 0.5 - interleaved by ngx.say() - ended by ngx.sleep - Can't connect to 127.0.0.1:1984: Connection refused ==20094== Invalid read of size 4
==20094== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20094== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20094== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20094== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20094== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20094== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20094== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20094== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20094== by 0x8062D4E: main (nginx.c:382)
==20094== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20094==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
023-preread/sleep.t TEST 4: sleep 0.5 - interleaved by ngx.say() - ended by ngx.sleep - Can't connect to 127.0.0.1:1984: Connection refused ==20094==
==20094== Process terminating with default action of signal 11 (SIGSEGV)
==20094== Access not within mapped region at address 0x0
==20094== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20094== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20094== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20094== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20094== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20094== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20094== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20094== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20094== by 0x8062D4E: main (nginx.c:382)
==20094== If you believe this happened as a result of a stack
==20094== overflow in your program's main thread (unlikely but
==20094== possible), you can try to increase the size of the
==20094== main thread stack using the --main-stacksize= flag.
==20094== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 4: sleep 0.5 - interleaved by ngx.say() - ended by ngx.sleep - pattern "lua ready to sleep" should match a line in error.log (req 1)
023-preread/sleep.t TEST 4: sleep 0.5 - interleaved by ngx.say() - ended by ngx.sleep - pattern "stream lua sleep timer expired" should match a line in error.log (req 1)
023-preread/sleep.t TEST 1: sleep 0.5 - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20096== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
023-preread/sleep.t TEST 1: sleep 0.5 - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20096== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - pattern "lua ready to sleep for" should match a line in error.log (req 1)
023-preread/sleep.t TEST 1: sleep 0.5 - pattern "stream lua sleep timer expired" should match a line in error.log (req 1)
023-preread/sleep.t TEST 3: sleep 0.5 - multi-times - Can't connect to 127.0.0.1:1984: Connection refused ==20098== Invalid read of size 4
==20098== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20098== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20098== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20098== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20098== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20098== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20098== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20098== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20098== by 0x8062D4E: main (nginx.c:382)
==20098== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20098==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
023-preread/sleep.t TEST 3: sleep 0.5 - multi-times - Can't connect to 127.0.0.1:1984: Connection refused ==20098==
==20098== Process terminating with default action of signal 11 (SIGSEGV)
==20098== Access not within mapped region at address 0x0
==20098== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20098== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20098== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20098== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20098== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20098== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20098== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20098== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20098== by 0x8062D4E: main (nginx.c:382)
==20098== If you believe this happened as a result of a stack
==20098== overflow in your program's main thread (unlikely but
==20098== possible), you can try to increase the size of the
==20098== main thread stack using the --main-stacksize= flag.
==20098== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - pattern "lua ready to sleep for" should match a line in error.log (req 1)
023-preread/sleep.t TEST 3: sleep 0.5 - multi-times - pattern "stream lua sleep timer expired" should match a line in error.log (req 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 ==20100== Invalid read of size 4
==20100== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20100== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20100== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20100== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20100== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20100== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20100== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20100== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20100== by 0x8062D4E: main (nginx.c:382)
==20100== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20100==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==20100==
==20100== Process terminating with default action of signal 11 (SIGSEGV)
==20100== Access not within mapped region at address 0x0
==20100== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20100== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20100== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20100== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20100== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20100== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20100== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20100== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20100== by 0x8062D4E: main (nginx.c:382)
==20100== If you believe this happened as a result of a stack
==20100== overflow in your program's main thread (unlikely but
==20100== possible), you can try to increase the size of the
==20100== main thread stack using the --main-stacksize= flag.
==20100== 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 (aborted) '
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 5: sleep 0.5 - interleaved by ngx.say() - not ended by ngx.sleep - pattern "lua ready to sleep for" should match a line in error.log (req 1)
023-preread/sleep.t TEST 5: sleep 0.5 - interleaved by ngx.say() - not ended by ngx.sleep - pattern "stream lua sleep timer expired" should match a line in error.log (req 1)
023-preread/sleep.t TEST 2: sleep ag - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20102== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
023-preread/sleep.t TEST 2: sleep ag - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20102== by 0x8062D4E: main (nginx.c:382)
==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.

023-preread/sleep.t TEST 2: sleep ag - status code ok got: ''
expected: '200'
023-preread/sleep.t TEST 2: sleep ag - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
023-preread/sleep.t TEST 2: sleep ag - status code ok got: ''
expected: '200'
023-preread/sleep.t TEST 2: sleep ag - pattern "bad argument \#1 to 'sleep'" should match a line in error.log (req 1)
023-preread/socket-keepalive.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==20107== Invalid read of size 4
==20107== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20107== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20107== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20107== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20107== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20107== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20107== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20107== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20107== by 0x8062D4E: main (nginx.c:382)
==20107== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20107==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
023-preread/socket-keepalive.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==20107==
==20107== Process terminating with default action of signal 11 (SIGSEGV)
==20107== Access not within mapped region at address 0x0
==20107== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20107== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20107== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20107== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20107== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20107== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20107== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20107== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20107== by 0x8062D4E: main (nginx.c:382)
==20107== If you believe this happened as a result of a stack
==20107== overflow in your program's main thread (unlikely but
==20107== possible), you can try to increase the size of the
==20107== main thread stack using the --main-stacksize= flag.
==20107== 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 (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==20109== Invalid read of size 4
==20109== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20109== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20109== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20109== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20109== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20109== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20109== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20109== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20109== by 0x8062D4E: main (nginx.c:382)
==20109== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20109==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
023-preread/socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - Can't connect to 127.0.0.1:1984: Connection refused ==20109==
==20109== Process terminating with default action of signal 11 (SIGSEGV)
==20109== Access not within mapped region at address 0x0
==20109== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20109== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20109== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20109== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20109== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20109== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20109== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20109== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20109== by 0x8062D4E: main (nginx.c:382)
==20109== If you believe this happened as a result of a stack
==20109== overflow in your program's main thread (unlikely but
==20109== possible), you can try to increase the size of the
==20109== main thread stack using the --main-stacksize= flag.
==20109== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 13: sock:settimeout(nil) does not override lua_socket_send_timeout - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==20114== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==20114== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20114== by 0x8062D4E: main (nginx.c:382)
==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_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 13: sock:settimeout(nil) does not override lua_socket_send_timeout - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==20114== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==20114== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20114== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 connect timeout: 60000" should match a line in error.log (req 1)
023-preread/tcp-socket-timeout.t TEST 13: sock:settimeout(nil) does not override lua_socket_send_timeout - pattern "lua tcp socket send timeout: 102" should match a line in error.log (req 1)
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 8: sock:settimeout(nil) does not override lua_socket_read_timeout - Can't connect to 127.0.0.1:1984: Connection refused ==20116== Invalid read of size 4
==20116== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20116== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20116== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20116== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20116== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20116== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==20116== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==20116== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20116== by 0x8062D4E: main (nginx.c:382)
==20116== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20116==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 8: sock:settimeout(nil) does not override lua_socket_read_timeout - Can't connect to 127.0.0.1:1984: Connection refused ==20116==
==20116== Process terminating with default action of signal 11 (SIGSEGV)
==20116== Access not within mapped region at address 0x0
==20116== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20116== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20116== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20116== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20116== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20116== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==20116== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==20116== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20116== by 0x8062D4E: main (nginx.c:382)
==20116== If you believe this happened as a result of a stack
==20116== overflow in your program's main thread (unlikely but
==20116== possible), you can try to increase the size of the
==20116== main thread stack using the --main-stacksize= flag.
==20116== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 connect timeout: 60000" 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 - pattern "lua tcp socket read timeout: 102" 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 - pattern "lua tcp socket read timed out" should match a line in error.log (req 1)
023-preread/tcp-socket-timeout.t TEST 5: -1 is bad timeout value - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==20118== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==20118== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20118== by 0x8062D4E: main (nginx.c:382)
==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_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 5: -1 is bad timeout value - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==20118== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==20118== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20118== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - pattern "bad timeout value" should match a line in error.log (req 1)
023-preread/tcp-socket-timeout.t TEST 5: -1 is bad timeout value - pattern "finalize stream request: 500" should match a line in error.log (req 1)
023-preread/tcp-socket-timeout.t TEST 2: sock:settimeout() overrides lua_socket_connect_timeout - Can't connect to 127.0.0.1:1984: Connection refused ==20120== Invalid read of size 4
==20120== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20120== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20120== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20120== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20120== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20120== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==20120== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==20120== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20120== by 0x8062D4E: main (nginx.c:382)
==20120== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20120==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 2: sock:settimeout() overrides lua_socket_connect_timeout - Can't connect to 127.0.0.1:1984: Connection refused ==20120==
==20120== Process terminating with default action of signal 11 (SIGSEGV)
==20120== Access not within mapped region at address 0x0
==20120== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20120== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20120== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20120== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20120== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20120== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==20120== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==20120== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20120== by 0x8062D4E: main (nginx.c:382)
==20120== If you believe this happened as a result of a stack
==20120== overflow in your program's main thread (unlikely but
==20120== possible), you can try to increase the size of the
==20120== main thread stack using the --main-stacksize= flag.
==20120== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua tcp socket connect timeout: 150" should match a line in error.log (req 1)
023-preread/tcp-socket-timeout.t TEST 9: sock:settimeout(0) does not override lua_socket_read_timeout - Can't connect to 127.0.0.1:1984: Connection refused ==20122== Invalid read of size 4
==20122== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20122== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20122== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20122== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20122== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20122== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==20122== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==20122== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20122== by 0x8062D4E: main (nginx.c:382)
==20122== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20122==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 9: sock:settimeout(0) does not override lua_socket_read_timeout - Can't connect to 127.0.0.1:1984: Connection refused ==20122==
==20122== Process terminating with default action of signal 11 (SIGSEGV)
==20122== Access not within mapped region at address 0x0
==20122== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20122== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20122== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20122== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20122== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20122== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==20122== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==20122== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20122== by 0x8062D4E: main (nginx.c:382)
==20122== If you believe this happened as a result of a stack
==20122== overflow in your program's main thread (unlikely but
==20122== possible), you can try to increase the size of the
==20122== main thread stack using the --main-stacksize= flag.
==20122== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 connect timeout: 60000" should match a line in error.log (req 1)
023-preread/tcp-socket-timeout.t TEST 9: sock:settimeout(0) does not override lua_socket_read_timeout - pattern "lua tcp socket read timeout: 102" should match a line in error.log (req 1)
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 15: -1 is bad timeout value - Can't connect to 127.0.0.1:1984: Connection refused ==20124== Invalid read of size 4
==20124== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20124== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20124== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20124== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20124== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20124== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==20124== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==20124== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20124== by 0x8062D4E: main (nginx.c:382)
==20124== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20124==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 15: -1 is bad timeout value - Can't connect to 127.0.0.1:1984: Connection refused ==20124==
==20124== Process terminating with default action of signal 11 (SIGSEGV)
==20124== Access not within mapped region at address 0x0
==20124== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20124== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20124== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20124== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20124== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20124== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==20124== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==20124== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20124== by 0x8062D4E: main (nginx.c:382)
==20124== If you believe this happened as a result of a stack
==20124== overflow in your program's main thread (unlikely but
==20124== possible), you can try to increase the size of the
==20124== main thread stack using the --main-stacksize= flag.
==20124== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - pattern "bad timeout value" should match a line in error.log (req 1)
023-preread/tcp-socket-timeout.t TEST 15: -1 is bad timeout value - pattern "finalize stream request: 500" should match a line in error.log (req 1)
023-preread/tcp-socket-timeout.t TEST 14: sock:settimeout(0) does not override lua_socket_send_timeout - Can't connect to 127.0.0.1:1984: Connection refused ==20126== Invalid read of size 4
==20126== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20126== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20126== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20126== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20126== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20126== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==20126== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==20126== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20126== by 0x8062D4E: main (nginx.c:382)
==20126== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20126==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 14: sock:settimeout(0) does not override lua_socket_send_timeout - Can't connect to 127.0.0.1:1984: Connection refused ==20126==
==20126== Process terminating with default action of signal 11 (SIGSEGV)
==20126== Access not within mapped region at address 0x0
==20126== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20126== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20126== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20126== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20126== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20126== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==20126== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==20126== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20126== by 0x8062D4E: main (nginx.c:382)
==20126== If you believe this happened as a result of a stack
==20126== overflow in your program's main thread (unlikely but
==20126== possible), you can try to increase the size of the
==20126== main thread stack using the --main-stacksize= flag.
==20126== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 connect timeout: 60000" should match a line in error.log (req 1)
023-preread/tcp-socket-timeout.t TEST 14: sock:settimeout(0) does not override lua_socket_send_timeout - pattern "lua tcp socket send timeout: 102" should match a line in error.log (req 1)
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 3: sock:settimeout(nil) does not override lua_socket_connect_timeout - Can't connect to 127.0.0.1:1984: Connection refused ==20128== Invalid read of size 4
==20128== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20128== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20128== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20128== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20128== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20128== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==20128== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==20128== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20128== by 0x8062D4E: main (nginx.c:382)
==20128== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20128==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_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 ==20128==
==20128== Process terminating with default action of signal 11 (SIGSEGV)
==20128== Access not within mapped region at address 0x0
==20128== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20128== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20128== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20128== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20128== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20128== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==20128== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==20128== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20128== by 0x8062D4E: main (nginx.c:382)
==20128== If you believe this happened as a result of a stack
==20128== overflow in your program's main thread (unlikely but
==20128== possible), you can try to increase the size of the
==20128== main thread stack using the --main-stacksize= flag.
==20128== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua tcp socket connect timeout: 102" should match a line in error.log (req 1)
023-preread/tcp-socket-timeout.t TEST 1: lua_socket_connect_timeout only - Can't connect to 127.0.0.1:1984: Connection refused ==20130== Invalid read of size 4
==20130== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20130== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20130== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20130== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20130== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20130== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==20130== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==20130== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20130== by 0x8062D4E: main (nginx.c:382)
==20130== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20130==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 1: lua_socket_connect_timeout only - Can't connect to 127.0.0.1:1984: Connection refused ==20130==
==20130== Process terminating with default action of signal 11 (SIGSEGV)
==20130== Access not within mapped region at address 0x0
==20130== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20130== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20130== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20130== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20130== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20130== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==20130== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==20130== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20130== by 0x8062D4E: main (nginx.c:382)
==20130== If you believe this happened as a result of a stack
==20130== overflow in your program's main thread (unlikely but
==20130== possible), you can try to increase the size of the
==20130== main thread stack using the --main-stacksize= flag.
==20130== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: lua_socket_connect_timeout only - pattern "lua tcp socket connect timeout: 100" should match a line in error.log (req 1)
023-preread/tcp-socket-timeout.t TEST 1: lua_socket_connect_timeout only - pattern "stream lua tcp socket connect timed out, when connecting to 127.0.0.2:12345" 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 - Can't connect to 127.0.0.1:1984: Connection refused ==20132== Invalid read of size 4
==20132== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20132== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20132== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20132== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20132== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20132== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==20132== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==20132== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20132== by 0x8062D4E: main (nginx.c:382)
==20132== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20132==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 4: sock:settimeout(0) does not override lua_socket_connect_timeout - Can't connect to 127.0.0.1:1984: Connection refused ==20132==
==20132== Process terminating with default action of signal 11 (SIGSEGV)
==20132== Access not within mapped region at address 0x0
==20132== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20132== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20132== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20132== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20132== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20132== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==20132== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==20132== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20132== by 0x8062D4E: main (nginx.c:382)
==20132== If you believe this happened as a result of a stack
==20132== overflow in your program's main thread (unlikely but
==20132== possible), you can try to increase the size of the
==20132== main thread stack using the --main-stacksize= flag.
==20132== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua tcp socket connect timeout: 102" should match a line in error.log (req 1)
023-preread/tcp-socket-timeout.t TEST 11: lua_socket_send_timeout only - Can't connect to 127.0.0.1:1984: Connection refused ==20134== Invalid read of size 4
==20134== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20134== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20134== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20134== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20134== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20134== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==20134== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==20134== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20134== by 0x8062D4E: main (nginx.c:382)
==20134== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20134==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 11: lua_socket_send_timeout only - Can't connect to 127.0.0.1:1984: Connection refused ==20134==
==20134== Process terminating with default action of signal 11 (SIGSEGV)
==20134== Access not within mapped region at address 0x0
==20134== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20134== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20134== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20134== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20134== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20134== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==20134== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==20134== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20134== by 0x8062D4E: main (nginx.c:382)
==20134== If you believe this happened as a result of a stack
==20134== overflow in your program's main thread (unlikely but
==20134== possible), you can try to increase the size of the
==20134== main thread stack using the --main-stacksize= flag.
==20134== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 send timeout: 100" should match a line in error.log (req 1)
023-preread/tcp-socket-timeout.t TEST 11: lua_socket_send_timeout only - pattern "lua tcp socket connect timeout: 60000" should match a line in error.log (req 1)
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 6: lua_socket_read_timeout only - Can't connect to 127.0.0.1:1984: Connection refused ==20136== Invalid read of size 4
==20136== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20136== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20136== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20136== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20136== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20136== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==20136== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==20136== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20136== by 0x8062D4E: main (nginx.c:382)
==20136== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20136==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 6: lua_socket_read_timeout only - Can't connect to 127.0.0.1:1984: Connection refused ==20136==
==20136== Process terminating with default action of signal 11 (SIGSEGV)
==20136== Access not within mapped region at address 0x0
==20136== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20136== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20136== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20136== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20136== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20136== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==20136== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==20136== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20136== by 0x8062D4E: main (nginx.c:382)
==20136== If you believe this happened as a result of a stack
==20136== overflow in your program's main thread (unlikely but
==20136== possible), you can try to increase the size of the
==20136== main thread stack using the --main-stacksize= flag.
==20136== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 timeout: 100" should match a line in error.log (req 1)
023-preread/tcp-socket-timeout.t TEST 6: lua_socket_read_timeout only - pattern "lua tcp socket connect timeout: 60000" should match a line in error.log (req 1)
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 10: -1 is bad timeout value - Can't connect to 127.0.0.1:1984: Connection refused ==20138== Invalid read of size 4
==20138== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20138== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20138== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20138== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20138== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20138== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==20138== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==20138== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20138== by 0x8062D4E: main (nginx.c:382)
==20138== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20138==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 10: -1 is bad timeout value - Can't connect to 127.0.0.1:1984: Connection refused ==20138==
==20138== Process terminating with default action of signal 11 (SIGSEGV)
==20138== Access not within mapped region at address 0x0
==20138== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20138== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20138== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20138== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20138== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20138== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==20138== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==20138== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20138== by 0x8062D4E: main (nginx.c:382)
==20138== If you believe this happened as a result of a stack
==20138== overflow in your program's main thread (unlikely but
==20138== possible), you can try to increase the size of the
==20138== main thread stack using the --main-stacksize= flag.
==20138== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - pattern "bad timeout value" should match a line in error.log (req 1)
023-preread/tcp-socket-timeout.t TEST 10: -1 is bad timeout value - pattern "finalize stream request: 500" should match a line in error.log (req 1)
023-preread/tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout - Can't connect to 127.0.0.1:1984: Connection refused ==20140== Invalid read of size 4
==20140== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20140== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20140== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20140== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20140== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20140== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==20140== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==20140== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20140== by 0x8062D4E: main (nginx.c:382)
==20140== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20140==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout - Can't connect to 127.0.0.1:1984: Connection refused ==20140==
==20140== Process terminating with default action of signal 11 (SIGSEGV)
==20140== Access not within mapped region at address 0x0
==20140== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20140== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20140== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20140== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20140== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20140== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==20140== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==20140== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20140== by 0x8062D4E: main (nginx.c:382)
==20140== If you believe this happened as a result of a stack
==20140== overflow in your program's main thread (unlikely but
==20140== possible), you can try to increase the size of the
==20140== main thread stack using the --main-stacksize= flag.
==20140== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 connect timeout: 60000" should match a line in error.log (req 1)
023-preread/tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout - pattern "lua tcp socket read timeout: 150" should match a line in error.log (req 1)
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-timeout.t TEST 12: sock:settimeout() overrides lua_socket_send_timeout - Can't connect to 127.0.0.1:1984: Connection refused ==20142== Invalid read of size 4
==20142== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20142== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20142== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20142== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20142== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20142== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==20142== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==20142== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20142== by 0x8062D4E: main (nginx.c:382)
==20142== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20142==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_process_cycle
fun:main
}
023-preread/tcp-socket-timeout.t TEST 12: sock:settimeout() overrides lua_socket_send_timeout - Can't connect to 127.0.0.1:1984: Connection refused ==20142==
==20142== Process terminating with default action of signal 11 (SIGSEGV)
==20142== Access not within mapped region at address 0x0
==20142== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20142== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20142== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20142== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20142== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20142== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==20142== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==20142== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20142== by 0x8062D4E: main (nginx.c:382)
==20142== If you believe this happened as a result of a stack
==20142== overflow in your program's main thread (unlikely but
==20142== possible), you can try to increase the size of the
==20142== main thread stack using the --main-stacksize= flag.
==20142== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 connect timeout: 60000" should match a line in error.log (req 1)
023-preread/tcp-socket-timeout.t TEST 12: sock:settimeout() overrides lua_socket_send_timeout - pattern "lua tcp socket send timeout: 150" should match a line in error.log (req 1)
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.t TEST 5: connection timeout (tcp) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20147== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
023-preread/tcp-socket.t TEST 5: connection timeout (tcp) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20147== by 0x8062D4E: main (nginx.c:382)
==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.

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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
023-preread/tcp-socket.t TEST 5: connection timeout (tcp) - pattern "stream lua tcp socket connect timed out, when connecting to 127.0.0.2:12345" should match a line in error.log (req 1)
023-preread/tcp-socket.t TEST 7: resolver error (host not found) - Can't connect to 127.0.0.1:1984: Connection refused ==20149== Invalid read of size 4
==20149== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20149== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20149== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20149== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20149== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20149== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20149== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20149== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20149== by 0x8062D4E: main (nginx.c:382)
==20149== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20149==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
023-preread/tcp-socket.t TEST 7: resolver error (host not found) - Can't connect to 127.0.0.1:1984: Connection refused ==20149==
==20149== Process terminating with default action of signal 11 (SIGSEGV)
==20149== Access not within mapped region at address 0x0
==20149== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20149== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20149== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20149== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20149== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20149== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20149== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20149== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20149== by 0x8062D4E: main (nginx.c:382)
==20149== If you believe this happened as a result of a stack
==20149== overflow in your program's main thread (unlikely but
==20149== possible), you can try to increase the size of the
==20149== main thread stack using the --main-stacksize= flag.
==20149== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - pattern "attempt to send data on a closed socket" should match a line in error.log (req 1)
023-preread/tcp-socket.t TEST 2: no resolver defined - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20151== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
023-preread/tcp-socket.t TEST 2: no resolver defined - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20151== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 2: no resolver defined - pattern "attempt to send data on a closed socket:" should match a line in error.log (req 1)
023-preread/tcp-socket.t TEST 3: with resolver - Can't connect to 127.0.0.1:1984: Connection refused ==20153== Invalid read of size 4
==20153== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20153== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20153== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20153== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20153== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20153== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20153== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20153== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20153== by 0x8062D4E: main (nginx.c:382)
==20153== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20153==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
023-preread/tcp-socket.t TEST 3: with resolver - Can't connect to 127.0.0.1:1984: Connection refused ==20153==
==20153== Process terminating with default action of signal 11 (SIGSEGV)
==20153== Access not within mapped region at address 0x0
==20153== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20153== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20153== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20153== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20153== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20153== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20153== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20153== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20153== by 0x8062D4E: main (nginx.c:382)
==20153== If you believe this happened as a result of a stack
==20153== overflow in your program's main thread (unlikely but
==20153== possible), you can try to increase the size of the
==20153== main thread stack using the --main-stacksize= flag.
==20153== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 8: resolver error (timeout) - Can't connect to 127.0.0.1:1984: Connection refused ==20155== Invalid read of size 4
==20155== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20155== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20155== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20155== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20155== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20155== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20155== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20155== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20155== by 0x8062D4E: main (nginx.c:382)
==20155== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20155==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==20155==
==20155== Process terminating with default action of signal 11 (SIGSEGV)
==20155== Access not within mapped region at address 0x0
==20155== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20155== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20155== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20155== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20155== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20155== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20155== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20155== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20155== by 0x8062D4E: main (nginx.c:382)
==20155== If you believe this happened as a result of a stack
==20155== overflow in your program's main thread (unlikely but
==20155== possible), you can try to increase the size of the
==20155== main thread stack using the --main-stacksize= flag.
==20155== 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 (aborted) '
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) - pattern "attempt to send data on a closed socket" should match a line in error.log (req 1)
023-preread/tcp-socket.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==20157== Invalid read of size 4
==20157== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20157== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20157== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20157== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20157== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20157== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20157== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20157== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20157== by 0x8062D4E: main (nginx.c:382)
==20157== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20157==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
023-preread/tcp-socket.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==20157==
==20157== Process terminating with default action of signal 11 (SIGSEGV)
==20157== Access not within mapped region at address 0x0
==20157== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20157== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20157== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20157== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20157== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20157== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20157== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20157== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20157== by 0x8062D4E: main (nginx.c:382)
==20157== If you believe this happened as a result of a stack
==20157== overflow in your program's main thread (unlikely but
==20157== possible), you can try to increase the size of the
==20157== main thread stack using the --main-stacksize= flag.
==20157== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 6: not closed manually - Can't connect to 127.0.0.1:1984: Connection refused ==20159== Invalid read of size 4
==20159== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20159== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20159== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20159== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20159== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20159== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20159== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20159== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20159== by 0x8062D4E: main (nginx.c:382)
==20159== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20159==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
023-preread/tcp-socket.t TEST 6: not closed manually - Can't connect to 127.0.0.1:1984: Connection refused ==20159==
==20159== Process terminating with default action of signal 11 (SIGSEGV)
==20159== Access not within mapped region at address 0x0
==20159== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20159== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20159== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20159== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20159== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20159== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20159== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20159== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20159== by 0x8062D4E: main (nginx.c:382)
==20159== If you believe this happened as a result of a stack
==20159== overflow in your program's main thread (unlikely but
==20159== possible), you can try to increase the size of the
==20159== main thread stack using the --main-stacksize= flag.
==20159== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 4: connection refused (tcp) - Can't connect to 127.0.0.1:1984: Connection refused ==20161== Invalid read of size 4
==20161== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20161== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20161== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20161== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20161== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20161== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20161== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20161== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20161== by 0x8062D4E: main (nginx.c:382)
==20161== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20161==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
023-preread/tcp-socket.t TEST 4: connection refused (tcp) - Can't connect to 127.0.0.1:1984: Connection refused ==20161==
==20161== Process terminating with default action of signal 11 (SIGSEGV)
==20161== Access not within mapped region at address 0x0
==20161== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20161== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20161== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20161== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20161== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20161== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20161== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20161== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20161== by 0x8062D4E: main (nginx.c:382)
==20161== If you believe this happened as a result of a stack
==20161== overflow in your program's main thread (unlikely but
==20161== possible), you can try to increase the size of the
==20161== main thread stack using the --main-stacksize= flag.
==20161== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 4: connection refused (tcp) - pattern "(?^:connect\(\) failed \(\d+: Connection refused\))" should match a line in error.log (req 1)
025-codecache.t TEST 10: no clear builtin libs (misc) - Can't connect to 127.0.0.1:1984: Connection refused ==20167== Invalid read of size 4
==20167== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20167== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20167== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20167== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20167== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20167== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20167== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20167== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20167== by 0x8062D4E: main (nginx.c:382)
==20167== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20167==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
025-codecache.t TEST 10: no clear builtin libs (misc) - Can't connect to 127.0.0.1:1984: Connection refused ==20167==
==20167== Process terminating with default action of signal 11 (SIGSEGV)
==20167== Access not within mapped region at address 0x0
==20167== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20167== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20167== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20167== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20167== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20167== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20167== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20167== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20167== by 0x8062D4E: main (nginx.c:382)
==20167== If you believe this happened as a result of a stack
==20167== overflow in your program's main thread (unlikely but
==20167== possible), you can try to increase the size of the
==20167== main thread stack using the --main-stacksize= flag.
==20167== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 2: code cache explicitly on - Can't connect to 127.0.0.1:1984: Connection refused ==20169== Invalid read of size 4
==20169== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20169== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20169== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20169== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20169== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20169== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20169== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20169== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20169== by 0x8062D4E: main (nginx.c:382)
==20169== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20169==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
025-codecache.t TEST 2: code cache explicitly on - Can't connect to 127.0.0.1:1984: Connection refused ==20169==
==20169== Process terminating with default action of signal 11 (SIGSEGV)
==20169== Access not within mapped region at address 0x0
==20169== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20169== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20169== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20169== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20169== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20169== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20169== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20169== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20169== by 0x8062D4E: main (nginx.c:382)
==20169== If you believe this happened as a result of a stack
==20169== overflow in your program's main thread (unlikely but
==20169== possible), you can try to increase the size of the
==20169== main thread stack using the --main-stacksize= flag.
==20169== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 14: github #257: globals cleared when code cache off - Can't connect to 127.0.0.1:1984: Connection refused ==20171== Invalid read of size 4
==20171== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20171== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20171== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20171== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20171== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20171== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20171== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20171== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20171== by 0x8062D4E: main (nginx.c:382)
==20171== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20171==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
025-codecache.t TEST 14: github #257: globals cleared when code cache off - Can't connect to 127.0.0.1:1984: Connection refused ==20171==
==20171== Process terminating with default action of signal 11 (SIGSEGV)
==20171== Access not within mapped region at address 0x0
==20171== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20171== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20171== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20171== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20171== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20171== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20171== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20171== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20171== by 0x8062D4E: main (nginx.c:382)
==20171== If you believe this happened as a result of a stack
==20171== overflow in your program's main thread (unlikely but
==20171== possible), you can try to increase the size of the
==20171== main thread stack using the --main-stacksize= flag.
==20171== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 18: lua variable sharing via upvalue - Can't connect to 127.0.0.1:1984: Connection refused ==20173== Invalid read of size 4
==20173== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20173== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20173== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20173== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20173== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20173== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20173== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20173== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20173== by 0x8062D4E: main (nginx.c:382)
==20173== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20173==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
025-codecache.t TEST 18: lua variable sharing via upvalue - Can't connect to 127.0.0.1:1984: Connection refused ==20173==
==20173== Process terminating with default action of signal 11 (SIGSEGV)
==20173== Access not within mapped region at address 0x0
==20173== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20173== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20173== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20173== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20173== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20173== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20173== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20173== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20173== by 0x8062D4E: main (nginx.c:382)
==20173== If you believe this happened as a result of a stack
==20173== overflow in your program's main thread (unlikely but
==20173== possible), you can try to increase the size of the
==20173== main thread stack using the --main-stacksize= flag.
==20173== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 16: ngx.timer.* - Can't connect to 127.0.0.1:1984: Connection refused ==20175== Invalid read of size 4
==20175== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20175== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20175== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20175== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20175== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20175== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20175== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20175== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20175== by 0x8062D4E: main (nginx.c:382)
==20175== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20175==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
025-codecache.t TEST 16: ngx.timer.* - Can't connect to 127.0.0.1:1984: Connection refused ==20175==
==20175== Process terminating with default action of signal 11 (SIGSEGV)
==20175== Access not within mapped region at address 0x0
==20175== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20175== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20175== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20175== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20175== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20175== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20175== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20175== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20175== by 0x8062D4E: main (nginx.c:382)
==20175== If you believe this happened as a result of a stack
==20175== overflow in your program's main thread (unlikely but
==20175== possible), you can try to increase the size of the
==20175== main thread stack using the --main-stacksize= flag.
==20175== 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.* - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 7: code cache explicitly off (affects require) + content_by_lua_file - Can't connect to 127.0.0.1:1984: Connection refused ==20177== Invalid read of size 4
==20177== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20177== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20177== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20177== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20177== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20177== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20177== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20177== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20177== by 0x8062D4E: main (nginx.c:382)
==20177== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20177==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
025-codecache.t TEST 7: code cache explicitly off (affects require) + content_by_lua_file - Can't connect to 127.0.0.1:1984: Connection refused ==20177==
==20177== Process terminating with default action of signal 11 (SIGSEGV)
==20177== Access not within mapped region at address 0x0
==20177== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20177== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20177== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20177== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20177== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20177== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20177== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20177== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20177== by 0x8062D4E: main (nginx.c:382)
==20177== If you believe this happened as a result of a stack
==20177== overflow in your program's main thread (unlikely but
==20177== possible), you can try to increase the size of the
==20177== main thread stack using the --main-stacksize= flag.
==20177== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 22: cosocket connection pool timeout (after Lua VM destroys) - Can't connect to 127.0.0.1:1984: Connection refused ==20179== Invalid read of size 4
==20179== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20179== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20179== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20179== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20179== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20179== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20179== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20179== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20179== by 0x8062D4E: main (nginx.c:382)
==20179== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20179==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
025-codecache.t TEST 22: cosocket connection pool timeout (after Lua VM destroys) - Can't connect to 127.0.0.1:1984: Connection refused ==20179==
==20179== Process terminating with default action of signal 11 (SIGSEGV)
==20179== Access not within mapped region at address 0x0
==20179== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20179== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20179== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20179== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20179== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20179== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20179== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20179== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20179== by 0x8062D4E: main (nginx.c:382)
==20179== If you believe this happened as a result of a stack
==20179== overflow in your program's main thread (unlikely but
==20179== possible), you can try to increase the size of the
==20179== main thread stack using the --main-stacksize= flag.
==20179== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 6: code cache explicitly off (affects require) + content_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20181== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
025-codecache.t TEST 6: code cache explicitly off (affects require) + content_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20181== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 5: code cache explicitly off (server level) but be overridden in the location - Can't connect to 127.0.0.1:1984: Connection refused ==20183== Invalid read of size 4
==20183== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20183== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20183== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20183== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20183== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20183== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20183== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20183== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20183== by 0x8062D4E: main (nginx.c:382)
==20183== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20183==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
025-codecache.t TEST 5: code cache explicitly off (server level) but be overridden in the location - Can't connect to 127.0.0.1:1984: Connection refused ==20183==
==20183== Process terminating with default action of signal 11 (SIGSEGV)
==20183== Access not within mapped region at address 0x0
==20183== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20183== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20183== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20183== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20183== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20183== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20183== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20183== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20183== by 0x8062D4E: main (nginx.c:382)
==20183== If you believe this happened as a result of a stack
==20183== overflow in your program's main thread (unlikely but
==20183== possible), you can try to increase the size of the
==20183== main thread stack using the --main-stacksize= flag.
==20183== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 21: multiple parallel timers - Can't connect to 127.0.0.1:1984: Connection refused ==20185== Invalid read of size 4
==20185== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20185== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20185== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20185== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20185== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20185== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20185== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20185== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20185== by 0x8062D4E: main (nginx.c:382)
==20185== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20185==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
025-codecache.t TEST 21: multiple parallel timers - Can't connect to 127.0.0.1:1984: Connection refused ==20185==
==20185== Process terminating with default action of signal 11 (SIGSEGV)
==20185== Access not within mapped region at address 0x0
==20185== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20185== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20185== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20185== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20185== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20185== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20185== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20185== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20185== by 0x8062D4E: main (nginx.c:382)
==20185== If you believe this happened as a result of a stack
==20185== overflow in your program's main thread (unlikely but
==20185== possible), you can try to increase the size of the
==20185== main thread stack using the --main-stacksize= flag.
==20185== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 23: cosocket connection pool timeout (before Lua VM destroys) - Can't connect to 127.0.0.1:1984: Connection refused ==20187== Invalid read of size 4
==20187== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20187== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20187== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20187== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20187== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20187== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20187== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20187== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20187== by 0x8062D4E: main (nginx.c:382)
==20187== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20187==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
025-codecache.t TEST 23: cosocket connection pool timeout (before Lua VM destroys) - Can't connect to 127.0.0.1:1984: Connection refused ==20187==
==20187== Process terminating with default action of signal 11 (SIGSEGV)
==20187== Access not within mapped region at address 0x0
==20187== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20187== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20187== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20187== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20187== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20187== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20187== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20187== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20187== by 0x8062D4E: main (nginx.c:382)
==20187== If you believe this happened as a result of a stack
==20187== overflow in your program's main thread (unlikely but
==20187== possible), you can try to increase the size of the
==20187== main thread stack using the --main-stacksize= flag.
==20187== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 19: lua_max_running_timers (just not enough) - Can't connect to 127.0.0.1:1984: Connection refused ==20189== Invalid read of size 4
==20189== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20189== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20189== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20189== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20189== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20189== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20189== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20189== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20189== by 0x8062D4E: main (nginx.c:382)
==20189== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20189==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
025-codecache.t TEST 19: lua_max_running_timers (just not enough) - Can't connect to 127.0.0.1:1984: Connection refused ==20189==
==20189== Process terminating with default action of signal 11 (SIGSEGV)
==20189== Access not within mapped region at address 0x0
==20189== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20189== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20189== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20189== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20189== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20189== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20189== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20189== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20189== by 0x8062D4E: main (nginx.c:382)
==20189== If you believe this happened as a result of a stack
==20189== overflow in your program's main thread (unlikely but
==20189== possible), you can try to increase the size of the
==20189== main thread stack using the --main-stacksize= flag.
==20189== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 26: make sure inline code keys are correct - Can't connect to 127.0.0.1:1984: Connection refused ==20191== Invalid read of size 4
==20191== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20191== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20191== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20191== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20191== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20191== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20191== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20191== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20191== by 0x8062D4E: main (nginx.c:382)
==20191== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20191==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
025-codecache.t TEST 26: make sure inline code keys are correct - Can't connect to 127.0.0.1:1984: Connection refused ==20191==
==20191== Process terminating with default action of signal 11 (SIGSEGV)
==20191== Access not within mapped region at address 0x0
==20191== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20191== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20191== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20191== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20191== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20191== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20191== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20191== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20191== by 0x8062D4E: main (nginx.c:382)
==20191== If you believe this happened as a result of a stack
==20191== overflow in your program's main thread (unlikely but
==20191== possible), you can try to increase the size of the
==20191== main thread stack using the --main-stacksize= flag.
==20191== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 @@
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 11: do not skip luarocks - Can't connect to 127.0.0.1:1984: Connection refused ==20193== Invalid read of size 4
==20193== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20193== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20193== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20193== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20193== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20193== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20193== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20193== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20193== by 0x8062D4E: main (nginx.c:382)
==20193== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20193==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
025-codecache.t TEST 11: do not skip luarocks - Can't connect to 127.0.0.1:1984: Connection refused ==20193==
==20193== Process terminating with default action of signal 11 (SIGSEGV)
==20193== Access not within mapped region at address 0x0
==20193== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20193== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20193== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20193== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20193== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20193== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20193== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20193== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20193== by 0x8062D4E: main (nginx.c:382)
==20193== If you believe this happened as a result of a stack
==20193== overflow in your program's main thread (unlikely but
==20193== possible), you can try to increase the size of the
==20193== main thread stack using the --main-stacksize= flag.
==20193== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
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 ==20195== Invalid read of size 4
==20195== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20195== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20195== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20195== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20195== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20195== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20195== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20195== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20195== by 0x8062D4E: main (nginx.c:382)
==20195== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20195==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==20195==
==20195== Process terminating with default action of signal 11 (SIGSEGV)
==20195== Access not within mapped region at address 0x0
==20195== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20195== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20195== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20195== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20195== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20195== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20195== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20195== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20195== by 0x8062D4E: main (nginx.c:382)
==20195== If you believe this happened as a result of a stack
==20195== overflow in your program's main thread (unlikely but
==20195== possible), you can try to increase the size of the
==20195== main thread stack using the --main-stacksize= flag.
==20195== 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 (aborted) '
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 4: code cache explicitly off (stream {} level) - Can't connect to 127.0.0.1:1984: Connection refused ==20197== Invalid read of size 4
==20197== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20197== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20197== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20197== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20197== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20197== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20197== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20197== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20197== by 0x8062D4E: main (nginx.c:382)
==20197== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20197==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
025-codecache.t TEST 4: code cache explicitly off (stream {} level) - Can't connect to 127.0.0.1:1984: Connection refused ==20197==
==20197== Process terminating with default action of signal 11 (SIGSEGV)
==20197== Access not within mapped region at address 0x0
==20197== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20197== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20197== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20197== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20197== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20197== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20197== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20197== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20197== by 0x8062D4E: main (nginx.c:382)
==20197== If you believe this happened as a result of a stack
==20197== overflow in your program's main thread (unlikely but
==20197== possible), you can try to increase the size of the
==20197== main thread stack using the --main-stacksize= flag.
==20197== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 9: no clear builtin lib "string" (inline) - Can't connect to 127.0.0.1:1984: Connection refused ==20199== Invalid read of size 4
==20199== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20199== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20199== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20199== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20199== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20199== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20199== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20199== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20199== by 0x8062D4E: main (nginx.c:382)
==20199== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20199==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
025-codecache.t TEST 9: no clear builtin lib "string" (inline) - Can't connect to 127.0.0.1:1984: Connection refused ==20199==
==20199== Process terminating with default action of signal 11 (SIGSEGV)
==20199== Access not within mapped region at address 0x0
==20199== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20199== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20199== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20199== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20199== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20199== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20199== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20199== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20199== by 0x8062D4E: main (nginx.c:382)
==20199== If you believe this happened as a result of a stack
==20199== overflow in your program's main thread (unlikely but
==20199== possible), you can try to increase the size of the
==20199== main thread stack using the --main-stacksize= flag.
==20199== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==20201== Invalid read of size 4
==20201== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20201== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20201== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20201== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20201== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20201== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20201== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20201== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20201== by 0x8062D4E: main (nginx.c:382)
==20201== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20201==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
025-codecache.t TEST 13: clear _G table - Can't connect to 127.0.0.1:1984: Connection refused ==20201==
==20201== Process terminating with default action of signal 11 (SIGSEGV)
==20201== Access not within mapped region at address 0x0
==20201== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20201== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20201== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20201== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20201== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20201== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20201== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20201== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20201== by 0x8062D4E: main (nginx.c:382)
==20201== If you believe this happened as a result of a stack
==20201== overflow in your program's main thread (unlikely but
==20201== possible), you can try to increase the size of the
==20201== main thread stack using the --main-stacksize= flag.
==20201== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 17: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - Can't connect to 127.0.0.1:1984: Connection refused ==20203== Invalid read of size 4
==20203== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20203== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20203== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20203== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20203== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20203== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20203== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20203== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20203== by 0x8062D4E: main (nginx.c:382)
==20203== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20203==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
025-codecache.t TEST 17: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - Can't connect to 127.0.0.1:1984: Connection refused ==20203==
==20203== Process terminating with default action of signal 11 (SIGSEGV)
==20203== Access not within mapped region at address 0x0
==20203== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20203== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20203== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20203== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20203== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20203== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20203== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20203== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20203== by 0x8062D4E: main (nginx.c:382)
==20203== If you believe this happened as a result of a stack
==20203== overflow in your program's main thread (unlikely but
==20203== possible), you can try to increase the size of the
==20203== main thread stack using the --main-stacksize= flag.
==20203== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 12: do not skip luarocks* - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20205== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
025-codecache.t TEST 12: do not skip luarocks* - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20205== by 0x8062D4E: main (nginx.c:382)
==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.

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* - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 8: no clear builtin lib "string" (file) - Can't connect to 127.0.0.1:1984: Connection refused ==20207== Invalid read of size 4
==20207== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20207== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20207== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20207== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20207== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20207== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20207== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20207== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20207== by 0x8062D4E: main (nginx.c:382)
==20207== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20207==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
025-codecache.t TEST 8: no clear builtin lib "string" (file) - Can't connect to 127.0.0.1:1984: Connection refused ==20207==
==20207== Process terminating with default action of signal 11 (SIGSEGV)
==20207== Access not within mapped region at address 0x0
==20207== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20207== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20207== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20207== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20207== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20207== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20207== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20207== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20207== by 0x8062D4E: main (nginx.c:382)
==20207== If you believe this happened as a result of a stack
==20207== overflow in your program's main thread (unlikely but
==20207== possible), you can try to increase the size of the
==20207== main thread stack using the --main-stacksize= flag.
==20207== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 15: lua_code_cache off + FFI-based Lua modules - Can't connect to 127.0.0.1:1984: Connection refused ==20209== Invalid read of size 4
==20209== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20209== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20209== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20209== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20209== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20209== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20209== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20209== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20209== by 0x8062D4E: main (nginx.c:382)
==20209== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20209==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
025-codecache.t TEST 15: lua_code_cache off + FFI-based Lua modules - Can't connect to 127.0.0.1:1984: Connection refused ==20209==
==20209== Process terminating with default action of signal 11 (SIGSEGV)
==20209== Access not within mapped region at address 0x0
==20209== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20209== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20209== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20209== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20209== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20209== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20209== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20209== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20209== by 0x8062D4E: main (nginx.c:382)
==20209== If you believe this happened as a result of a stack
==20209== overflow in your program's main thread (unlikely but
==20209== possible), you can try to increase the size of the
==20209== main thread stack using the --main-stacksize= flag.
==20209== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 25: make sure inline code keys are correct - Can't connect to 127.0.0.1:1984: Connection refused ==20211== Invalid read of size 4
==20211== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20211== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20211== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20211== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20211== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20211== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20211== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20211== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20211== by 0x8062D4E: main (nginx.c:382)
==20211== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20211==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
025-codecache.t TEST 25: make sure inline code keys are correct - Can't connect to 127.0.0.1:1984: Connection refused ==20211==
==20211== Process terminating with default action of signal 11 (SIGSEGV)
==20211== Access not within mapped region at address 0x0
==20211== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20211== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20211== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20211== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20211== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20211== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20211== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20211== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20211== by 0x8062D4E: main (nginx.c:382)
==20211== If you believe this happened as a result of a stack
==20211== overflow in your program's main thread (unlikely but
==20211== possible), you can try to increase the size of the
==20211== main thread stack using the --main-stacksize= flag.
==20211== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 @@
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 3: code cache explicitly off - Can't connect to 127.0.0.1:1984: Connection refused ==20213== Invalid read of size 4
==20213== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20213== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20213== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20213== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20213== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20213== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20213== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20213== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20213== by 0x8062D4E: main (nginx.c:382)
==20213== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20213==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
025-codecache.t TEST 3: code cache explicitly off - Can't connect to 127.0.0.1:1984: Connection refused ==20213==
==20213== Process terminating with default action of signal 11 (SIGSEGV)
==20213== Access not within mapped region at address 0x0
==20213== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20213== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20213== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20213== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20213== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20213== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20213== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20213== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20213== by 0x8062D4E: main (nginx.c:382)
==20213== If you believe this happened as a result of a stack
==20213== overflow in your program's main thread (unlikely but
==20213== possible), you can try to increase the size of the
==20213== main thread stack using the --main-stacksize= flag.
==20213== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: code cache on by default - 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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20215== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
025-codecache.t TEST 1: code cache on by default - 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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20215== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
032-iolist.t TEST 4: bad data type in table - Can't connect to 127.0.0.1:1984: Connection refused ==20259== Invalid read of size 4
==20259== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20259== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20259== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20259== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20259== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20259== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20259== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20259== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20259== by 0x8062D4E: main (nginx.c:382)
==20259== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20259==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
032-iolist.t TEST 4: bad data type in table - Can't connect to 127.0.0.1:1984: Connection refused ==20259==
==20259== Process terminating with default action of signal 11 (SIGSEGV)
==20259== Access not within mapped region at address 0x0
==20259== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20259== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20259== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20259== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20259== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20259== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20259== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20259== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20259== by 0x8062D4E: main (nginx.c:382)
==20259== If you believe this happened as a result of a stack
==20259== overflow in your program's main thread (unlikely but
==20259== possible), you can try to increase the size of the
==20259== main thread stack using the --main-stacksize= flag.
==20259== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - pattern "bad argument \#1 to 'say' (bad data type function found)" should match a line in error.log (req 1)
032-iolist.t TEST 3: non-array table - Can't connect to 127.0.0.1:1984: Connection refused ==20261== Invalid read of size 4
==20261== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20261== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20261== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20261== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20261== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20261== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20261== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20261== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20261== by 0x8062D4E: main (nginx.c:382)
==20261== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20261==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
032-iolist.t TEST 3: non-array table - Can't connect to 127.0.0.1:1984: Connection refused ==20261==
==20261== Process terminating with default action of signal 11 (SIGSEGV)
==20261== Access not within mapped region at address 0x0
==20261== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20261== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20261== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20261== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20261== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20261== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20261== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20261== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20261== by 0x8062D4E: main (nginx.c:382)
==20261== If you believe this happened as a result of a stack
==20261== overflow in your program's main thread (unlikely but
==20261== possible), you can try to increase the size of the
==20261== main thread stack using the --main-stacksize= flag.
==20261== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
032-iolist.t TEST 3: non-array table - status code ok got: ''
expected: '200'
032-iolist.t TEST 3: non-array table - pattern "bad argument \#1 to 'say' (non-array table found)" should match a line in error.log (req 1)
032-iolist.t TEST 2: nested table - Can't connect to 127.0.0.1:1984: Connection refused ==20263== Invalid read of size 4
==20263== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20263== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20263== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20263== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20263== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20263== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20263== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20263== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20263== by 0x8062D4E: main (nginx.c:382)
==20263== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20263==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
032-iolist.t TEST 2: nested table - Can't connect to 127.0.0.1:1984: Connection refused ==20263==
==20263== Process terminating with default action of signal 11 (SIGSEGV)
==20263== Access not within mapped region at address 0x0
==20263== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20263== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20263== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20263== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20263== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20263== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20263== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20263== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20263== by 0x8062D4E: main (nginx.c:382)
==20263== If you believe this happened as a result of a stack
==20263== overflow in your program's main thread (unlikely but
==20263== possible), you can try to increase the size of the
==20263== main thread stack using the --main-stacksize= flag.
==20263== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==20265== Invalid read of size 4
==20265== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20265== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20265== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20265== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20265== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20265== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20265== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20265== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20265== by 0x8062D4E: main (nginx.c:382)
==20265== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20265==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
032-iolist.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==20265==
==20265== Process terminating with default action of signal 11 (SIGSEGV)
==20265== Access not within mapped region at address 0x0
==20265== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20265== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20265== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20265== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20265== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20265== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20265== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20265== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20265== by 0x8062D4E: main (nginx.c:382)
==20265== If you believe this happened as a result of a stack
==20265== overflow in your program's main thread (unlikely but
==20265== possible), you can try to increase the size of the
==20265== main thread stack using the --main-stacksize= flag.
==20265== 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 (aborted) '
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)
033-ctx.t TEST 4: overriding ctx - Can't connect to 127.0.0.1:1984: Connection refused ==20270== Invalid read of size 4
==20270== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20270== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20270== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20270== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20270== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20270== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20270== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20270== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20270== by 0x8062D4E: main (nginx.c:382)
==20270== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20270==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
033-ctx.t TEST 4: overriding ctx - Can't connect to 127.0.0.1:1984: Connection refused ==20270==
==20270== Process terminating with default action of signal 11 (SIGSEGV)
==20270== Access not within mapped region at address 0x0
==20270== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20270== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20270== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20270== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20270== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20270== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20270== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20270== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20270== by 0x8062D4E: main (nginx.c:382)
==20270== If you believe this happened as a result of a stack
==20270== overflow in your program's main thread (unlikely but
==20270== possible), you can try to increase the size of the
==20270== main thread stack using the --main-stacksize= flag.
==20270== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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)
033-ctx.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==20272== Invalid read of size 4
==20272== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20272== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20272== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20272== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20272== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20272== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20272== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20272== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20272== by 0x8062D4E: main (nginx.c:382)
==20272== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20272==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
033-ctx.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==20272==
==20272== Process terminating with default action of signal 11 (SIGSEGV)
==20272== Access not within mapped region at address 0x0
==20272== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20272== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20272== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20272== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20272== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20272== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20272== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20272== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20272== by 0x8062D4E: main (nginx.c:382)
==20272== If you believe this happened as a result of a stack
==20272== overflow in your program's main thread (unlikely but
==20272== possible), you can try to increase the size of the
==20272== main thread stack using the --main-stacksize= flag.
==20272== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 3: different requests have different ngx.ctx - Can't connect to 127.0.0.1:1984: Connection refused ==20274== Invalid read of size 4
==20274== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20274== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20274== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20274== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20274== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20274== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20274== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20274== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20274== by 0x8062D4E: main (nginx.c:382)
==20274== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20274==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==20274==
==20274== Process terminating with default action of signal 11 (SIGSEGV)
==20274== Access not within mapped region at address 0x0
==20274== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20274== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20274== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20274== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20274== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20274== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20274== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20274== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20274== by 0x8062D4E: main (nginx.c:382)
==20274== If you believe this happened as a result of a stack
==20274== overflow in your program's main thread (unlikely but
==20274== possible), you can try to increase the size of the
==20274== main thread stack using the --main-stacksize= flag.
==20274== 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 (aborted) '
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)
034-match.t TEST 40: just hit match limit - Can't connect to 127.0.0.1:1984: Connection refused ==20279== Invalid read of size 4
==20279== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20279== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20279== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20279== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20279== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20279== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20279== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20279== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20279== by 0x8062D4E: main (nginx.c:382)
==20279== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20279==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
034-match.t TEST 40: just hit match limit - Can't connect to 127.0.0.1:1984: Connection refused ==20279==
==20279== Process terminating with default action of signal 11 (SIGSEGV)
==20279== Access not within mapped region at address 0x0
==20279== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20279== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20279== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20279== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20279== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20279== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20279== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20279== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20279== by 0x8062D4E: main (nginx.c:382)
==20279== If you believe this happened as a result of a stack
==20279== overflow in your program's main thread (unlikely but
==20279== possible), you can try to increase the size of the
==20279== main thread stack using the --main-stacksize= flag.
==20279== The main thread stack size used in this run was 8388608.
==20279== 1,024 bytes in 1 blocks are definitely lost in loss record 2,754 of 2,853
==20279== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20279== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20279== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20279== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20279== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20279== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20279== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20279== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20279== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20279== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20279== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20279== by 0x40BB675: trace_state (lj_trace.c:690)
==20279== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20279== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20279== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20279== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20279== by 0x407FA29: lua_resume (lj_api.c:1296)
==20279== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20279== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20279== by 0x8152E9D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==20279== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20279== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20279== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20279== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20279== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20279== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20279== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20279== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20279== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20279== by 0x8062D4E: main (nginx.c:382)
==20279==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_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_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 16: bad option - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20281== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
034-match.t TEST 16: bad option - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20281== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 27: long brackets containing [...] - Can't connect to 127.0.0.1:1984: Connection refused ==20283== Invalid read of size 4
==20283== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20283== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20283== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20283== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20283== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20283== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20283== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20283== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20283== by 0x8062D4E: main (nginx.c:382)
==20283== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20283==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
034-match.t TEST 27: long brackets containing [...] - Can't connect to 127.0.0.1:1984: Connection refused ==20283==
==20283== Process terminating with default action of signal 11 (SIGSEGV)
==20283== Access not within mapped region at address 0x0
==20283== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20283== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20283== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20283== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20283== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20283== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20283== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20283== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20283== by 0x8062D4E: main (nginx.c:382)
==20283== If you believe this happened as a result of a stack
==20283== overflow in your program's main thread (unlikely but
==20283== possible), you can try to increase the size of the
==20283== main thread stack using the --main-stacksize= flag.
==20283== The main thread stack size used in this run was 8388608.
==20283== 1,024 bytes in 1 blocks are definitely lost in loss record 2,757 of 2,859
==20283== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20283== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20283== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20283== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20283== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20283== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20283== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20283== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20283== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20283== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20283== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20283== by 0x40BB675: trace_state (lj_trace.c:690)
==20283== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20283== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20283== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20283== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20283== by 0x407FA29: lua_resume (lj_api.c:1296)
==20283== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20283== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20283== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20283== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20283== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20283== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20283== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20283== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20283== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20283== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20283== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20283== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20283== by 0x8062D4E: main (nginx.c:382)
==20283==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 [...] - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==20285== Invalid read of size 4
==20285== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20285== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20285== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20285== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20285== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20285== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20285== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20285== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20285== by 0x8062D4E: main (nginx.c:382)
==20285== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20285==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
034-match.t TEST 34: duplicate named subpatterns - Can't connect to 127.0.0.1:1984: Connection refused ==20285==
==20285== Process terminating with default action of signal 11 (SIGSEGV)
==20285== Access not within mapped region at address 0x0
==20285== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20285== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20285== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20285== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20285== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20285== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20285== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20285== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20285== by 0x8062D4E: main (nginx.c:382)
==20285== If you believe this happened as a result of a stack
==20285== overflow in your program's main thread (unlikely but
==20285== possible), you can try to increase the size of the
==20285== main thread stack using the --main-stacksize= flag.
==20285== The main thread stack size used in this run was 8388608.
==20285== 1,024 bytes in 1 blocks are definitely lost in loss record 2,650 of 2,729
==20285== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20285== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20285== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20285== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20285== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20285== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20285== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20285== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20285== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20285== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20285== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20285== by 0x40BB675: trace_state (lj_trace.c:690)
==20285== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20285== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20285== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20285== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20285== by 0x407FA29: lua_resume (lj_api.c:1296)
==20285== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20285== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20285== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20285== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20285== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20285== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20285== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20285== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20285== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20285== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20285== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20285== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20285== by 0x8062D4E: main (nginx.c:382)
==20285==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 28: bug report (github issue #72) - Can't connect to 127.0.0.1:1984: Connection refused ==20287== Invalid read of size 4
==20287== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20287== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20287== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20287== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20287== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20287== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20287== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20287== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20287== by 0x8062D4E: main (nginx.c:382)
==20287== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20287==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
034-match.t TEST 28: bug report (github issue #72) - Can't connect to 127.0.0.1:1984: Connection refused ==20287==
==20287== Process terminating with default action of signal 11 (SIGSEGV)
==20287== Access not within mapped region at address 0x0
==20287== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20287== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20287== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20287== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20287== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20287== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20287== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20287== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20287== by 0x8062D4E: main (nginx.c:382)
==20287== If you believe this happened as a result of a stack
==20287== overflow in your program's main thread (unlikely but
==20287== possible), you can try to increase the size of the
==20287== main thread stack using the --main-stacksize= flag.
==20287== The main thread stack size used in this run was 8388608.
==20287== 1,024 bytes in 1 blocks are definitely lost in loss record 2,740 of 2,845
==20287== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20287== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20287== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20287== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20287== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20287== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20287== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20287== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20287== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20287== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20287== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20287== by 0x40BB675: trace_state (lj_trace.c:690)
==20287== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20287== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20287== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20287== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20287== by 0x407FA29: lua_resume (lj_api.c:1296)
==20287== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20287== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20287== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20287== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20287== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20287== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20287== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20287== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20287== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20287== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20287== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20287== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20287== by 0x8062D4E: main (nginx.c:382)
==20287==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 12: single-line mode (^ as normal) - Can't connect to 127.0.0.1:1984: Connection refused ==20289== Invalid read of size 4
==20289== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20289== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20289== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20289== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20289== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20289== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20289== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20289== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20289== by 0x8062D4E: main (nginx.c:382)
==20289== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20289==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
034-match.t TEST 12: single-line mode (^ as normal) - Can't connect to 127.0.0.1:1984: Connection refused ==20289==
==20289== Process terminating with default action of signal 11 (SIGSEGV)
==20289== Access not within mapped region at address 0x0
==20289== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20289== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20289== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20289== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20289== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20289== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20289== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20289== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20289== by 0x8062D4E: main (nginx.c:382)
==20289== If you believe this happened as a result of a stack
==20289== overflow in your program's main thread (unlikely but
==20289== possible), you can try to increase the size of the
==20289== main thread stack using the --main-stacksize= flag.
==20289== The main thread stack size used in this run was 8388608.
==20289== 1,024 bytes in 1 blocks are definitely lost in loss record 2,747 of 2,850
==20289== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20289== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20289== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20289== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20289== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20289== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20289== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20289== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20289== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20289== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20289== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20289== by 0x40BB675: trace_state (lj_trace.c:690)
==20289== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20289== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20289== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20289== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20289== by 0x407FA29: lua_resume (lj_api.c:1296)
==20289== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20289== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20289== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20289== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20289== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20289== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20289== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20289== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20289== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20289== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20289== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20289== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20289== by 0x8062D4E: main (nginx.c:382)
==20289==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 3: single capture - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20291== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
034-match.t TEST 3: single capture - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20291== by 0x8062D4E: main (nginx.c:382)
==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.
==20291== 1,024 bytes in 1 blocks are definitely lost in loss record 2,762 of 2,865
==20291== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20291== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20291== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20291== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20291== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20291== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20291== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20291== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20291== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20291== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20291== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20291== by 0x40BB675: trace_state (lj_trace.c:690)
==20291== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20291== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20291== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20291== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20291== by 0x407FA29: lua_resume (lj_api.c:1296)
==20291== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20291== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20291== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20291== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20291== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20291== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20291== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20291== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20291== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20291== by 0x8062D4E: main (nginx.c:382)
==20291==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 26: bad pattern - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20293== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
034-match.t TEST 26: bad pattern - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20293== by 0x8062D4E: main (nginx.c:382)
==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.
==20293== 1,024 bytes in 1 blocks are definitely lost in loss record 2,740 of 2,843
==20293== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20293== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20293== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20293== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20293== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20293== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20293== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20293== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20293== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20293== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20293== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20293== by 0x40BB675: trace_state (lj_trace.c:690)
==20293== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20293== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20293== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20293== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20293== by 0x407FA29: lua_resume (lj_api.c:1296)
==20293== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20293== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20293== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20293== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20293== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20293== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20293== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20293== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20293== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20293== by 0x8062D4E: main (nginx.c:382)
==20293==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 31: duplicate named subpatterns w/ extraction - Can't connect to 127.0.0.1:1984: Connection refused ==20295== Invalid read of size 4
==20295== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20295== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20295== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20295== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20295== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20295== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20295== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20295== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20295== by 0x8062D4E: main (nginx.c:382)
==20295== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20295==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
034-match.t TEST 31: duplicate named subpatterns w/ extraction - Can't connect to 127.0.0.1:1984: Connection refused ==20295==
==20295== Process terminating with default action of signal 11 (SIGSEGV)
==20295== Access not within mapped region at address 0x0
==20295== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20295== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20295== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20295== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20295== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20295== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20295== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20295== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20295== by 0x8062D4E: main (nginx.c:382)
==20295== If you believe this happened as a result of a stack
==20295== overflow in your program's main thread (unlikely but
==20295== possible), you can try to increase the size of the
==20295== main thread stack using the --main-stacksize= flag.
==20295== The main thread stack size used in this run was 8388608.
==20295== 1,024 bytes in 1 blocks are definitely lost in loss record 2,892 of 3,016
==20295== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20295== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20295== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20295== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20295== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20295== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20295== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20295== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20295== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20295== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20295== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20295== by 0x40BB675: trace_state (lj_trace.c:690)
==20295== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20295== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20295== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20295== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20295== by 0x407FA29: lua_resume (lj_api.c:1296)
==20295== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20295== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20295== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20295== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20295== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20295== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20295== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20295== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20295== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20295== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20295== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20295== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20295== by 0x8062D4E: main (nginx.c:382)
==20295==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 11: multi-line mode (. does not match \n) - Can't connect to 127.0.0.1:1984: Connection refused ==20297== Invalid read of size 4
==20297== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20297== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20297== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20297== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20297== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20297== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20297== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20297== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20297== by 0x8062D4E: main (nginx.c:382)
==20297== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20297==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
034-match.t TEST 11: multi-line mode (. does not match \n) - Can't connect to 127.0.0.1:1984: Connection refused ==20297==
==20297== Process terminating with default action of signal 11 (SIGSEGV)
==20297== Access not within mapped region at address 0x0
==20297== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20297== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20297== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20297== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20297== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20297== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20297== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20297== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20297== by 0x8062D4E: main (nginx.c:382)
==20297== If you believe this happened as a result of a stack
==20297== overflow in your program's main thread (unlikely but
==20297== possible), you can try to increase the size of the
==20297== main thread stack using the --main-stacksize= flag.
==20297== The main thread stack size used in this run was 8388608.
==20297== 1,024 bytes in 1 blocks are definitely lost in loss record 2,764 of 2,867
==20297== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20297== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20297== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20297== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20297== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20297== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20297== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20297== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20297== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20297== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20297== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20297== by 0x40BB675: trace_state (lj_trace.c:690)
==20297== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20297== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20297== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20297== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20297== by 0x407FA29: lua_resume (lj_api.c:1296)
==20297== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20297== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20297== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20297== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20297== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20297== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20297== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20297== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20297== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20297== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20297== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20297== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20297== by 0x8062D4E: main (nginx.c:382)
==20297==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 35: Javascript compatible mode - Can't connect to 127.0.0.1:1984: Connection refused ==20299== Invalid read of size 4
==20299== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20299== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20299== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20299== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20299== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20299== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20299== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20299== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20299== by 0x8062D4E: main (nginx.c:382)
==20299== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20299==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
034-match.t TEST 35: Javascript compatible mode - Can't connect to 127.0.0.1:1984: Connection refused ==20299==
==20299== Process terminating with default action of signal 11 (SIGSEGV)
==20299== Access not within mapped region at address 0x0
==20299== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20299== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20299== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20299== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20299== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20299== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20299== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20299== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20299== by 0x8062D4E: main (nginx.c:382)
==20299== If you believe this happened as a result of a stack
==20299== overflow in your program's main thread (unlikely but
==20299== possible), you can try to increase the size of the
==20299== main thread stack using the --main-stacksize= flag.
==20299== The main thread stack size used in this run was 8388608.
==20299== 1,024 bytes in 1 blocks are definitely lost in loss record 2,757 of 2,860
==20299== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20299== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20299== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20299== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20299== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20299== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20299== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20299== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20299== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20299== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20299== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20299== by 0x40BB675: trace_state (lj_trace.c:690)
==20299== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20299== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20299== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20299== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20299== by 0x407FA29: lua_resume (lj_api.c:1296)
==20299== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20299== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20299== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20299== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20299== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20299== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20299== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20299== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20299== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20299== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20299== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20299== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20299== by 0x8062D4E: main (nginx.c:382)
==20299==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 6: not matched - Can't connect to 127.0.0.1:1984: Connection refused ==20301== Invalid read of size 4
==20301== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20301== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20301== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20301== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20301== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20301== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20301== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20301== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20301== by 0x8062D4E: main (nginx.c:382)
==20301== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20301==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
034-match.t TEST 6: not matched - Can't connect to 127.0.0.1:1984: Connection refused ==20301==
==20301== Process terminating with default action of signal 11 (SIGSEGV)
==20301== Access not within mapped region at address 0x0
==20301== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20301== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20301== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20301== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20301== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20301== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20301== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20301== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20301== by 0x8062D4E: main (nginx.c:382)
==20301== If you believe this happened as a result of a stack
==20301== overflow in your program's main thread (unlikely but
==20301== possible), you can try to increase the size of the
==20301== main thread stack using the --main-stacksize= flag.
==20301== The main thread stack size used in this run was 8388608.
==20301== 1,024 bytes in 1 blocks are definitely lost in loss record 2,647 of 2,725
==20301== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20301== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20301== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20301== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20301== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20301== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20301== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20301== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20301== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20301== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20301== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20301== by 0x40BB675: trace_state (lj_trace.c:690)
==20301== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20301== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20301== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20301== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20301== by 0x407FA29: lua_resume (lj_api.c:1296)
==20301== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20301== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20301== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20301== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20301== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20301== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20301== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20301== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20301== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20301== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20301== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20301== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20301== by 0x8062D4E: main (nginx.c:382)
==20301==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 20: anchored match (succeeded) - Can't connect to 127.0.0.1:1984: Connection refused ==20303== Invalid read of size 4
==20303== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20303== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20303== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20303== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20303== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20303== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20303== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20303== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20303== by 0x8062D4E: main (nginx.c:382)
==20303== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20303==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
034-match.t TEST 20: anchored match (succeeded) - Can't connect to 127.0.0.1:1984: Connection refused ==20303==
==20303== Process terminating with default action of signal 11 (SIGSEGV)
==20303== Access not within mapped region at address 0x0
==20303== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20303== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20303== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20303== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20303== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20303== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20303== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20303== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20303== by 0x8062D4E: main (nginx.c:382)
==20303== If you believe this happened as a result of a stack
==20303== overflow in your program's main thread (unlikely but
==20303== possible), you can try to increase the size of the
==20303== main thread stack using the --main-stacksize= flag.
==20303== The main thread stack size used in this run was 8388608.
==20303== 1,024 bytes in 1 blocks are definitely lost in loss record 2,750 of 2,853
==20303== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20303== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20303== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20303== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20303== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20303== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20303== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20303== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20303== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20303== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20303== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20303== by 0x40BB675: trace_state (lj_trace.c:690)
==20303== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20303== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20303== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20303== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20303== by 0x407FA29: lua_resume (lj_api.c:1296)
==20303== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20303== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20303== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20303== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20303== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20303== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20303== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20303== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20303== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20303== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20303== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20303== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20303== by 0x8062D4E: main (nginx.c:382)
==20303==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 37: bad UTF-8 - Can't connect to 127.0.0.1:1984: Connection refused ==20305== Invalid read of size 4
==20305== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20305== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20305== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20305== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20305== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20305== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20305== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20305== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20305== by 0x8062D4E: main (nginx.c:382)
==20305== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20305==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
034-match.t TEST 37: bad UTF-8 - Can't connect to 127.0.0.1:1984: Connection refused ==20305==
==20305== Process terminating with default action of signal 11 (SIGSEGV)
==20305== Access not within mapped region at address 0x0
==20305== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20305== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20305== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20305== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20305== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20305== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20305== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20305== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20305== by 0x8062D4E: main (nginx.c:382)
==20305== If you believe this happened as a result of a stack
==20305== overflow in your program's main thread (unlikely but
==20305== possible), you can try to increase the size of the
==20305== main thread stack using the --main-stacksize= flag.
==20305== The main thread stack size used in this run was 8388608.
==20305== 1,024 bytes in 1 blocks are definitely lost in loss record 2,757 of 2,860
==20305== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20305== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20305== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20305== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20305== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20305== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20305== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20305== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20305== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20305== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20305== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20305== by 0x40BB675: trace_state (lj_trace.c:690)
==20305== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20305== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20305== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20305== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20305== by 0x407FA29: lua_resume (lj_api.c:1296)
==20305== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20305== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20305== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20305== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20305== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20305== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20305== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20305== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20305== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20305== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20305== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20305== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20305== by 0x8062D4E: main (nginx.c:382)
==20305==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 29: non-empty subject, empty pattern - Can't connect to 127.0.0.1:1984: Connection refused ==20307== Invalid read of size 4
==20307== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20307== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20307== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20307== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20307== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20307== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20307== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20307== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20307== by 0x8062D4E: main (nginx.c:382)
==20307== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20307==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
034-match.t TEST 29: non-empty subject, empty pattern - Can't connect to 127.0.0.1:1984: Connection refused ==20307==
==20307== Process terminating with default action of signal 11 (SIGSEGV)
==20307== Access not within mapped region at address 0x0
==20307== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20307== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20307== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20307== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20307== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20307== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20307== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20307== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20307== by 0x8062D4E: main (nginx.c:382)
==20307== If you believe this happened as a result of a stack
==20307== overflow in your program's main thread (unlikely but
==20307== possible), you can try to increase the size of the
==20307== main thread stack using the --main-stacksize= flag.
==20307== The main thread stack size used in this run was 8388608.
==20307== 1,024 bytes in 1 blocks are definitely lost in loss record 2,737 of 2,838
==20307== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20307== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20307== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20307== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20307== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20307== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20307== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20307== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20307== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20307== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20307== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20307== by 0x40BB675: trace_state (lj_trace.c:690)
==20307== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20307== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20307== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20307== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20307== by 0x407FA29: lua_resume (lj_api.c:1296)
==20307== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20307== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20307== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20307== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20307== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20307== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20307== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20307== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20307== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20307== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20307== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20307== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20307== by 0x8062D4E: main (nginx.c:382)
==20307==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 39: UTF-8 mode with UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused ==20309== Invalid read of size 4
==20309== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20309== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20309== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20309== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20309== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20309== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20309== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20309== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20309== by 0x8062D4E: main (nginx.c:382)
==20309== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20309==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
034-match.t TEST 39: UTF-8 mode with UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused ==20309==
==20309== Process terminating with default action of signal 11 (SIGSEGV)
==20309== Access not within mapped region at address 0x0
==20309== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20309== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20309== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20309== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20309== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20309== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20309== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20309== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20309== by 0x8062D4E: main (nginx.c:382)
==20309== If you believe this happened as a result of a stack
==20309== overflow in your program's main thread (unlikely but
==20309== possible), you can try to increase the size of the
==20309== main thread stack using the --main-stacksize= flag.
==20309== The main thread stack size used in this run was 8388608.
==20309== 1,024 bytes in 1 blocks are definitely lost in loss record 2,749 of 2,852
==20309== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20309== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20309== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20309== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20309== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20309== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20309== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20309== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20309== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20309== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20309== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20309== by 0x40BB675: trace_state (lj_trace.c:690)
==20309== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20309== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20309== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20309== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20309== by 0x407FA29: lua_resume (lj_api.c:1296)
==20309== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20309== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20309== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20309== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20309== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20309== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20309== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20309== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20309== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20309== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20309== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20309== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20309== by 0x8062D4E: main (nginx.c:382)
==20309==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 14: extended mode (ignore whitespaces) - Can't connect to 127.0.0.1:1984: Connection refused ==20311== Invalid read of size 4
==20311== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20311== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20311== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20311== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20311== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20311== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20311== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20311== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20311== by 0x8062D4E: main (nginx.c:382)
==20311== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20311==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
034-match.t TEST 14: extended mode (ignore whitespaces) - Can't connect to 127.0.0.1:1984: Connection refused ==20311==
==20311== Process terminating with default action of signal 11 (SIGSEGV)
==20311== Access not within mapped region at address 0x0
==20311== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20311== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20311== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20311== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20311== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20311== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20311== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20311== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20311== by 0x8062D4E: main (nginx.c:382)
==20311== If you believe this happened as a result of a stack
==20311== overflow in your program's main thread (unlikely but
==20311== possible), you can try to increase the size of the
==20311== main thread stack using the --main-stacksize= flag.
==20311== The main thread stack size used in this run was 8388608.
==20311== 1,024 bytes in 1 blocks are definitely lost in loss record 2,760 of 2,863
==20311== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20311== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20311== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20311== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20311== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20311== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20311== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20311== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20311== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20311== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20311== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20311== by 0x40BB675: trace_state (lj_trace.c:690)
==20311== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20311== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20311== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20311== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20311== by 0x407FA29: lua_resume (lj_api.c:1296)
==20311== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20311== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20311== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20311== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20311== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20311== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20311== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20311== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20311== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20311== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20311== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20311== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20311== by 0x8062D4E: main (nginx.c:382)
==20311==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 18: optional trailing captures - Can't connect to 127.0.0.1:1984: Connection refused ==20313== Invalid read of size 4
==20313== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20313== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20313== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20313== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20313== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20313== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20313== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20313== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20313== by 0x8062D4E: main (nginx.c:382)
==20313== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20313==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
034-match.t TEST 18: optional trailing captures - Can't connect to 127.0.0.1:1984: Connection refused ==20313==
==20313== Process terminating with default action of signal 11 (SIGSEGV)
==20313== Access not within mapped region at address 0x0
==20313== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20313== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20313== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20313== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20313== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20313== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20313== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20313== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20313== by 0x8062D4E: main (nginx.c:382)
==20313== If you believe this happened as a result of a stack
==20313== overflow in your program's main thread (unlikely but
==20313== possible), you can try to increase the size of the
==20313== main thread stack using the --main-stacksize= flag.
==20313== The main thread stack size used in this run was 8388608.
==20313== 1,024 bytes in 1 blocks are definitely lost in loss record 2,762 of 2,865
==20313== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20313== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20313== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20313== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20313== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20313== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20313== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20313== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20313== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20313== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20313== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20313== by 0x40BB675: trace_state (lj_trace.c:690)
==20313== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20313== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20313== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20313== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20313== by 0x407FA29: lua_resume (lj_api.c:1296)
==20313== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20313== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20313== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20313== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20313== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20313== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20313== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20313== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20313== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20313== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20313== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20313== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20313== by 0x8062D4E: main (nginx.c:382)
==20313==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 24: escaping sequences - Can't connect to 127.0.0.1:1984: Connection refused ==20315== Invalid read of size 4
==20315== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20315== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20315== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20315== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20315== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20315== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20315== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20315== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20315== by 0x8062D4E: main (nginx.c:382)
==20315== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20315==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
034-match.t TEST 24: escaping sequences - Can't connect to 127.0.0.1:1984: Connection refused ==20315==
==20315== Process terminating with default action of signal 11 (SIGSEGV)
==20315== Access not within mapped region at address 0x0
==20315== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20315== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20315== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20315== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20315== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20315== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20315== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20315== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20315== by 0x8062D4E: main (nginx.c:382)
==20315== If you believe this happened as a result of a stack
==20315== overflow in your program's main thread (unlikely but
==20315== possible), you can try to increase the size of the
==20315== main thread stack using the --main-stacksize= flag.
==20315== The main thread stack size used in this run was 8388608.
==20315== 1,024 bytes in 1 blocks are definitely lost in loss record 2,763 of 2,866
==20315== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20315== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20315== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20315== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20315== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20315== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20315== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20315== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20315== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20315== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20315== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20315== by 0x40BB675: trace_state (lj_trace.c:690)
==20315== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20315== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20315== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20315== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20315== by 0x407FA29: lua_resume (lj_api.c:1296)
==20315== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20315== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20315== by 0x8152E9D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==20315== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20315== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20315== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20315== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20315== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20315== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20315== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20315== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20315== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20315== by 0x8062D4E: main (nginx.c:382)
==20315==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_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_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 7: case sensitive by default - Can't connect to 127.0.0.1:1984: Connection refused ==20317== Invalid read of size 4
==20317== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20317== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20317== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20317== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20317== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20317== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20317== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20317== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20317== by 0x8062D4E: main (nginx.c:382)
==20317== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20317==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
034-match.t TEST 7: case sensitive by default - Can't connect to 127.0.0.1:1984: Connection refused ==20317==
==20317== Process terminating with default action of signal 11 (SIGSEGV)
==20317== Access not within mapped region at address 0x0
==20317== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20317== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20317== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20317== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20317== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20317== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20317== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20317== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20317== by 0x8062D4E: main (nginx.c:382)
==20317== If you believe this happened as a result of a stack
==20317== overflow in your program's main thread (unlikely but
==20317== possible), you can try to increase the size of the
==20317== main thread stack using the --main-stacksize= flag.
==20317== The main thread stack size used in this run was 8388608.
==20317== 1,024 bytes in 1 blocks are definitely lost in loss record 2,759 of 2,862
==20317== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20317== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20317== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20317== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20317== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20317== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20317== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20317== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20317== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20317== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20317== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20317== by 0x40BB675: trace_state (lj_trace.c:690)
==20317== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20317== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20317== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20317== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20317== by 0x407FA29: lua_resume (lj_api.c:1296)
==20317== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20317== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20317== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20317== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20317== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20317== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20317== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20317== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20317== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20317== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20317== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20317== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20317== by 0x8062D4E: main (nginx.c:382)
==20317==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 21: match with ctx but no pos - Can't connect to 127.0.0.1:1984: Connection refused ==20319== Invalid read of size 4
==20319== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20319== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20319== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20319== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20319== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20319== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20319== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20319== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20319== by 0x8062D4E: main (nginx.c:382)
==20319== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20319==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
034-match.t TEST 21: match with ctx but no pos - Can't connect to 127.0.0.1:1984: Connection refused ==20319==
==20319== Process terminating with default action of signal 11 (SIGSEGV)
==20319== Access not within mapped region at address 0x0
==20319== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20319== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20319== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20319== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20319== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20319== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20319== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20319== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20319== by 0x8062D4E: main (nginx.c:382)
==20319== If you believe this happened as a result of a stack
==20319== overflow in your program's main thread (unlikely but
==20319== possible), you can try to increase the size of the
==20319== main thread stack using the --main-stacksize= flag.
==20319== The main thread stack size used in this run was 8388608.
==20319== 1,024 bytes in 1 blocks are definitely lost in loss record 2,758 of 2,861
==20319== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20319== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20319== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20319== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20319== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20319== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20319== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20319== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20319== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20319== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20319== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20319== by 0x40BB675: trace_state (lj_trace.c:690)
==20319== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20319== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20319== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20319== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20319== by 0x407FA29: lua_resume (lj_api.c:1296)
==20319== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20319== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20319== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20319== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20319== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20319== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20319== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20319== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20319== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20319== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20319== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20319== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20319== by 0x8062D4E: main (nginx.c:382)
==20319==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 4: multiple captures - 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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20321== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
034-match.t TEST 4: multiple captures - 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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20321== by 0x8062D4E: main (nginx.c:382)
==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.
==20321== 1,024 bytes in 1 blocks are definitely lost in loss record 2,758 of 2,858
==20321== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20321== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20321== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20321== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20321== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20321== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20321== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20321== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20321== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20321== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20321== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20321== by 0x40BB675: trace_state (lj_trace.c:690)
==20321== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20321== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20321== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20321== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20321== by 0x407FA29: lua_resume (lj_api.c:1296)
==20321== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20321== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20321== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20321== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20321== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20321== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20321== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20321== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20321== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20321== by 0x8062D4E: main (nginx.c:382)
==20321==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 9: UTF-8 mode - Can't connect to 127.0.0.1:1984: Connection refused ==20323== Invalid read of size 4
==20323== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20323== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20323== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20323== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20323== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20323== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20323== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20323== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20323== by 0x8062D4E: main (nginx.c:382)
==20323== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20323==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
034-match.t TEST 9: UTF-8 mode - Can't connect to 127.0.0.1:1984: Connection refused ==20323==
==20323== Process terminating with default action of signal 11 (SIGSEGV)
==20323== Access not within mapped region at address 0x0
==20323== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20323== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20323== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20323== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20323== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20323== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20323== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20323== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20323== by 0x8062D4E: main (nginx.c:382)
==20323== If you believe this happened as a result of a stack
==20323== overflow in your program's main thread (unlikely but
==20323== possible), you can try to increase the size of the
==20323== main thread stack using the --main-stacksize= flag.
==20323== The main thread stack size used in this run was 8388608.
==20323== 1,024 bytes in 1 blocks are definitely lost in loss record 2,764 of 2,867
==20323== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20323== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20323== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20323== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20323== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20323== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20323== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20323== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20323== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20323== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20323== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20323== by 0x40BB675: trace_state (lj_trace.c:690)
==20323== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20323== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20323== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20323== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20323== by 0x407FA29: lua_resume (lj_api.c:1296)
==20323== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20323== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20323== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20323== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20323== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20323== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20323== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20323== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20323== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20323== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20323== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20323== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20323== by 0x8062D4E: main (nginx.c:382)
==20323==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 5: multiple captures (with o) - Can't connect to 127.0.0.1:1984: Connection refused ==20325== Invalid read of size 4
==20325== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20325== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20325== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20325== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20325== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20325== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20325== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20325== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20325== by 0x8062D4E: main (nginx.c:382)
==20325== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20325==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
034-match.t TEST 5: multiple captures (with o) - Can't connect to 127.0.0.1:1984: Connection refused ==20325==
==20325== Process terminating with default action of signal 11 (SIGSEGV)
==20325== Access not within mapped region at address 0x0
==20325== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20325== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20325== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20325== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20325== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20325== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20325== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20325== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20325== by 0x8062D4E: main (nginx.c:382)
==20325== If you believe this happened as a result of a stack
==20325== overflow in your program's main thread (unlikely but
==20325== possible), you can try to increase the size of the
==20325== main thread stack using the --main-stacksize= flag.
==20325== The main thread stack size used in this run was 8388608.
==20325== 1,024 bytes in 1 blocks are definitely lost in loss record 2,758 of 2,858
==20325== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20325== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20325== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20325== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20325== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20325== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20325== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20325== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20325== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20325== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20325== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20325== by 0x40BB675: trace_state (lj_trace.c:690)
==20325== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20325== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20325== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20325== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20325== by 0x407FA29: lua_resume (lj_api.c:1296)
==20325== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20325== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20325== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20325== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20325== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20325== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20325== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20325== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20325== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20325== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20325== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20325== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20325== by 0x8062D4E: main (nginx.c:382)
==20325==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 2: escaping sequences - Can't connect to 127.0.0.1:1984: Connection refused ==20327== Invalid read of size 4
==20327== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20327== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20327== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20327== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20327== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20327== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20327== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20327== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20327== by 0x8062D4E: main (nginx.c:382)
==20327== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20327==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
034-match.t TEST 2: escaping sequences - Can't connect to 127.0.0.1:1984: Connection refused ==20327==
==20327== Process terminating with default action of signal 11 (SIGSEGV)
==20327== Access not within mapped region at address 0x0
==20327== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20327== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20327== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20327== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20327== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20327== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20327== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20327== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20327== by 0x8062D4E: main (nginx.c:382)
==20327== If you believe this happened as a result of a stack
==20327== overflow in your program's main thread (unlikely but
==20327== possible), you can try to increase the size of the
==20327== main thread stack using the --main-stacksize= flag.
==20327== The main thread stack size used in this run was 8388608.
==20327== 1,024 bytes in 1 blocks are definitely lost in loss record 2,762 of 2,865
==20327== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20327== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20327== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20327== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20327== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20327== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20327== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20327== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20327== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20327== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20327== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20327== by 0x40BB675: trace_state (lj_trace.c:690)
==20327== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20327== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20327== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20327== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20327== by 0x407FA29: lua_resume (lj_api.c:1296)
==20327== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20327== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20327== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20327== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20327== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20327== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20327== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20327== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20327== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20327== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20327== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20327== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20327== by 0x8062D4E: main (nginx.c:382)
==20327==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 38: UTF-8 mode without UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused ==20329== Invalid read of size 4
==20329== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20329== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20329== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20329== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20329== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20329== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20329== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20329== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20329== by 0x8062D4E: main (nginx.c:382)
==20329== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20329==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
034-match.t TEST 38: UTF-8 mode without UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused ==20329==
==20329== Process terminating with default action of signal 11 (SIGSEGV)
==20329== Access not within mapped region at address 0x0
==20329== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20329== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20329== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20329== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20329== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20329== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20329== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20329== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20329== by 0x8062D4E: main (nginx.c:382)
==20329== If you believe this happened as a result of a stack
==20329== overflow in your program's main thread (unlikely but
==20329== possible), you can try to increase the size of the
==20329== main thread stack using the --main-stacksize= flag.
==20329== The main thread stack size used in this run was 8388608.
==20329== 1,024 bytes in 1 blocks are definitely lost in loss record 2,761 of 2,863
==20329== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20329== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20329== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20329== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20329== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20329== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20329== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20329== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20329== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20329== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20329== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20329== by 0x40BB675: trace_state (lj_trace.c:690)
==20329== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20329== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20329== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20329== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20329== by 0x407FA29: lua_resume (lj_api.c:1296)
==20329== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20329== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20329== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20329== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20329== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20329== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20329== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20329== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20329== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20329== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20329== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20329== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20329== by 0x8062D4E: main (nginx.c:382)
==20329==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 32: named captures are empty strings - Can't connect to 127.0.0.1:1984: Connection refused ==20331== Invalid read of size 4
==20331== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20331== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20331== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20331== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20331== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20331== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20331== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20331== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20331== by 0x8062D4E: main (nginx.c:382)
==20331== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20331==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
034-match.t TEST 32: named captures are empty strings - Can't connect to 127.0.0.1:1984: Connection refused ==20331==
==20331== Process terminating with default action of signal 11 (SIGSEGV)
==20331== Access not within mapped region at address 0x0
==20331== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20331== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20331== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20331== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20331== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20331== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20331== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20331== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20331== by 0x8062D4E: main (nginx.c:382)
==20331== If you believe this happened as a result of a stack
==20331== overflow in your program's main thread (unlikely but
==20331== possible), you can try to increase the size of the
==20331== main thread stack using the --main-stacksize= flag.
==20331== The main thread stack size used in this run was 8388608.
==20331== 1,024 bytes in 1 blocks are definitely lost in loss record 2,742 of 2,845
==20331== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20331== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20331== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20331== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20331== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20331== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20331== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20331== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20331== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20331== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20331== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20331== by 0x40BB675: trace_state (lj_trace.c:690)
==20331== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20331== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20331== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20331== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20331== by 0x407FA29: lua_resume (lj_api.c:1296)
==20331== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20331== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20331== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20331== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20331== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20331== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20331== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20331== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20331== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20331== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20331== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20331== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20331== by 0x8062D4E: main (nginx.c:382)
==20331==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 22: match with ctx and a pos - Can't connect to 127.0.0.1:1984: Connection refused ==20333== Invalid read of size 4
==20333== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20333== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20333== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20333== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20333== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20333== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20333== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20333== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20333== by 0x8062D4E: main (nginx.c:382)
==20333== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20333==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
034-match.t TEST 22: match with ctx and a pos - Can't connect to 127.0.0.1:1984: Connection refused ==20333==
==20333== Process terminating with default action of signal 11 (SIGSEGV)
==20333== Access not within mapped region at address 0x0
==20333== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20333== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20333== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20333== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20333== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20333== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20333== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20333== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20333== by 0x8062D4E: main (nginx.c:382)
==20333== If you believe this happened as a result of a stack
==20333== overflow in your program's main thread (unlikely but
==20333== possible), you can try to increase the size of the
==20333== main thread stack using the --main-stacksize= flag.
==20333== The main thread stack size used in this run was 8388608.
==20333== 1,024 bytes in 1 blocks are definitely lost in loss record 2,753 of 2,856
==20333== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20333== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20333== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20333== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20333== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20333== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20333== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20333== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20333== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20333== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20333== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20333== by 0x40BB675: trace_state (lj_trace.c:690)
==20333== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20333== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20333== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20333== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20333== by 0x407FA29: lua_resume (lj_api.c:1296)
==20333== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20333== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20333== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20333== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20333== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20333== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20333== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20333== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20333== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20333== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20333== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20333== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20333== by 0x8062D4E: main (nginx.c:382)
==20333==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 25: long brackets - Can't connect to 127.0.0.1:1984: Connection refused ==20335== Invalid read of size 4
==20335== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20335== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20335== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20335== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20335== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20335== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20335== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20335== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20335== by 0x8062D4E: main (nginx.c:382)
==20335== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20335==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
034-match.t TEST 25: long brackets - Can't connect to 127.0.0.1:1984: Connection refused ==20335==
==20335== Process terminating with default action of signal 11 (SIGSEGV)
==20335== Access not within mapped region at address 0x0
==20335== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20335== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20335== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20335== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20335== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20335== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20335== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20335== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20335== by 0x8062D4E: main (nginx.c:382)
==20335== If you believe this happened as a result of a stack
==20335== overflow in your program's main thread (unlikely but
==20335== possible), you can try to increase the size of the
==20335== main thread stack using the --main-stacksize= flag.
==20335== The main thread stack size used in this run was 8388608.
==20335== 1,024 bytes in 1 blocks are definitely lost in loss record 2,744 of 2,844
==20335== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20335== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20335== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20335== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20335== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20335== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20335== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20335== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20335== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20335== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20335== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20335== by 0x40BB675: trace_state (lj_trace.c:690)
==20335== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20335== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20335== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20335== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20335== by 0x407FA29: lua_resume (lj_api.c:1296)
==20335== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20335== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20335== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20335== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20335== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20335== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20335== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20335== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20335== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20335== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20335== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20335== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20335== by 0x8062D4E: main (nginx.c:382)
==20335==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 8: case insensitive - Can't connect to 127.0.0.1:1984: Connection refused ==20337== Invalid read of size 4
==20337== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20337== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20337== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20337== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20337== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20337== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20337== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20337== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20337== by 0x8062D4E: main (nginx.c:382)
==20337== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20337==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
034-match.t TEST 8: case insensitive - Can't connect to 127.0.0.1:1984: Connection refused ==20337==
==20337== Process terminating with default action of signal 11 (SIGSEGV)
==20337== Access not within mapped region at address 0x0
==20337== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20337== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20337== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20337== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20337== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20337== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20337== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20337== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20337== by 0x8062D4E: main (nginx.c:382)
==20337== If you believe this happened as a result of a stack
==20337== overflow in your program's main thread (unlikely but
==20337== possible), you can try to increase the size of the
==20337== main thread stack using the --main-stacksize= flag.
==20337== The main thread stack size used in this run was 8388608.
==20337== 1,024 bytes in 1 blocks are definitely lost in loss record 2,894 of 3,017
==20337== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20337== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20337== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20337== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20337== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20337== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20337== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20337== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20337== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20337== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20337== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20337== by 0x40BB675: trace_state (lj_trace.c:690)
==20337== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20337== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20337== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20337== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20337== by 0x407FA29: lua_resume (lj_api.c:1296)
==20337== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20337== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20337== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20337== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20337== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20337== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20337== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20337== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20337== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20337== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20337== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20337== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20337== by 0x8062D4E: main (nginx.c:382)
==20337==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 17: extended mode (ignore whitespaces) - Can't connect to 127.0.0.1:1984: Connection refused ==20339== Invalid read of size 4
==20339== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20339== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20339== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20339== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20339== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20339== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20339== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20339== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20339== by 0x8062D4E: main (nginx.c:382)
==20339== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20339==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
034-match.t TEST 17: extended mode (ignore whitespaces) - Can't connect to 127.0.0.1:1984: Connection refused ==20339==
==20339== Process terminating with default action of signal 11 (SIGSEGV)
==20339== Access not within mapped region at address 0x0
==20339== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20339== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20339== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20339== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20339== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20339== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20339== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20339== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20339== by 0x8062D4E: main (nginx.c:382)
==20339== If you believe this happened as a result of a stack
==20339== overflow in your program's main thread (unlikely but
==20339== possible), you can try to increase the size of the
==20339== main thread stack using the --main-stacksize= flag.
==20339== The main thread stack size used in this run was 8388608.
==20339== 1,024 bytes in 1 blocks are definitely lost in loss record 2,777 of 2,880
==20339== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20339== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20339== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20339== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20339== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20339== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20339== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20339== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20339== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20339== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20339== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20339== by 0x40BB675: trace_state (lj_trace.c:690)
==20339== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20339== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20339== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20339== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20339== by 0x407FA29: lua_resume (lj_api.c:1296)
==20339== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20339== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20339== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20339== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20339== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20339== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20339== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20339== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20339== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20339== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20339== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20339== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20339== by 0x8062D4E: main (nginx.c:382)
==20339==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 15: bad pattern - Can't connect to 127.0.0.1:1984: Connection refused ==20341== Invalid read of size 4
==20341== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20341== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20341== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20341== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20341== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20341== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20341== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20341== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20341== by 0x8062D4E: main (nginx.c:382)
==20341== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20341==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
034-match.t TEST 15: bad pattern - Can't connect to 127.0.0.1:1984: Connection refused ==20341==
==20341== Process terminating with default action of signal 11 (SIGSEGV)
==20341== Access not within mapped region at address 0x0
==20341== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20341== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20341== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20341== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20341== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20341== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20341== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20341== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20341== by 0x8062D4E: main (nginx.c:382)
==20341== If you believe this happened as a result of a stack
==20341== overflow in your program's main thread (unlikely but
==20341== possible), you can try to increase the size of the
==20341== main thread stack using the --main-stacksize= flag.
==20341== The main thread stack size used in this run was 8388608.
==20341== 1,024 bytes in 1 blocks are definitely lost in loss record 2,733 of 2,832
==20341== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20341== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20341== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20341== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20341== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20341== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20341== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20341== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20341== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20341== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20341== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20341== by 0x40BB675: trace_state (lj_trace.c:690)
==20341== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20341== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20341== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20341== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20341== by 0x407FA29: lua_resume (lj_api.c:1296)
==20341== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20341== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20341== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20341== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20341== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20341== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20341== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20341== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20341== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20341== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20341== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20341== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20341== by 0x8062D4E: main (nginx.c:382)
==20341==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 (aborted) '
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 13: single-line mode (dot all) - Can't connect to 127.0.0.1:1984: Connection refused ==20343== Invalid read of size 4
==20343== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20343== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20343== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20343== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20343== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20343== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20343== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20343== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20343== by 0x8062D4E: main (nginx.c:382)
==20343== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20343==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
034-match.t TEST 13: single-line mode (dot all) - Can't connect to 127.0.0.1:1984: Connection refused ==20343==
==20343== Process terminating with default action of signal 11 (SIGSEGV)
==20343== Access not within mapped region at address 0x0
==20343== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20343== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20343== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20343== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20343== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20343== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20343== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20343== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20343== by 0x8062D4E: main (nginx.c:382)
==20343== If you believe this happened as a result of a stack
==20343== overflow in your program's main thread (unlikely but
==20343== possible), you can try to increase the size of the
==20343== main thread stack using the --main-stacksize= flag.
==20343== The main thread stack size used in this run was 8388608.
==20343== 1,024 bytes in 1 blocks are definitely lost in loss record 2,765 of 2,869
==20343== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20343== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20343== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20343== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20343== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20343== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20343== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20343== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20343== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20343== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20343== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20343== by 0x40BB675: trace_state (lj_trace.c:690)
==20343== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20343== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20343== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20343== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20343== by 0x407FA29: lua_resume (lj_api.c:1296)
==20343== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20343== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20343== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20343== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20343== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20343== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20343== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20343== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20343== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20343== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20343== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20343== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20343== by 0x8062D4E: main (nginx.c:382)
==20343==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 42: extra table argument - Can't connect to 127.0.0.1:1984: Connection refused ==20345== Invalid read of size 4
==20345== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20345== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20345== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20345== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20345== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20345== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20345== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20345== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20345== by 0x8062D4E: main (nginx.c:382)
==20345== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20345==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
034-match.t TEST 42: extra table argument - Can't connect to 127.0.0.1:1984: Connection refused ==20345==
==20345== Process terminating with default action of signal 11 (SIGSEGV)
==20345== Access not within mapped region at address 0x0
==20345== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20345== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20345== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20345== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20345== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20345== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20345== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20345== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20345== by 0x8062D4E: main (nginx.c:382)
==20345== If you believe this happened as a result of a stack
==20345== overflow in your program's main thread (unlikely but
==20345== possible), you can try to increase the size of the
==20345== main thread stack using the --main-stacksize= flag.
==20345== The main thread stack size used in this run was 8388608.
==20345== 1,024 bytes in 1 blocks are definitely lost in loss record 2,767 of 2,869
==20345== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20345== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20345== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20345== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20345== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20345== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20345== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20345== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20345== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20345== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20345== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20345== by 0x40BB675: trace_state (lj_trace.c:690)
==20345== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20345== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20345== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20345== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20345== by 0x407FA29: lua_resume (lj_api.c:1296)
==20345== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20345== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20345== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20345== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20345== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20345== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20345== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20345== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20345== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20345== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20345== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20345== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20345== by 0x8062D4E: main (nginx.c:382)
==20345==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 33: named captures are nil - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20347== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
034-match.t TEST 33: named captures are nil - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20347== by 0x8062D4E: main (nginx.c:382)
==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.
==20347== 1,024 bytes in 1 blocks are definitely lost in loss record 2,842 of 2,963
==20347== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20347== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20347== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20347== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20347== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20347== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20347== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20347== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20347== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20347== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20347== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20347== by 0x40BB675: trace_state (lj_trace.c:690)
==20347== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20347== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20347== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20347== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20347== by 0x407FA29: lua_resume (lj_api.c:1296)
==20347== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20347== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20347== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20347== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20347== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20347== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20347== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20347== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20347== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20347== by 0x8062D4E: main (nginx.c:382)
==20347==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 41: just not hit match limit - Can't connect to 127.0.0.1:1984: Connection refused ==20349== Invalid read of size 4
==20349== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20349== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20349== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20349== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20349== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20349== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20349== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20349== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20349== by 0x8062D4E: main (nginx.c:382)
==20349== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20349==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
034-match.t TEST 41: just not hit match limit - Can't connect to 127.0.0.1:1984: Connection refused ==20349==
==20349== Process terminating with default action of signal 11 (SIGSEGV)
==20349== Access not within mapped region at address 0x0
==20349== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20349== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20349== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20349== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20349== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20349== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20349== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20349== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20349== by 0x8062D4E: main (nginx.c:382)
==20349== If you believe this happened as a result of a stack
==20349== overflow in your program's main thread (unlikely but
==20349== possible), you can try to increase the size of the
==20349== main thread stack using the --main-stacksize= flag.
==20349== The main thread stack size used in this run was 8388608.
==20349== 1,024 bytes in 1 blocks are definitely lost in loss record 2,752 of 2,855
==20349== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20349== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20349== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20349== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20349== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20349== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20349== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20349== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20349== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20349== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20349== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20349== by 0x40BB675: trace_state (lj_trace.c:690)
==20349== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20349== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20349== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20349== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20349== by 0x407FA29: lua_resume (lj_api.c:1296)
==20349== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20349== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20349== by 0x8152E9D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==20349== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20349== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20349== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20349== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20349== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20349== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20349== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20349== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20349== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20349== by 0x8062D4E: main (nginx.c:382)
==20349==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_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_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 36: empty duplicate captures - Can't connect to 127.0.0.1:1984: Connection refused ==20351== Invalid read of size 4
==20351== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20351== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20351== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20351== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20351== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20351== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20351== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20351== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20351== by 0x8062D4E: main (nginx.c:382)
==20351== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20351==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
034-match.t TEST 36: empty duplicate captures - Can't connect to 127.0.0.1:1984: Connection refused ==20351==
==20351== Process terminating with default action of signal 11 (SIGSEGV)
==20351== Access not within mapped region at address 0x0
==20351== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20351== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20351== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20351== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20351== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20351== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20351== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20351== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20351== by 0x8062D4E: main (nginx.c:382)
==20351== If you believe this happened as a result of a stack
==20351== overflow in your program's main thread (unlikely but
==20351== possible), you can try to increase the size of the
==20351== main thread stack using the --main-stacksize= flag.
==20351== The main thread stack size used in this run was 8388608.
==20351== 1,024 bytes in 1 blocks are definitely lost in loss record 2,762 of 2,865
==20351== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20351== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20351== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20351== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20351== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20351== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20351== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20351== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20351== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20351== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20351== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20351== by 0x40BB675: trace_state (lj_trace.c:690)
==20351== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20351== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20351== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20351== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20351== by 0x407FA29: lua_resume (lj_api.c:1296)
==20351== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20351== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20351== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20351== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20351== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20351== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20351== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20351== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20351== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20351== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20351== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20351== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20351== by 0x8062D4E: main (nginx.c:382)
==20351==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==20353== Invalid read of size 4
==20353== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20353== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20353== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20353== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20353== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20353== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20353== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20353== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20353== by 0x8062D4E: main (nginx.c:382)
==20353== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20353==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
034-match.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==20353==
==20353== Process terminating with default action of signal 11 (SIGSEGV)
==20353== Access not within mapped region at address 0x0
==20353== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20353== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20353== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20353== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20353== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20353== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20353== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20353== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20353== by 0x8062D4E: main (nginx.c:382)
==20353== If you believe this happened as a result of a stack
==20353== overflow in your program's main thread (unlikely but
==20353== possible), you can try to increase the size of the
==20353== main thread stack using the --main-stacksize= flag.
==20353== The main thread stack size used in this run was 8388608.
==20353== 1,024 bytes in 1 blocks are definitely lost in loss record 2,766 of 2,869
==20353== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20353== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20353== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20353== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20353== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20353== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20353== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20353== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20353== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20353== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20353== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20353== by 0x40BB675: trace_state (lj_trace.c:690)
==20353== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20353== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20353== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20353== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20353== by 0x407FA29: lua_resume (lj_api.c:1296)
==20353== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20353== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20353== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20353== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20353== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20353== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20353== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20353== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20353== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20353== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20353== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20353== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20353== by 0x8062D4E: main (nginx.c:382)
==20353==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
034-match.t TEST 10: multi-line mode (^ at line head) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20355== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
034-match.t TEST 10: multi-line mode (^ at line head) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20355== by 0x8062D4E: main (nginx.c:382)
==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.
==20355== 1,024 bytes in 1 blocks are definitely lost in loss record 2,764 of 2,867
==20355== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20355== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20355== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20355== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20355== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20355== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20355== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20355== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20355== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20355== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20355== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20355== by 0x40BB675: trace_state (lj_trace.c:690)
==20355== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20355== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20355== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20355== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20355== by 0x407FA29: lua_resume (lj_api.c:1296)
==20355== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20355== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20355== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20355== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20355== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20355== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20355== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20355== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20355== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20355== by 0x8062D4E: main (nginx.c:382)
==20355==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 23: match (look-behind assertion) - Can't connect to 127.0.0.1:1984: Connection refused ==20357== Invalid read of size 4
==20357== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20357== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20357== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20357== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20357== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20357== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20357== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20357== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20357== by 0x8062D4E: main (nginx.c:382)
==20357== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20357==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
034-match.t TEST 23: match (look-behind assertion) - Can't connect to 127.0.0.1:1984: Connection refused ==20357==
==20357== Process terminating with default action of signal 11 (SIGSEGV)
==20357== Access not within mapped region at address 0x0
==20357== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20357== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20357== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20357== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20357== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20357== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20357== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20357== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20357== by 0x8062D4E: main (nginx.c:382)
==20357== If you believe this happened as a result of a stack
==20357== overflow in your program's main thread (unlikely but
==20357== possible), you can try to increase the size of the
==20357== main thread stack using the --main-stacksize= flag.
==20357== The main thread stack size used in this run was 8388608.
==20357== 1,024 bytes in 1 blocks are definitely lost in loss record 2,747 of 2,850
==20357== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20357== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20357== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20357== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20357== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20357== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20357== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20357== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20357== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20357== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20357== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20357== by 0x40BB675: trace_state (lj_trace.c:690)
==20357== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20357== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20357== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20357== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20357== by 0x407FA29: lua_resume (lj_api.c:1296)
==20357== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20357== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20357== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20357== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20357== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20357== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20357== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20357== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20357== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20357== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20357== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20357== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20357== by 0x8062D4E: main (nginx.c:382)
==20357==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 30: named subpatterns w/ extraction - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20359== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
034-match.t TEST 30: named subpatterns w/ extraction - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20359== by 0x8062D4E: main (nginx.c:382)
==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.
==20359== 1,024 bytes in 1 blocks are definitely lost in loss record 2,747 of 2,850
==20359== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20359== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20359== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20359== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20359== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20359== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20359== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20359== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20359== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20359== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20359== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20359== by 0x40BB675: trace_state (lj_trace.c:690)
==20359== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20359== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20359== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20359== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20359== by 0x407FA29: lua_resume (lj_api.c:1296)
==20359== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20359== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20359== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20359== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20359== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20359== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20359== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20359== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20359== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20359== by 0x8062D4E: main (nginx.c:382)
==20359==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 19: anchored match (failed) - Can't connect to 127.0.0.1:1984: Connection refused ==20361== Invalid read of size 4
==20361== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20361== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20361== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20361== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20361== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20361== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20361== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20361== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20361== by 0x8062D4E: main (nginx.c:382)
==20361== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20361==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
034-match.t TEST 19: anchored match (failed) - Can't connect to 127.0.0.1:1984: Connection refused ==20361==
==20361== Process terminating with default action of signal 11 (SIGSEGV)
==20361== Access not within mapped region at address 0x0
==20361== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20361== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20361== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20361== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20361== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20361== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20361== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20361== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20361== by 0x8062D4E: main (nginx.c:382)
==20361== If you believe this happened as a result of a stack
==20361== overflow in your program's main thread (unlikely but
==20361== possible), you can try to increase the size of the
==20361== main thread stack using the --main-stacksize= flag.
==20361== The main thread stack size used in this run was 8388608.
==20361== 1,024 bytes in 1 blocks are definitely lost in loss record 2,753 of 2,856
==20361== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20361== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20361== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20361== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20361== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20361== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20361== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20361== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20361== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20361== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20361== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20361== by 0x40BB675: trace_state (lj_trace.c:690)
==20361== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20361== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20361== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20361== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20361== by 0x407FA29: lua_resume (lj_api.c:1296)
==20361== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20361== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20361== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20361== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20361== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20361== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20361== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20361== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20361== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20361== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20361== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20361== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20361== by 0x8062D4E: main (nginx.c:382)
==20361==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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!
'
035-gmatch.t TEST 21: gmatch with multiple named pattern - Can't connect to 127.0.0.1:1984: Connection refused ==20366== Invalid read of size 4
==20366== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20366== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20366== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20366== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20366== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20366== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20366== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20366== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20366== by 0x8062D4E: main (nginx.c:382)
==20366== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20366==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
035-gmatch.t TEST 21: gmatch with multiple named pattern - Can't connect to 127.0.0.1:1984: Connection refused ==20366==
==20366== Process terminating with default action of signal 11 (SIGSEGV)
==20366== Access not within mapped region at address 0x0
==20366== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20366== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20366== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20366== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20366== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20366== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20366== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20366== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20366== by 0x8062D4E: main (nginx.c:382)
==20366== If you believe this happened as a result of a stack
==20366== overflow in your program's main thread (unlikely but
==20366== possible), you can try to increase the size of the
==20366== main thread stack using the --main-stacksize= flag.
==20366== The main thread stack size used in this run was 8388608.
==20366== 1,024 bytes in 1 blocks are definitely lost in loss record 2,765 of 2,866
==20366== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20366== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20366== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20366== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20366== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20366== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20366== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20366== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20366== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20366== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20366== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20366== by 0x40BB675: trace_state (lj_trace.c:690)
==20366== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20366== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20366== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20366== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20366== by 0x407FA29: lua_resume (lj_api.c:1296)
==20366== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20366== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20366== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20366== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20366== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20366== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20366== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20366== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20366== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20366== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20366== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20366== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20366== by 0x8062D4E: main (nginx.c:382)
==20366==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 8: non-anchored gmatch (with regex cache) - Can't connect to 127.0.0.1:1984: Connection refused ==20371== Invalid read of size 4
==20371== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20371== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20371== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20371== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20371== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20371== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20371== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20371== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20371== by 0x8062D4E: main (nginx.c:382)
==20371== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20371==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
035-gmatch.t TEST 8: non-anchored gmatch (with regex cache) - Can't connect to 127.0.0.1:1984: Connection refused ==20371==
==20371== Process terminating with default action of signal 11 (SIGSEGV)
==20371== Access not within mapped region at address 0x0
==20371== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20371== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20371== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20371== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20371== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20371== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20371== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20371== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20371== by 0x8062D4E: main (nginx.c:382)
==20371== If you believe this happened as a result of a stack
==20371== overflow in your program's main thread (unlikely but
==20371== possible), you can try to increase the size of the
==20371== main thread stack using the --main-stacksize= flag.
==20371== The main thread stack size used in this run was 8388608.
==20371== 1,024 bytes in 1 blocks are definitely lost in loss record 2,770 of 2,873
==20371== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20371== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20371== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20371== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20371== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20371== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20371== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20371== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20371== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20371== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20371== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20371== by 0x40BB675: trace_state (lj_trace.c:690)
==20371== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20371== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20371== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20371== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20371== by 0x407FA29: lua_resume (lj_api.c:1296)
==20371== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20371== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20371== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20371== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20371== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20371== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20371== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20371== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20371== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20371== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20371== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20371== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20371== by 0x8062D4E: main (nginx.c:382)
==20371==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 12: with regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==20376== Invalid read of size 4
==20376== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20376== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20376== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20376== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20376== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20376== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20376== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20376== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20376== by 0x8062D4E: main (nginx.c:382)
==20376== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20376==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
035-gmatch.t TEST 12: with regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==20376==
==20376== Process terminating with default action of signal 11 (SIGSEGV)
==20376== Access not within mapped region at address 0x0
==20376== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20376== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20376== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20376== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20376== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20376== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20376== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20376== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20376== by 0x8062D4E: main (nginx.c:382)
==20376== If you believe this happened as a result of a stack
==20376== overflow in your program's main thread (unlikely but
==20376== possible), you can try to increase the size of the
==20376== main thread stack using the --main-stacksize= flag.
==20376== The main thread stack size used in this run was 8388608.
==20376== 1,024 bytes in 1 blocks are definitely lost in loss record 2,755 of 2,855
==20376== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20376== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20376== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20376== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20376== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20376== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20376== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20376== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20376== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20376== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20376== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20376== by 0x40BB675: trace_state (lj_trace.c:690)
==20376== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20376== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20376== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20376== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20376== by 0x407FA29: lua_resume (lj_api.c:1296)
==20376== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20376== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20376== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20376== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20376== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20376== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20376== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20376== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20376== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20376== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20376== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20376== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20376== by 0x8062D4E: main (nginx.c:382)
==20376==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 16: gmatch matched but only iterate once and still matches remain - Can't connect to 127.0.0.1:1984: Connection refused ==20381== Invalid read of size 4
==20381== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20381== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20381== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20381== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20381== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20381== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20381== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20381== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20381== by 0x8062D4E: main (nginx.c:382)
==20381== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20381==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
035-gmatch.t TEST 16: gmatch matched but only iterate once and still matches remain - Can't connect to 127.0.0.1:1984: Connection refused ==20381==
==20381== Process terminating with default action of signal 11 (SIGSEGV)
==20381== Access not within mapped region at address 0x0
==20381== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20381== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20381== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20381== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20381== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20381== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20381== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20381== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20381== by 0x8062D4E: main (nginx.c:382)
==20381== If you believe this happened as a result of a stack
==20381== overflow in your program's main thread (unlikely but
==20381== possible), you can try to increase the size of the
==20381== main thread stack using the --main-stacksize= flag.
==20381== The main thread stack size used in this run was 8388608.
==20381== 1,024 bytes in 1 blocks are definitely lost in loss record 2,756 of 2,857
==20381== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20381== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20381== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20381== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20381== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20381== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20381== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20381== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20381== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20381== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20381== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20381== by 0x40BB675: trace_state (lj_trace.c:690)
==20381== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20381== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20381== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20381== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20381== by 0x407FA29: lua_resume (lj_api.c:1296)
==20381== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20381== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20381== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20381== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20381== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20381== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20381== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20381== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20381== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20381== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20381== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20381== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20381== by 0x8062D4E: main (nginx.c:382)
==20381==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 30: just not hit match limit - Can't connect to 127.0.0.1:1984: Connection refused ==20386== Invalid read of size 4
==20386== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20386== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20386== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20386== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20386== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20386== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20386== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20386== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20386== by 0x8062D4E: main (nginx.c:382)
==20386== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20386==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
035-gmatch.t TEST 30: just not hit match limit - Can't connect to 127.0.0.1:1984: Connection refused ==20386==
==20386== Process terminating with default action of signal 11 (SIGSEGV)
==20386== Access not within mapped region at address 0x0
==20386== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20386== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20386== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20386== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20386== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20386== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20386== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20386== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20386== by 0x8062D4E: main (nginx.c:382)
==20386== If you believe this happened as a result of a stack
==20386== overflow in your program's main thread (unlikely but
==20386== possible), you can try to increase the size of the
==20386== main thread stack using the --main-stacksize= flag.
==20386== The main thread stack size used in this run was 8388608.
==20386== 1,024 bytes in 1 blocks are definitely lost in loss record 2,760 of 2,863
==20386== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20386== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20386== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20386== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20386== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20386== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20386== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20386== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20386== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20386== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20386== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20386== by 0x40BB675: trace_state (lj_trace.c:690)
==20386== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20386== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20386== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20386== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20386== by 0x407FA29: lua_resume (lj_api.c:1296)
==20386== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20386== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20386== by 0x8152E9D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==20386== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20386== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20386== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20386== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20386== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20386== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20386== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20386== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20386== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20386== by 0x8062D4E: main (nginx.c:382)
==20386==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_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_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 25: bad pattern - Can't connect to 127.0.0.1:1984: Connection refused ==20391== Invalid read of size 4
==20391== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20391== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20391== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20391== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20391== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20391== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20391== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20391== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20391== by 0x8062D4E: main (nginx.c:382)
==20391== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20391==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
035-gmatch.t TEST 25: bad pattern - Can't connect to 127.0.0.1:1984: Connection refused ==20391==
==20391== Process terminating with default action of signal 11 (SIGSEGV)
==20391== Access not within mapped region at address 0x0
==20391== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20391== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20391== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20391== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20391== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20391== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20391== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20391== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20391== by 0x8062D4E: main (nginx.c:382)
==20391== If you believe this happened as a result of a stack
==20391== overflow in your program's main thread (unlikely but
==20391== possible), you can try to increase the size of the
==20391== main thread stack using the --main-stacksize= flag.
==20391== The main thread stack size used in this run was 8388608.
==20391== 1,024 bytes in 1 blocks are definitely lost in loss record 2,742 of 2,842
==20391== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20391== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20391== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20391== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20391== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20391== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20391== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20391== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20391== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20391== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20391== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20391== by 0x40BB675: trace_state (lj_trace.c:690)
==20391== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20391== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20391== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20391== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20391== by 0x407FA29: lua_resume (lj_api.c:1296)
==20391== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20391== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20391== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20391== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20391== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20391== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20391== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20391== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20391== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20391== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20391== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20391== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20391== by 0x8062D4E: main (nginx.c:382)
==20391==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 22: gmatch with duplicate named pattern w/ extraction - Can't connect to 127.0.0.1:1984: Connection refused ==20396== Invalid read of size 4
==20396== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20396== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20396== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20396== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20396== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20396== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20396== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20396== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20396== by 0x8062D4E: main (nginx.c:382)
==20396== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20396==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==20396==
==20396== Process terminating with default action of signal 11 (SIGSEGV)
==20396== Access not within mapped region at address 0x0
==20396== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20396== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20396== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20396== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20396== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20396== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20396== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20396== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20396== by 0x8062D4E: main (nginx.c:382)
==20396== If you believe this happened as a result of a stack
==20396== overflow in your program's main thread (unlikely but
==20396== possible), you can try to increase the size of the
==20396== main thread stack using the --main-stacksize= flag.
==20396== The main thread stack size used in this run was 8388608.
==20396== 1,024 bytes in 1 blocks are definitely lost in loss record 2,754 of 2,857
==20396== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20396== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20396== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20396== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20396== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20396== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20396== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20396== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20396== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20396== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20396== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20396== by 0x40BB675: trace_state (lj_trace.c:690)
==20396== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20396== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20396== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20396== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20396== by 0x407FA29: lua_resume (lj_api.c:1296)
==20396== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20396== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20396== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20396== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20396== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20396== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20396== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20396== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20396== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20396== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20396== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20396== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20396== by 0x8062D4E: main (nginx.c:382)
==20396==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 (aborted) '
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 (aborted) '
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 (aborted) '
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 (aborted) '
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 27: UTF-8 mode without UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20401== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
035-gmatch.t TEST 27: UTF-8 mode without UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20401== by 0x8062D4E: main (nginx.c:382)
==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.
==20401== 1,024 bytes in 1 blocks are definitely lost in loss record 2,756 of 2,859
==20401== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20401== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20401== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20401== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20401== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20401== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20401== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20401== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20401== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20401== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20401== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20401== by 0x40BB675: trace_state (lj_trace.c:690)
==20401== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20401== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20401== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20401== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20401== by 0x407FA29: lua_resume (lj_api.c:1296)
==20401== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20401== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20401== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20401== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20401== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20401== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20401== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20401== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20401== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20401== by 0x8062D4E: main (nginx.c:382)
==20401==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 10: gmatch (look-behind assertion) - Can't connect to 127.0.0.1:1984: Connection refused ==20406== Invalid read of size 4
==20406== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20406== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20406== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20406== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20406== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20406== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20406== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20406== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20406== by 0x8062D4E: main (nginx.c:382)
==20406== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20406==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
035-gmatch.t TEST 10: gmatch (look-behind assertion) - Can't connect to 127.0.0.1:1984: Connection refused ==20406==
==20406== Process terminating with default action of signal 11 (SIGSEGV)
==20406== Access not within mapped region at address 0x0
==20406== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20406== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20406== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20406== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20406== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20406== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20406== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20406== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20406== by 0x8062D4E: main (nginx.c:382)
==20406== If you believe this happened as a result of a stack
==20406== overflow in your program's main thread (unlikely but
==20406== possible), you can try to increase the size of the
==20406== main thread stack using the --main-stacksize= flag.
==20406== The main thread stack size used in this run was 8388608.
==20406== 1,024 bytes in 1 blocks are definitely lost in loss record 2,893 of 3,018
==20406== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20406== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20406== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20406== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20406== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20406== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20406== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20406== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20406== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20406== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20406== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20406== by 0x40BB675: trace_state (lj_trace.c:690)
==20406== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20406== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20406== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20406== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20406== by 0x407FA29: lua_resume (lj_api.c:1296)
==20406== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20406== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20406== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20406== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20406== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20406== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20406== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20406== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20406== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20406== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20406== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20406== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20406== by 0x8062D4E: main (nginx.c:382)
==20406==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 7: non-anchored gmatch (without regex cache) - Can't connect to 127.0.0.1:1984: Connection refused ==20411== Invalid read of size 4
==20411== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20411== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20411== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20411== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20411== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20411== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20411== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20411== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20411== by 0x8062D4E: main (nginx.c:382)
==20411== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20411==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
035-gmatch.t TEST 7: non-anchored gmatch (without regex cache) - Can't connect to 127.0.0.1:1984: Connection refused ==20411==
==20411== Process terminating with default action of signal 11 (SIGSEGV)
==20411== Access not within mapped region at address 0x0
==20411== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20411== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20411== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20411== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20411== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20411== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20411== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20411== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20411== by 0x8062D4E: main (nginx.c:382)
==20411== If you believe this happened as a result of a stack
==20411== overflow in your program's main thread (unlikely but
==20411== possible), you can try to increase the size of the
==20411== main thread stack using the --main-stacksize= flag.
==20411== The main thread stack size used in this run was 8388608.
==20411== 1,024 bytes in 1 blocks are definitely lost in loss record 2,754 of 2,856
==20411== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20411== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20411== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20411== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20411== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20411== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20411== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20411== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20411== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20411== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20411== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20411== by 0x40BB675: trace_state (lj_trace.c:690)
==20411== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20411== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20411== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20411== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20411== by 0x407FA29: lua_resume (lj_api.c:1296)
==20411== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20411== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20411== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20411== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20411== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20411== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20411== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20411== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20411== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20411== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20411== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20411== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20411== by 0x8062D4E: main (nginx.c:382)
==20411==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 17: gmatch matched but no iterate and early forced GC - Can't connect to 127.0.0.1:1984: Connection refused ==20416== Invalid read of size 4
==20416== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20416== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20416== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20416== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20416== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20416== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20416== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20416== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20416== by 0x8062D4E: main (nginx.c:382)
==20416== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20416==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
035-gmatch.t TEST 17: gmatch matched but no iterate and early forced GC - Can't connect to 127.0.0.1:1984: Connection refused ==20416==
==20416== Process terminating with default action of signal 11 (SIGSEGV)
==20416== Access not within mapped region at address 0x0
==20416== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20416== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20416== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20416== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20416== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20416== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20416== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20416== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20416== by 0x8062D4E: main (nginx.c:382)
==20416== If you believe this happened as a result of a stack
==20416== overflow in your program's main thread (unlikely but
==20416== possible), you can try to increase the size of the
==20416== main thread stack using the --main-stacksize= flag.
==20416== The main thread stack size used in this run was 8388608.
==20416== 1,024 bytes in 1 blocks are definitely lost in loss record 2,750 of 2,853
==20416== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20416== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20416== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20416== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20416== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20416== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20416== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20416== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20416== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20416== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20416== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20416== by 0x40BB675: trace_state (lj_trace.c:690)
==20416== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20416== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20416== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20416== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20416== by 0x407FA29: lua_resume (lj_api.c:1296)
==20416== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20416== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20416== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20416== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20416== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20416== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20416== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20416== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20416== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20416== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20416== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20416== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20416== by 0x8062D4E: main (nginx.c:382)
==20416==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 2: fail to match - Can't connect to 127.0.0.1:1984: Connection refused ==20421== Invalid read of size 4
==20421== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20421== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20421== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20421== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20421== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20421== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20421== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20421== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20421== by 0x8062D4E: main (nginx.c:382)
==20421== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20421==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
035-gmatch.t TEST 2: fail to match - Can't connect to 127.0.0.1:1984: Connection refused ==20421==
==20421== Process terminating with default action of signal 11 (SIGSEGV)
==20421== Access not within mapped region at address 0x0
==20421== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20421== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20421== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20421== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20421== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20421== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20421== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20421== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20421== by 0x8062D4E: main (nginx.c:382)
==20421== If you believe this happened as a result of a stack
==20421== overflow in your program's main thread (unlikely but
==20421== possible), you can try to increase the size of the
==20421== main thread stack using the --main-stacksize= flag.
==20421== The main thread stack size used in this run was 8388608.
==20421== 1,024 bytes in 1 blocks are definitely lost in loss record 2,751 of 2,854
==20421== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20421== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20421== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20421== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20421== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20421== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20421== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20421== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20421== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20421== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20421== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20421== by 0x40BB675: trace_state (lj_trace.c:690)
==20421== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20421== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20421== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20421== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20421== by 0x407FA29: lua_resume (lj_api.c:1296)
==20421== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20421== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20421== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20421== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20421== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20421== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20421== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20421== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20421== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20421== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20421== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20421== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20421== by 0x8062D4E: main (nginx.c:382)
==20421==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 11: gmatch (look-behind assertion 2) - Can't connect to 127.0.0.1:1984: Connection refused ==20426== Invalid read of size 4
==20426== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20426== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20426== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20426== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20426== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20426== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20426== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20426== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20426== by 0x8062D4E: main (nginx.c:382)
==20426== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20426==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
035-gmatch.t TEST 11: gmatch (look-behind assertion 2) - Can't connect to 127.0.0.1:1984: Connection refused ==20426==
==20426== Process terminating with default action of signal 11 (SIGSEGV)
==20426== Access not within mapped region at address 0x0
==20426== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20426== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20426== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20426== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20426== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20426== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20426== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20426== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20426== by 0x8062D4E: main (nginx.c:382)
==20426== If you believe this happened as a result of a stack
==20426== overflow in your program's main thread (unlikely but
==20426== possible), you can try to increase the size of the
==20426== main thread stack using the --main-stacksize= flag.
==20426== The main thread stack size used in this run was 8388608.
==20426== 1,024 bytes in 1 blocks are definitely lost in loss record 2,747 of 2,848
==20426== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20426== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20426== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20426== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20426== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20426== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20426== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20426== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20426== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20426== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20426== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20426== by 0x40BB675: trace_state (lj_trace.c:690)
==20426== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20426== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20426== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20426== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20426== by 0x407FA29: lua_resume (lj_api.c:1296)
==20426== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20426== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20426== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20426== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20426== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20426== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20426== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20426== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20426== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20426== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20426== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20426== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20426== by 0x8062D4E: main (nginx.c:382)
==20426==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 15: gmatch matched but no iterate - Can't connect to 127.0.0.1:1984: Connection refused ==20431== Invalid read of size 4
==20431== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20431== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20431== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20431== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20431== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20431== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20431== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20431== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20431== by 0x8062D4E: main (nginx.c:382)
==20431== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20431==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
035-gmatch.t TEST 15: gmatch matched but no iterate - Can't connect to 127.0.0.1:1984: Connection refused ==20431==
==20431== Process terminating with default action of signal 11 (SIGSEGV)
==20431== Access not within mapped region at address 0x0
==20431== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20431== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20431== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20431== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20431== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20431== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20431== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20431== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20431== by 0x8062D4E: main (nginx.c:382)
==20431== If you believe this happened as a result of a stack
==20431== overflow in your program's main thread (unlikely but
==20431== possible), you can try to increase the size of the
==20431== main thread stack using the --main-stacksize= flag.
==20431== The main thread stack size used in this run was 8388608.
==20431== 1,024 bytes in 1 blocks are definitely lost in loss record 2,761 of 2,864
==20431== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20431== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20431== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20431== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20431== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20431== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20431== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20431== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20431== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20431== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20431== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20431== by 0x40BB675: trace_state (lj_trace.c:690)
==20431== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20431== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20431== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20431== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20431== by 0x407FA29: lua_resume (lj_api.c:1296)
==20431== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20431== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20431== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20431== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20431== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20431== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20431== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20431== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20431== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20431== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20431== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20431== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20431== by 0x8062D4E: main (nginx.c:382)
==20431==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 5: anchored match (failed) - Can't connect to 127.0.0.1:1984: Connection refused ==20436== Invalid read of size 4
==20436== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20436== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20436== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20436== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20436== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20436== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20436== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20436== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20436== by 0x8062D4E: main (nginx.c:382)
==20436== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20436==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
035-gmatch.t TEST 5: anchored match (failed) - Can't connect to 127.0.0.1:1984: Connection refused ==20436==
==20436== Process terminating with default action of signal 11 (SIGSEGV)
==20436== Access not within mapped region at address 0x0
==20436== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20436== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20436== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20436== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20436== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20436== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20436== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20436== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20436== by 0x8062D4E: main (nginx.c:382)
==20436== If you believe this happened as a result of a stack
==20436== overflow in your program's main thread (unlikely but
==20436== possible), you can try to increase the size of the
==20436== main thread stack using the --main-stacksize= flag.
==20436== The main thread stack size used in this run was 8388608.
==20436== 1,024 bytes in 1 blocks are definitely lost in loss record 2,899 of 3,020
==20436== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20436== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20436== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20436== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20436== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20436== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20436== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20436== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20436== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20436== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20436== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20436== by 0x40BB675: trace_state (lj_trace.c:690)
==20436== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20436== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20436== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20436== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20436== by 0x407FA29: lua_resume (lj_api.c:1296)
==20436== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20436== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20436== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20436== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20436== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20436== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20436== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20436== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20436== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20436== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20436== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20436== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20436== by 0x8062D4E: main (nginx.c:382)
==20436==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused ==20441== Invalid read of size 4
==20441== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20441== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20441== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20441== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20441== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20441== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20441== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20441== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20441== by 0x8062D4E: main (nginx.c:382)
==20441== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20441==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
035-gmatch.t TEST 3: match but iterate more times (not just match at the end) - Can't connect to 127.0.0.1:1984: Connection refused ==20441==
==20441== Process terminating with default action of signal 11 (SIGSEGV)
==20441== Access not within mapped region at address 0x0
==20441== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20441== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20441== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20441== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20441== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20441== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20441== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20441== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20441== by 0x8062D4E: main (nginx.c:382)
==20441== If you believe this happened as a result of a stack
==20441== overflow in your program's main thread (unlikely but
==20441== possible), you can try to increase the size of the
==20441== main thread stack using the --main-stacksize= flag.
==20441== The main thread stack size used in this run was 8388608.
==20441== 1,024 bytes in 1 blocks are definitely lost in loss record 2,744 of 2,847
==20441== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20441== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20441== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20441== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20441== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20441== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20441== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20441== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20441== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20441== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20441== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20441== by 0x40BB675: trace_state (lj_trace.c:690)
==20441== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20441== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20441== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20441== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20441== by 0x407FA29: lua_resume (lj_api.c:1296)
==20441== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20441== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20441== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20441== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20441== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20441== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20441== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20441== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20441== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20441== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20441== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20441== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20441== by 0x8062D4E: main (nginx.c:382)
==20441==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 14: disable regex cache completely - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20446== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
035-gmatch.t TEST 14: disable regex cache completely - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20446== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 24: named captures are empty (with regex cache) - Can't connect to 127.0.0.1:1984: Connection refused ==20451== Invalid read of size 4
==20451== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20451== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20451== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20451== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20451== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20451== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20451== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20451== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20451== by 0x8062D4E: main (nginx.c:382)
==20451== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20451==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
035-gmatch.t TEST 24: named captures are empty (with regex cache) - Can't connect to 127.0.0.1:1984: Connection refused ==20451==
==20451== Process terminating with default action of signal 11 (SIGSEGV)
==20451== Access not within mapped region at address 0x0
==20451== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20451== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20451== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20451== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20451== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20451== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20451== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20451== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20451== by 0x8062D4E: main (nginx.c:382)
==20451== If you believe this happened as a result of a stack
==20451== overflow in your program's main thread (unlikely but
==20451== possible), you can try to increase the size of the
==20451== main thread stack using the --main-stacksize= flag.
==20451== The main thread stack size used in this run was 8388608.
==20451== 1,024 bytes in 1 blocks are definitely lost in loss record 2,756 of 2,859
==20451== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20451== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20451== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20451== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20451== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20451== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20451== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20451== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20451== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20451== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20451== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20451== by 0x40BB675: trace_state (lj_trace.c:690)
==20451== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20451== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20451== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20451== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20451== by 0x407FA29: lua_resume (lj_api.c:1296)
==20451== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20451== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20451== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20451== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20451== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20451== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20451== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20451== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20451== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20451== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20451== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20451== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20451== by 0x8062D4E: main (nginx.c:382)
==20451==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 13: exceeding regex cache max entries - Can't connect to 127.0.0.1:1984: Connection refused ==20456== Invalid read of size 4
==20456== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20456== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20456== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20456== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20456== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20456== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20456== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20456== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20456== by 0x8062D4E: main (nginx.c:382)
==20456== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20456==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
035-gmatch.t TEST 13: exceeding regex cache max entries - Can't connect to 127.0.0.1:1984: Connection refused ==20456==
==20456== Process terminating with default action of signal 11 (SIGSEGV)
==20456== Access not within mapped region at address 0x0
==20456== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20456== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20456== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20456== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20456== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20456== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20456== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20456== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20456== by 0x8062D4E: main (nginx.c:382)
==20456== If you believe this happened as a result of a stack
==20456== overflow in your program's main thread (unlikely but
==20456== possible), you can try to increase the size of the
==20456== main thread stack using the --main-stacksize= flag.
==20456== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 4: match but iterate more times (just matched at the end) - Can't connect to 127.0.0.1:1984: Connection refused ==20461== Invalid read of size 4
==20461== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20461== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20461== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20461== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20461== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20461== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20461== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20461== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20461== by 0x8062D4E: main (nginx.c:382)
==20461== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20461==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
035-gmatch.t TEST 4: match but iterate more times (just matched at the end) - Can't connect to 127.0.0.1:1984: Connection refused ==20461==
==20461== Process terminating with default action of signal 11 (SIGSEGV)
==20461== Access not within mapped region at address 0x0
==20461== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20461== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20461== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20461== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20461== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20461== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20461== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20461== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20461== by 0x8062D4E: main (nginx.c:382)
==20461== If you believe this happened as a result of a stack
==20461== overflow in your program's main thread (unlikely but
==20461== possible), you can try to increase the size of the
==20461== main thread stack using the --main-stacksize= flag.
==20461== The main thread stack size used in this run was 8388608.
==20461== 1,024 bytes in 1 blocks are definitely lost in loss record 2,770 of 2,874
==20461== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20461== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20461== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20461== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20461== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20461== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20461== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20461== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20461== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20461== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20461== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20461== by 0x40BB675: trace_state (lj_trace.c:690)
==20461== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20461== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20461== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20461== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20461== by 0x407FA29: lua_resume (lj_api.c:1296)
==20461== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20461== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20461== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20461== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20461== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20461== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20461== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20461== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20461== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20461== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20461== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20461== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20461== by 0x8062D4E: main (nginx.c:382)
==20461==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 9: anchored match (succeeded) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20479== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
035-gmatch.t TEST 9: anchored match (succeeded) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20479== by 0x8062D4E: main (nginx.c:382)
==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.
==20479== 1,024 bytes in 1 blocks are definitely lost in loss record 2,741 of 2,841
==20479== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20479== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20479== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20479== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20479== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20479== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20479== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20479== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20479== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20479== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20479== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20479== by 0x40BB675: trace_state (lj_trace.c:690)
==20479== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20479== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20479== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20479== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20479== by 0x407FA29: lua_resume (lj_api.c:1296)
==20479== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20479== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20479== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20479== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20479== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20479== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20479== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20479== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20479== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20479== by 0x8062D4E: main (nginx.c:382)
==20479==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 18: gmatch iterator used by another request - Can't connect to 127.0.0.1:1984: Connection refused ==20484== Invalid read of size 4
==20484== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20484== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20484== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20484== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20484== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20484== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20484== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20484== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20484== by 0x8062D4E: main (nginx.c:382)
==20484== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20484==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
035-gmatch.t TEST 18: gmatch iterator used by another request - Can't connect to 127.0.0.1:1984: Connection refused ==20484==
==20484== Process terminating with default action of signal 11 (SIGSEGV)
==20484== Access not within mapped region at address 0x0
==20484== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20484== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20484== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20484== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20484== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20484== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20484== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20484== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20484== by 0x8062D4E: main (nginx.c:382)
==20484== If you believe this happened as a result of a stack
==20484== overflow in your program's main thread (unlikely but
==20484== possible), you can try to increase the size of the
==20484== main thread stack using the --main-stacksize= flag.
==20484== The main thread stack size used in this run was 8388608.
==20484== 1,024 bytes in 1 blocks are definitely lost in loss record 2,789 of 2,893
==20484== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20484== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20484== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20484== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20484== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20484== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20484== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20484== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20484== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20484== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20484== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20484== by 0x40BB675: trace_state (lj_trace.c:690)
==20484== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20484== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20484== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20484== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20484== by 0x407FA29: lua_resume (lj_api.c:1296)
==20484== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20484== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20484== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20484== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20484== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20484== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20484== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20484== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20484== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20484== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20484== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20484== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20484== by 0x8062D4E: main (nginx.c:382)
==20484==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 29: just hit match limit - Can't connect to 127.0.0.1:1984: Connection refused ==20489== Invalid read of size 4
==20489== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20489== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20489== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20489== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20489== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20489== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20489== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20489== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20489== by 0x8062D4E: main (nginx.c:382)
==20489== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20489==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
035-gmatch.t TEST 29: just hit match limit - Can't connect to 127.0.0.1:1984: Connection refused ==20489==
==20489== Process terminating with default action of signal 11 (SIGSEGV)
==20489== Access not within mapped region at address 0x0
==20489== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20489== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20489== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20489== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20489== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20489== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20489== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20489== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20489== by 0x8062D4E: main (nginx.c:382)
==20489== If you believe this happened as a result of a stack
==20489== overflow in your program's main thread (unlikely but
==20489== possible), you can try to increase the size of the
==20489== main thread stack using the --main-stacksize= flag.
==20489== The main thread stack size used in this run was 8388608.
==20489== 1,024 bytes in 1 blocks are definitely lost in loss record 2,751 of 2,854
==20489== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20489== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20489== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20489== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20489== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20489== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20489== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20489== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20489== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20489== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20489== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20489== by 0x40BB675: trace_state (lj_trace.c:690)
==20489== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20489== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20489== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20489== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20489== by 0x407FA29: lua_resume (lj_api.c:1296)
==20489== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20489== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20489== by 0x8152E9D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==20489== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20489== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20489== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20489== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20489== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20489== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20489== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20489== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20489== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20489== by 0x8062D4E: main (nginx.c:382)
==20489==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_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_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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)
035-gmatch.t TEST 28: UTF-8 mode with UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused ==20494== Invalid read of size 4
==20494== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20494== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20494== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20494== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20494== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20494== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20494== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20494== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20494== by 0x8062D4E: main (nginx.c:382)
==20494== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20494==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
035-gmatch.t TEST 28: UTF-8 mode with UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused ==20494==
==20494== Process terminating with default action of signal 11 (SIGSEGV)
==20494== Access not within mapped region at address 0x0
==20494== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20494== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20494== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20494== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20494== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20494== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20494== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20494== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20494== by 0x8062D4E: main (nginx.c:382)
==20494== If you believe this happened as a result of a stack
==20494== overflow in your program's main thread (unlikely but
==20494== possible), you can try to increase the size of the
==20494== main thread stack using the --main-stacksize= flag.
==20494== The main thread stack size used in this run was 8388608.
==20494== 1,024 bytes in 1 blocks are definitely lost in loss record 2,766 of 2,869
==20494== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20494== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20494== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20494== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20494== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20494== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20494== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20494== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20494== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20494== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20494== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20494== by 0x40BB675: trace_state (lj_trace.c:690)
==20494== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20494== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20494== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20494== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20494== by 0x407FA29: lua_resume (lj_api.c:1296)
==20494== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20494== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20494== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20494== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20494== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20494== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20494== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20494== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20494== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20494== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20494== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20494== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20494== by 0x8062D4E: main (nginx.c:382)
==20494==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 19: gmatch (empty matched string) - Can't connect to 127.0.0.1:1984: Connection refused ==20499== Invalid read of size 4
==20499== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20499== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20499== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20499== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20499== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20499== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20499== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20499== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20499== by 0x8062D4E: main (nginx.c:382)
==20499== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20499==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
035-gmatch.t TEST 19: gmatch (empty matched string) - Can't connect to 127.0.0.1:1984: Connection refused ==20499==
==20499== Process terminating with default action of signal 11 (SIGSEGV)
==20499== Access not within mapped region at address 0x0
==20499== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20499== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20499== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20499== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20499== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20499== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20499== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20499== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20499== by 0x8062D4E: main (nginx.c:382)
==20499== If you believe this happened as a result of a stack
==20499== overflow in your program's main thread (unlikely but
==20499== possible), you can try to increase the size of the
==20499== main thread stack using the --main-stacksize= flag.
==20499== The main thread stack size used in this run was 8388608.
==20499== 1,024 bytes in 1 blocks are definitely lost in loss record 2,742 of 2,843
==20499== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20499== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20499== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20499== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20499== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20499== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20499== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20499== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20499== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20499== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20499== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20499== by 0x40BB675: trace_state (lj_trace.c:690)
==20499== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20499== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20499== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20499== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20499== by 0x407FA29: lua_resume (lj_api.c:1296)
==20499== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20499== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20499== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20499== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20499== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20499== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20499== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20499== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20499== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20499== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20499== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20499== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20499== by 0x8062D4E: main (nginx.c:382)
==20499==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 26: bad UTF-8 - Can't connect to 127.0.0.1:1984: Connection refused ==20504== Invalid read of size 4
==20504== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20504== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20504== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20504== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20504== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20504== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20504== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20504== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20504== by 0x8062D4E: main (nginx.c:382)
==20504== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20504==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
035-gmatch.t TEST 26: bad UTF-8 - Can't connect to 127.0.0.1:1984: Connection refused ==20504==
==20504== Process terminating with default action of signal 11 (SIGSEGV)
==20504== Access not within mapped region at address 0x0
==20504== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20504== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20504== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20504== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20504== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20504== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20504== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20504== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20504== by 0x8062D4E: main (nginx.c:382)
==20504== If you believe this happened as a result of a stack
==20504== overflow in your program's main thread (unlikely but
==20504== possible), you can try to increase the size of the
==20504== main thread stack using the --main-stacksize= flag.
==20504== The main thread stack size used in this run was 8388608.
==20504== 1,024 bytes in 1 blocks are definitely lost in loss record 2,747 of 2,849
==20504== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20504== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20504== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20504== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20504== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20504== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20504== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20504== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20504== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20504== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20504== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20504== by 0x40BB675: trace_state (lj_trace.c:690)
==20504== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20504== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20504== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20504== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20504== by 0x407FA29: lua_resume (lj_api.c:1296)
==20504== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20504== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20504== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20504== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20504== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20504== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20504== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20504== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20504== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20504== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20504== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20504== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20504== by 0x8062D4E: main (nginx.c:382)
==20504==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 20: gmatch with named pattern - Can't connect to 127.0.0.1:1984: Connection refused ==20509== Invalid read of size 4
==20509== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20509== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20509== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20509== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20509== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20509== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20509== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20509== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20509== by 0x8062D4E: main (nginx.c:382)
==20509== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20509==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
035-gmatch.t TEST 20: gmatch with named pattern - Can't connect to 127.0.0.1:1984: Connection refused ==20509==
==20509== Process terminating with default action of signal 11 (SIGSEGV)
==20509== Access not within mapped region at address 0x0
==20509== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20509== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20509== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20509== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20509== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20509== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20509== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20509== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20509== by 0x8062D4E: main (nginx.c:382)
==20509== If you believe this happened as a result of a stack
==20509== overflow in your program's main thread (unlikely but
==20509== possible), you can try to increase the size of the
==20509== main thread stack using the --main-stacksize= flag.
==20509== The main thread stack size used in this run was 8388608.
==20509== 1,024 bytes in 1 blocks are definitely lost in loss record 2,919 of 3,043
==20509== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20509== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20509== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20509== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20509== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20509== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20509== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20509== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20509== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20509== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20509== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20509== by 0x40BB675: trace_state (lj_trace.c:690)
==20509== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20509== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20509== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20509== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20509== by 0x407FA29: lua_resume (lj_api.c:1296)
==20509== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20509== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20509== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20509== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20509== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20509== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20509== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20509== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20509== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20509== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20509== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20509== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20509== by 0x8062D4E: main (nginx.c:382)
==20509==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 23: named captures are empty - Can't connect to 127.0.0.1:1984: Connection refused ==20514== Invalid read of size 4
==20514== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20514== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20514== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20514== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20514== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20514== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20514== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20514== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20514== by 0x8062D4E: main (nginx.c:382)
==20514== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20514==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
035-gmatch.t TEST 23: named captures are empty - Can't connect to 127.0.0.1:1984: Connection refused ==20514==
==20514== Process terminating with default action of signal 11 (SIGSEGV)
==20514== Access not within mapped region at address 0x0
==20514== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20514== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20514== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20514== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20514== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20514== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20514== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20514== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20514== by 0x8062D4E: main (nginx.c:382)
==20514== If you believe this happened as a result of a stack
==20514== overflow in your program's main thread (unlikely but
==20514== possible), you can try to increase the size of the
==20514== main thread stack using the --main-stacksize= flag.
==20514== The main thread stack size used in this run was 8388608.
==20514== 1,024 bytes in 1 blocks are definitely lost in loss record 2,774 of 2,877
==20514== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20514== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20514== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20514== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20514== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20514== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20514== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20514== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20514== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20514== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20514== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20514== by 0x40BB675: trace_state (lj_trace.c:690)
==20514== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20514== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20514== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20514== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20514== by 0x407FA29: lua_resume (lj_api.c:1296)
==20514== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20514== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20514== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20514== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20514== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20514== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20514== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20514== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20514== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20514== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20514== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20514== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20514== by 0x8062D4E: main (nginx.c:382)
==20514==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: gmatch - Can't connect to 127.0.0.1:1984: Connection refused ==20519== Invalid read of size 4
==20519== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20519== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20519== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20519== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20519== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20519== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20519== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20519== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20519== by 0x8062D4E: main (nginx.c:382)
==20519== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20519==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
035-gmatch.t TEST 1: gmatch - Can't connect to 127.0.0.1:1984: Connection refused ==20519==
==20519== Process terminating with default action of signal 11 (SIGSEGV)
==20519== Access not within mapped region at address 0x0
==20519== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20519== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20519== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20519== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20519== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20519== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20519== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20519== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20519== by 0x8062D4E: main (nginx.c:382)
==20519== If you believe this happened as a result of a stack
==20519== overflow in your program's main thread (unlikely but
==20519== possible), you can try to increase the size of the
==20519== main thread stack using the --main-stacksize= flag.
==20519== The main thread stack size used in this run was 8388608.
==20519== 1,024 bytes in 1 blocks are definitely lost in loss record 2,742 of 2,845
==20519== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20519== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20519== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20519== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20519== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20519== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20519== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20519== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20519== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20519== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20519== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20519== by 0x40BB675: trace_state (lj_trace.c:690)
==20519== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20519== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20519== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20519== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20519== by 0x407FA29: lua_resume (lj_api.c:1296)
==20519== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20519== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20519== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20519== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20519== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20519== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20519== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20519== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20519== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20519== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20519== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20519== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20519== by 0x8062D4E: main (nginx.c:382)
==20519==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 6: anchored match (succeeded) - Can't connect to 127.0.0.1:1984: Connection refused ==20524== Invalid read of size 4
==20524== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20524== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20524== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20524== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20524== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20524== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20524== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20524== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20524== by 0x8062D4E: main (nginx.c:382)
==20524== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20524==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
035-gmatch.t TEST 6: anchored match (succeeded) - Can't connect to 127.0.0.1:1984: Connection refused ==20524==
==20524== Process terminating with default action of signal 11 (SIGSEGV)
==20524== Access not within mapped region at address 0x0
==20524== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20524== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20524== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20524== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20524== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20524== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20524== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20524== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20524== by 0x8062D4E: main (nginx.c:382)
==20524== If you believe this happened as a result of a stack
==20524== overflow in your program's main thread (unlikely but
==20524== possible), you can try to increase the size of the
==20524== main thread stack using the --main-stacksize= flag.
==20524== The main thread stack size used in this run was 8388608.
==20524== 1,024 bytes in 1 blocks are definitely lost in loss record 2,774 of 2,877
==20524== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20524== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20524== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20524== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20524== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20524== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20524== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20524== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20524== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20524== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20524== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20524== by 0x40BB675: trace_state (lj_trace.c:690)
==20524== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20524== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20524== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20524== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20524== by 0x407FA29: lua_resume (lj_api.c:1296)
==20524== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20524== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20524== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20524== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20524== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20524== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20524== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20524== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20524== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20524== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20524== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20524== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20524== by 0x8062D4E: main (nginx.c:382)
==20524==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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)
036-sub.t TEST 26: UTF-8 mode with UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused ==20532== Invalid read of size 4
==20532== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20532== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20532== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20532== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20532== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20532== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20532== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20532== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20532== by 0x8062D4E: main (nginx.c:382)
==20532== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20532==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
036-sub.t TEST 26: UTF-8 mode with UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused ==20532==
==20532== Process terminating with default action of signal 11 (SIGSEGV)
==20532== Access not within mapped region at address 0x0
==20532== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20532== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20532== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20532== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20532== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20532== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20532== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20532== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20532== by 0x8062D4E: main (nginx.c:382)
==20532== If you believe this happened as a result of a stack
==20532== overflow in your program's main thread (unlikely but
==20532== possible), you can try to increase the size of the
==20532== main thread stack using the --main-stacksize= flag.
==20532== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 31: ngx.re.gsub: recursive calling (github #445) - Can't connect to 127.0.0.1:1984: Connection refused ==20534== Invalid read of size 4
==20534== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20534== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20534== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20534== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20534== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20534== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20534== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20534== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20534== by 0x8062D4E: main (nginx.c:382)
==20534== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20534==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
036-sub.t TEST 31: ngx.re.gsub: recursive calling (github #445) - Can't connect to 127.0.0.1:1984: Connection refused ==20534==
==20534== Process terminating with default action of signal 11 (SIGSEGV)
==20534== Access not within mapped region at address 0x0
==20534== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20534== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20534== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20534== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20534== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20534== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20534== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20534== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20534== by 0x8062D4E: main (nginx.c:382)
==20534== If you believe this happened as a result of a stack
==20534== overflow in your program's main thread (unlikely but
==20534== possible), you can try to increase the size of the
==20534== main thread stack using the --main-stacksize= flag.
==20534== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 23: bad pattern - Can't connect to 127.0.0.1:1984: Connection refused ==20536== Invalid read of size 4
==20536== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20536== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20536== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20536== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20536== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20536== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20536== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20536== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20536== by 0x8062D4E: main (nginx.c:382)
==20536== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20536==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
036-sub.t TEST 23: bad pattern - Can't connect to 127.0.0.1:1984: Connection refused ==20536==
==20536== Process terminating with default action of signal 11 (SIGSEGV)
==20536== Access not within mapped region at address 0x0
==20536== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20536== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20536== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20536== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20536== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20536== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20536== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20536== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20536== by 0x8062D4E: main (nginx.c:382)
==20536== If you believe this happened as a result of a stack
==20536== overflow in your program's main thread (unlikely but
==20536== possible), you can try to increase the size of the
==20536== main thread stack using the --main-stacksize= flag.
==20536== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 6: matched and with bracketed variables - Can't connect to 127.0.0.1:1984: Connection refused ==20538== Invalid read of size 4
==20538== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20538== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20538== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20538== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20538== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20538== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20538== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20538== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20538== by 0x8062D4E: main (nginx.c:382)
==20538== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20538==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
036-sub.t TEST 6: matched and with bracketed variables - Can't connect to 127.0.0.1:1984: Connection refused ==20538==
==20538== Process terminating with default action of signal 11 (SIGSEGV)
==20538== Access not within mapped region at address 0x0
==20538== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20538== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20538== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20538== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20538== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20538== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20538== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20538== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20538== by 0x8062D4E: main (nginx.c:382)
==20538== If you believe this happened as a result of a stack
==20538== overflow in your program's main thread (unlikely but
==20538== possible), you can try to increase the size of the
==20538== main thread stack using the --main-stacksize= flag.
==20538== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 22: $0 without parens - Can't connect to 127.0.0.1:1984: Connection refused ==20540== Invalid read of size 4
==20540== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20540== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20540== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20540== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20540== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20540== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20540== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20540== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20540== by 0x8062D4E: main (nginx.c:382)
==20540== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20540==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
036-sub.t TEST 22: $0 without parens - Can't connect to 127.0.0.1:1984: Connection refused ==20540==
==20540== Process terminating with default action of signal 11 (SIGSEGV)
==20540== Access not within mapped region at address 0x0
==20540== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20540== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20540== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20540== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20540== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20540== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20540== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20540== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20540== by 0x8062D4E: main (nginx.c:382)
==20540== If you believe this happened as a result of a stack
==20540== overflow in your program's main thread (unlikely but
==20540== possible), you can try to increase the size of the
==20540== main thread stack using the --main-stacksize= flag.
==20540== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 27: just hit match limit - Can't connect to 127.0.0.1:1984: Connection refused ==20542== Invalid read of size 4
==20542== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20542== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20542== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20542== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20542== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20542== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20542== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20542== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20542== by 0x8062D4E: main (nginx.c:382)
==20542== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20542==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
036-sub.t TEST 27: just hit match limit - Can't connect to 127.0.0.1:1984: Connection refused ==20542==
==20542== Process terminating with default action of signal 11 (SIGSEGV)
==20542== Access not within mapped region at address 0x0
==20542== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20542== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20542== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20542== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20542== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20542== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20542== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20542== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20542== by 0x8062D4E: main (nginx.c:382)
==20542== If you believe this happened as a result of a stack
==20542== overflow in your program's main thread (unlikely but
==20542== possible), you can try to increase the size of the
==20542== main thread stack using the --main-stacksize= flag.
==20542== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 15: function replace (failed) - Can't connect to 127.0.0.1:1984: Connection refused ==20544== Invalid read of size 4
==20544== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20544== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20544== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20544== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20544== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20544== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20544== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20544== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20544== by 0x8062D4E: main (nginx.c:382)
==20544== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20544==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
036-sub.t TEST 15: function replace (failed) - Can't connect to 127.0.0.1:1984: Connection refused ==20544==
==20544== Process terminating with default action of signal 11 (SIGSEGV)
==20544== Access not within mapped region at address 0x0
==20544== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20544== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20544== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20544== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20544== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20544== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20544== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20544== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20544== by 0x8062D4E: main (nginx.c:382)
==20544== If you believe this happened as a result of a stack
==20544== overflow in your program's main thread (unlikely but
==20544== possible), you can try to increase the size of the
==20544== main thread stack using the --main-stacksize= flag.
==20544== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 29: bug: sub incorrectly swallowed a character is the first character - Can't connect to 127.0.0.1:1984: Connection refused ==20546== Invalid read of size 4
==20546== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20546== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20546== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20546== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20546== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20546== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20546== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20546== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20546== by 0x8062D4E: main (nginx.c:382)
==20546== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20546==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
036-sub.t TEST 29: bug: sub incorrectly swallowed a character is the first character - Can't connect to 127.0.0.1:1984: Connection refused ==20546==
==20546== Process terminating with default action of signal 11 (SIGSEGV)
==20546== Access not within mapped region at address 0x0
==20546== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20546== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20546== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20546== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20546== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20546== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20546== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20546== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20546== by 0x8062D4E: main (nginx.c:382)
==20546== If you believe this happened as a result of a stack
==20546== overflow in your program's main thread (unlikely but
==20546== possible), you can try to increase the size of the
==20546== main thread stack using the --main-stacksize= flag.
==20546== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 20: matched and with variables using named patterns in func - Can't connect to 127.0.0.1:1984: Connection refused ==20548== Invalid read of size 4
==20548== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20548== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20548== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20548== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20548== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20548== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20548== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20548== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20548== by 0x8062D4E: main (nginx.c:382)
==20548== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20548==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
036-sub.t TEST 20: matched and with variables using named patterns in func - Can't connect to 127.0.0.1:1984: Connection refused ==20548==
==20548== Process terminating with default action of signal 11 (SIGSEGV)
==20548== Access not within mapped region at address 0x0
==20548== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20548== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20548== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20548== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20548== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20548== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20548== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20548== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20548== by 0x8062D4E: main (nginx.c:382)
==20548== If you believe this happened as a result of a stack
==20548== overflow in your program's main thread (unlikely but
==20548== possible), you can try to increase the size of the
==20548== main thread stack using the --main-stacksize= flag.
==20548== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 13: anchored match - Can't connect to 127.0.0.1:1984: Connection refused ==20550== Invalid read of size 4
==20550== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20550== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20550== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20550== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20550== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20550== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20550== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20550== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20550== by 0x8062D4E: main (nginx.c:382)
==20550== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20550==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
036-sub.t TEST 13: anchored match - Can't connect to 127.0.0.1:1984: Connection refused ==20550==
==20550== Process terminating with default action of signal 11 (SIGSEGV)
==20550== Access not within mapped region at address 0x0
==20550== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20550== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20550== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20550== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20550== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20550== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20550== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20550== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20550== by 0x8062D4E: main (nginx.c:382)
==20550== If you believe this happened as a result of a stack
==20550== overflow in your program's main thread (unlikely but
==20550== possible), you can try to increase the size of the
==20550== main thread stack using the --main-stacksize= flag.
==20550== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 3: matched and with variables - Can't connect to 127.0.0.1:1984: Connection refused ==20552== Invalid read of size 4
==20552== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20552== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20552== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20552== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20552== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20552== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20552== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20552== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20552== by 0x8062D4E: main (nginx.c:382)
==20552== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20552==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
036-sub.t TEST 3: matched and with variables - Can't connect to 127.0.0.1:1984: Connection refused ==20552==
==20552== Process terminating with default action of signal 11 (SIGSEGV)
==20552== Access not within mapped region at address 0x0
==20552== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20552== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20552== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20552== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20552== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20552== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20552== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20552== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20552== by 0x8062D4E: main (nginx.c:382)
==20552== If you believe this happened as a result of a stack
==20552== overflow in your program's main thread (unlikely but
==20552== possible), you can try to increase the size of the
==20552== main thread stack using the --main-stacksize= flag.
==20552== 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 (aborted) '
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 19: matched and with variables w/o using named patterns in sub - Can't connect to 127.0.0.1:1984: Connection refused ==20554== Invalid read of size 4
==20554== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20554== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20554== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20554== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20554== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20554== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20554== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20554== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20554== by 0x8062D4E: main (nginx.c:382)
==20554== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20554==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
036-sub.t TEST 19: matched and with variables w/o using named patterns in sub - Can't connect to 127.0.0.1:1984: Connection refused ==20554==
==20554== Process terminating with default action of signal 11 (SIGSEGV)
==20554== Access not within mapped region at address 0x0
==20554== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20554== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20554== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20554== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20554== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20554== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20554== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20554== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20554== by 0x8062D4E: main (nginx.c:382)
==20554== If you believe this happened as a result of a stack
==20554== overflow in your program's main thread (unlikely but
==20554== possible), you can try to increase the size of the
==20554== main thread stack using the --main-stacksize= flag.
==20554== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
036-sub.t TEST 12: non-anchored match - Can't connect to 127.0.0.1:1984: Connection refused ==20558== Invalid read of size 4
==20558== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20558== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20558== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20558== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20558== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20558== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20558== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20558== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20558== by 0x8062D4E: main (nginx.c:382)
==20558== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20558==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
036-sub.t TEST 12: non-anchored match - Can't connect to 127.0.0.1:1984: Connection refused ==20558==
==20558== Process terminating with default action of signal 11 (SIGSEGV)
==20558== Access not within mapped region at address 0x0
==20558== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20558== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20558== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20558== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20558== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20558== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20558== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20558== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20558== by 0x8062D4E: main (nginx.c:382)
==20558== If you believe this happened as a result of a stack
==20558== overflow in your program's main thread (unlikely but
==20558== possible), you can try to increase the size of the
==20558== main thread stack using the --main-stacksize= flag.
==20558== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 17: use number to replace - Can't connect to 127.0.0.1:1984: Connection refused ==20560== Invalid read of size 4
==20560== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20560== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20560== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20560== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20560== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20560== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20560== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20560== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20560== by 0x8062D4E: main (nginx.c:382)
==20560== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20560==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
036-sub.t TEST 17: use number to replace - Can't connect to 127.0.0.1:1984: Connection refused ==20560==
==20560== Process terminating with default action of signal 11 (SIGSEGV)
==20560== Access not within mapped region at address 0x0
==20560== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20560== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20560== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20560== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20560== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20560== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20560== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20560== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20560== by 0x8062D4E: main (nginx.c:382)
==20560== If you believe this happened as a result of a stack
==20560== overflow in your program's main thread (unlikely but
==20560== possible), you can try to increase the size of the
==20560== main thread stack using the --main-stacksize= flag.
==20560== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 25: UTF-8 mode without UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused ==20562== Invalid read of size 4
==20562== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20562== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20562== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20562== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20562== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20562== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20562== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20562== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20562== by 0x8062D4E: main (nginx.c:382)
==20562== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20562==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
036-sub.t TEST 25: UTF-8 mode without UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused ==20562==
==20562== Process terminating with default action of signal 11 (SIGSEGV)
==20562== Access not within mapped region at address 0x0
==20562== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20562== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20562== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20562== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20562== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20562== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20562== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20562== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20562== by 0x8062D4E: main (nginx.c:382)
==20562== If you believe this happened as a result of a stack
==20562== overflow in your program's main thread (unlikely but
==20562== possible), you can try to increase the size of the
==20562== main thread stack using the --main-stacksize= flag.
==20562== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 8: matched and with bracketed variables (unmatched brackets) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20564== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
036-sub.t TEST 8: matched and with bracketed variables (unmatched brackets) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20564== by 0x8062D4E: main (nginx.c:382)
==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.

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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 8: matched and with bracketed variables (unmatched brackets) - pattern "the closing bracket in "134" variable is missing" should match a line in error.log (req 1)
036-sub.t TEST 2: not matched - Can't connect to 127.0.0.1:1984: Connection refused ==20566== Invalid read of size 4
==20566== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20566== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20566== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20566== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20566== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20566== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20566== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20566== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20566== by 0x8062D4E: main (nginx.c:382)
==20566== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20566==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
036-sub.t TEST 2: not matched - Can't connect to 127.0.0.1:1984: Connection refused ==20566==
==20566== Process terminating with default action of signal 11 (SIGSEGV)
==20566== Access not within mapped region at address 0x0
==20566== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20566== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20566== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20566== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20566== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20566== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20566== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20566== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20566== by 0x8062D4E: main (nginx.c:382)
==20566== If you believe this happened as a result of a stack
==20566== overflow in your program's main thread (unlikely but
==20566== possible), you can try to increase the size of the
==20566== main thread stack using the --main-stacksize= flag.
==20566== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 9: matched and with bracketed variables (unmatched brackets) - Can't connect to 127.0.0.1:1984: Connection refused ==20568== Invalid read of size 4
==20568== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20568== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20568== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20568== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20568== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20568== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20568== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20568== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20568== by 0x8062D4E: main (nginx.c:382)
==20568== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20568==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
036-sub.t TEST 9: matched and with bracketed variables (unmatched brackets) - Can't connect to 127.0.0.1:1984: Connection refused ==20568==
==20568== Process terminating with default action of signal 11 (SIGSEGV)
==20568== Access not within mapped region at address 0x0
==20568== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20568== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20568== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20568== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20568== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20568== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20568== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20568== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20568== by 0x8062D4E: main (nginx.c:382)
==20568== If you believe this happened as a result of a stack
==20568== overflow in your program's main thread (unlikely but
==20568== possible), you can try to increase the size of the
==20568== main thread stack using the --main-stacksize= flag.
==20568== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 9: matched and with bracketed variables (unmatched brackets) - pattern "lua script: invalid capturing variable name found in "[$0] [$1] [${2}] [$3] [${"" should match a line in error.log (req 1)
036-sub.t TEST 11: matched but w/o variables and with literal $ - Can't connect to 127.0.0.1:1984: Connection refused ==20570== Invalid read of size 4
==20570== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20570== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20570== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20570== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20570== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20570== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20570== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20570== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20570== by 0x8062D4E: main (nginx.c:382)
==20570== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20570==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
036-sub.t TEST 11: matched but w/o variables and with literal $ - Can't connect to 127.0.0.1:1984: Connection refused ==20570==
==20570== Process terminating with default action of signal 11 (SIGSEGV)
==20570== Access not within mapped region at address 0x0
==20570== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20570== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20570== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20570== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20570== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20570== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20570== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20570== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20570== by 0x8062D4E: main (nginx.c:382)
==20570== If you believe this happened as a result of a stack
==20570== overflow in your program's main thread (unlikely but
==20570== possible), you can try to increase the size of the
==20570== main thread stack using the --main-stacksize= flag.
==20570== 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 $ - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 7: matched and with bracketed variables (unmatched brackets) - Can't connect to 127.0.0.1:1984: Connection refused ==20572== Invalid read of size 4
==20572== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20572== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20572== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20572== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20572== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20572== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20572== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20572== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20572== by 0x8062D4E: main (nginx.c:382)
==20572== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20572==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
036-sub.t TEST 7: matched and with bracketed variables (unmatched brackets) - Can't connect to 127.0.0.1:1984: Connection refused ==20572==
==20572== Process terminating with default action of signal 11 (SIGSEGV)
==20572== Access not within mapped region at address 0x0
==20572== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20572== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20572== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20572== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20572== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20572== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20572== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20572== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20572== by 0x8062D4E: main (nginx.c:382)
==20572== If you believe this happened as a result of a stack
==20572== overflow in your program's main thread (unlikely but
==20572== possible), you can try to increase the size of the
==20572== main thread stack using the --main-stacksize= flag.
==20572== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 7: matched and with bracketed variables (unmatched brackets) - pattern "the closing bracket in "134" variable is missing" should match a line in error.log (req 1)
036-sub.t TEST 5: matched and with named variables (bracketed) - Can't connect to 127.0.0.1:1984: Connection refused ==20574== Invalid read of size 4
==20574== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20574== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20574== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20574== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20574== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20574== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20574== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20574== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20574== by 0x8062D4E: main (nginx.c:382)
==20574== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20574==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
036-sub.t TEST 5: matched and with named variables (bracketed) - Can't connect to 127.0.0.1:1984: Connection refused ==20574==
==20574== Process terminating with default action of signal 11 (SIGSEGV)
==20574== Access not within mapped region at address 0x0
==20574== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20574== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20574== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20574== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20574== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20574== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20574== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20574== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20574== by 0x8062D4E: main (nginx.c:382)
==20574== If you believe this happened as a result of a stack
==20574== overflow in your program's main thread (unlikely but
==20574== possible), you can try to increase the size of the
==20574== main thread stack using the --main-stacksize= flag.
==20574== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 5: matched and with named variables (bracketed) - pattern "attempt to use named capturing variable "hello" (named captures not supported yet)" should match a line in error.log (req 1)
036-sub.t TEST 4: matched and with named variables - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20576== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
036-sub.t TEST 4: matched and with named variables - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20576== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 4: matched and with named variables - pattern "attempt to use named capturing variable "hello" (named captures not supported yet)" should match a line in error.log (req 1)
036-sub.t TEST 14: function replace - Can't connect to 127.0.0.1:1984: Connection refused ==20578== Invalid read of size 4
==20578== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20578== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20578== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20578== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20578== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20578== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20578== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20578== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20578== by 0x8062D4E: main (nginx.c:382)
==20578== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20578==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
036-sub.t TEST 14: function replace - Can't connect to 127.0.0.1:1984: Connection refused ==20578==
==20578== Process terminating with default action of signal 11 (SIGSEGV)
==20578== Access not within mapped region at address 0x0
==20578== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20578== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20578== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20578== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20578== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20578== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20578== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20578== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20578== by 0x8062D4E: main (nginx.c:382)
==20578== If you believe this happened as a result of a stack
==20578== overflow in your program's main thread (unlikely but
==20578== possible), you can try to increase the size of the
==20578== main thread stack using the --main-stacksize= flag.
==20578== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 28: just not hit match limit - Can't connect to 127.0.0.1:1984: Connection refused ==20580== Invalid read of size 4
==20580== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20580== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20580== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20580== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20580== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20580== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20580== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20580== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20580== by 0x8062D4E: main (nginx.c:382)
==20580== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20580==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
036-sub.t TEST 28: just not hit match limit - Can't connect to 127.0.0.1:1984: Connection refused ==20580==
==20580== Process terminating with default action of signal 11 (SIGSEGV)
==20580== Access not within mapped region at address 0x0
==20580== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20580== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20580== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20580== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20580== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20580== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20580== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20580== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20580== by 0x8062D4E: main (nginx.c:382)
==20580== If you believe this happened as a result of a stack
==20580== overflow in your program's main thread (unlikely but
==20580== possible), you can try to increase the size of the
==20580== main thread stack using the --main-stacksize= flag.
==20580== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: matched but w/o variables - Can't connect to 127.0.0.1:1984: Connection refused ==20582== Invalid read of size 4
==20582== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20582== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20582== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20582== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20582== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20582== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20582== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20582== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20582== by 0x8062D4E: main (nginx.c:382)
==20582== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20582==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
036-sub.t TEST 1: matched but w/o variables - Can't connect to 127.0.0.1:1984: Connection refused ==20582==
==20582== Process terminating with default action of signal 11 (SIGSEGV)
==20582== Access not within mapped region at address 0x0
==20582== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20582== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20582== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20582== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20582== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20582== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20582== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20582== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20582== by 0x8062D4E: main (nginx.c:382)
==20582== If you believe this happened as a result of a stack
==20582== overflow in your program's main thread (unlikely but
==20582== possible), you can try to increase the size of the
==20582== main thread stack using the --main-stacksize= flag.
==20582== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 10: trailing $ - Can't connect to 127.0.0.1:1984: Connection refused ==20584== Invalid read of size 4
==20584== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20584== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20584== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20584== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20584== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20584== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20584== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20584== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20584== by 0x8062D4E: main (nginx.c:382)
==20584== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20584==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
036-sub.t TEST 10: trailing $ - Can't connect to 127.0.0.1:1984: Connection refused ==20584==
==20584== Process terminating with default action of signal 11 (SIGSEGV)
==20584== Access not within mapped region at address 0x0
==20584== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20584== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20584== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20584== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20584== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20584== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20584== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20584== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20584== by 0x8062D4E: main (nginx.c:382)
==20584== If you believe this happened as a result of a stack
==20584== overflow in your program's main thread (unlikely but
==20584== possible), you can try to increase the size of the
==20584== main thread stack using the --main-stacksize= flag.
==20584== 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 $ - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 10: trailing $ - pattern "lua script: invalid capturing variable name found in "[$0] [$1] [${2}] [$3] [$"" should match a line in error.log (req 1)
036-sub.t TEST 30: bug: sub incorrectly swallowed a character is not the first character - Can't connect to 127.0.0.1:1984: Connection refused ==20586== Invalid read of size 4
==20586== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20586== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20586== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20586== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20586== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20586== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20586== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20586== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20586== by 0x8062D4E: main (nginx.c:382)
==20586== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20586==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
036-sub.t TEST 30: bug: sub incorrectly swallowed a character is not the first character - Can't connect to 127.0.0.1:1984: Connection refused ==20586==
==20586== Process terminating with default action of signal 11 (SIGSEGV)
==20586== Access not within mapped region at address 0x0
==20586== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20586== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20586== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20586== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20586== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20586== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20586== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20586== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20586== by 0x8062D4E: main (nginx.c:382)
==20586== If you believe this happened as a result of a stack
==20586== overflow in your program's main thread (unlikely but
==20586== possible), you can try to increase the size of the
==20586== main thread stack using the --main-stacksize= flag.
==20586== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 24: bad UTF-8 - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20588== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
036-sub.t TEST 24: bad UTF-8 - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20588== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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)'
039-sub-o.t TEST 17: use number to replace - Can't connect to 127.0.0.1:1984: Connection refused ==20654== Invalid read of size 4
==20654== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20654== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20654== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20654== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20654== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20654== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20654== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20654== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20654== by 0x8062D4E: main (nginx.c:382)
==20654== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20654==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
039-sub-o.t TEST 17: use number to replace - Can't connect to 127.0.0.1:1984: Connection refused ==20654==
==20654== Process terminating with default action of signal 11 (SIGSEGV)
==20654== Access not within mapped region at address 0x0
==20654== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20654== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20654== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20654== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20654== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20654== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20654== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20654== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20654== by 0x8062D4E: main (nginx.c:382)
==20654== If you believe this happened as a result of a stack
==20654== overflow in your program's main thread (unlikely but
==20654== possible), you can try to increase the size of the
==20654== main thread stack using the --main-stacksize= flag.
==20654== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 6: matched and with bracketed variables - Can't connect to 127.0.0.1:1984: Connection refused ==20656== Invalid read of size 4
==20656== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20656== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20656== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20656== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20656== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20656== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20656== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20656== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20656== by 0x8062D4E: main (nginx.c:382)
==20656== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20656==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
039-sub-o.t TEST 6: matched and with bracketed variables - Can't connect to 127.0.0.1:1984: Connection refused ==20656==
==20656== Process terminating with default action of signal 11 (SIGSEGV)
==20656== Access not within mapped region at address 0x0
==20656== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20656== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20656== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20656== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20656== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20656== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20656== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20656== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20656== by 0x8062D4E: main (nginx.c:382)
==20656== If you believe this happened as a result of a stack
==20656== overflow in your program's main thread (unlikely but
==20656== possible), you can try to increase the size of the
==20656== main thread stack using the --main-stacksize= flag.
==20656== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 9: matched and with bracketed variables (unmatched brackets) - Can't connect to 127.0.0.1:1984: Connection refused ==20658== Invalid read of size 4
==20658== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20658== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20658== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20658== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20658== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20658== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20658== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20658== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20658== by 0x8062D4E: main (nginx.c:382)
==20658== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20658==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
039-sub-o.t TEST 9: matched and with bracketed variables (unmatched brackets) - Can't connect to 127.0.0.1:1984: Connection refused ==20658==
==20658== Process terminating with default action of signal 11 (SIGSEGV)
==20658== Access not within mapped region at address 0x0
==20658== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20658== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20658== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20658== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20658== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20658== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20658== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20658== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20658== by 0x8062D4E: main (nginx.c:382)
==20658== If you believe this happened as a result of a stack
==20658== overflow in your program's main thread (unlikely but
==20658== possible), you can try to increase the size of the
==20658== main thread stack using the --main-stacksize= flag.
==20658== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 9: matched and with bracketed variables (unmatched brackets) - pattern "lua script: invalid capturing variable name found in "[$0] [$1] [${2}] [$3] [${"" should match a line in error.log (req 1)
039-sub-o.t TEST 24: matched and with variables w/o using named patterns in sub - Can't connect to 127.0.0.1:1984: Connection refused ==20660== Invalid read of size 4
==20660== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20660== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20660== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20660== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20660== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20660== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20660== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20660== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20660== by 0x8062D4E: main (nginx.c:382)
==20660== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20660==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
039-sub-o.t TEST 24: matched and with variables w/o using named patterns in sub - Can't connect to 127.0.0.1:1984: Connection refused ==20660==
==20660== Process terminating with default action of signal 11 (SIGSEGV)
==20660== Access not within mapped region at address 0x0
==20660== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20660== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20660== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20660== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20660== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20660== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20660== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20660== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20660== by 0x8062D4E: main (nginx.c:382)
==20660== If you believe this happened as a result of a stack
==20660== overflow in your program's main thread (unlikely but
==20660== possible), you can try to increase the size of the
==20660== main thread stack using the --main-stacksize= flag.
==20660== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 2: not matched - 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 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20662== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20662== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20662== by 0x8062D4E: main (nginx.c:382)
==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_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
039-sub-o.t TEST 2: not matched - 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 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20662== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20662== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20662== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
039-sub-o.t TEST 8: matched and with bracketed variables (unmatched brackets) - Can't connect to 127.0.0.1:1984: Connection refused ==20664== Invalid read of size 4
==20664== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20664== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20664== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20664== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20664== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20664== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20664== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20664== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20664== by 0x8062D4E: main (nginx.c:382)
==20664== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20664==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==20664==
==20664== Process terminating with default action of signal 11 (SIGSEGV)
==20664== Access not within mapped region at address 0x0
==20664== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20664== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20664== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20664== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20664== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20664== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20664== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20664== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20664== by 0x8062D4E: main (nginx.c:382)
==20664== If you believe this happened as a result of a stack
==20664== overflow in your program's main thread (unlikely but
==20664== possible), you can try to increase the size of the
==20664== main thread stack using the --main-stacksize= flag.
==20664== 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 (aborted) '
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 8: matched and with bracketed variables (unmatched brackets) - pattern "the closing bracket in "134" variable is missing" should match a line in error.log (req 1)
039-sub-o.t TEST 13: anchored match - Can't connect to 127.0.0.1:1984: Connection refused ==20666== Invalid read of size 4
==20666== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20666== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20666== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20666== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20666== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20666== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20666== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20666== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20666== by 0x8062D4E: main (nginx.c:382)
==20666== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20666==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
039-sub-o.t TEST 13: anchored match - Can't connect to 127.0.0.1:1984: Connection refused ==20666==
==20666== Process terminating with default action of signal 11 (SIGSEGV)
==20666== Access not within mapped region at address 0x0
==20666== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20666== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20666== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20666== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20666== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20666== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20666== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20666== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20666== by 0x8062D4E: main (nginx.c:382)
==20666== If you believe this happened as a result of a stack
==20666== overflow in your program's main thread (unlikely but
==20666== possible), you can try to increase the size of the
==20666== main thread stack using the --main-stacksize= flag.
==20666== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 7: matched and with bracketed variables (unmatched brackets) - Can't connect to 127.0.0.1:1984: Connection refused ==20668== Invalid read of size 4
==20668== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20668== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20668== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20668== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20668== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20668== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20668== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20668== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20668== by 0x8062D4E: main (nginx.c:382)
==20668== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20668==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
039-sub-o.t TEST 7: matched and with bracketed variables (unmatched brackets) - Can't connect to 127.0.0.1:1984: Connection refused ==20668==
==20668== Process terminating with default action of signal 11 (SIGSEGV)
==20668== Access not within mapped region at address 0x0
==20668== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20668== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20668== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20668== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20668== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20668== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20668== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20668== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20668== by 0x8062D4E: main (nginx.c:382)
==20668== If you believe this happened as a result of a stack
==20668== overflow in your program's main thread (unlikely but
==20668== possible), you can try to increase the size of the
==20668== main thread stack using the --main-stacksize= flag.
==20668== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 7: matched and with bracketed variables (unmatched brackets) - pattern "the closing bracket in "134" variable is missing" should match a line in error.log (req 1)
039-sub-o.t TEST 14: function replace - Can't connect to 127.0.0.1:1984: Connection refused ==20670== Invalid read of size 4
==20670== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20670== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20670== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20670== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20670== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20670== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20670== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20670== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20670== by 0x8062D4E: main (nginx.c:382)
==20670== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20670==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
039-sub-o.t TEST 14: function replace - Can't connect to 127.0.0.1:1984: Connection refused ==20670==
==20670== Process terminating with default action of signal 11 (SIGSEGV)
==20670== Access not within mapped region at address 0x0
==20670== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20670== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20670== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20670== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20670== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20670== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20670== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20670== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20670== by 0x8062D4E: main (nginx.c:382)
==20670== If you believe this happened as a result of a stack
==20670== overflow in your program's main thread (unlikely but
==20670== possible), you can try to increase the size of the
==20670== main thread stack using the --main-stacksize= flag.
==20670== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 4: matched and with named variables (bad template) - Can't connect to 127.0.0.1:1984: Connection refused ==20672== Invalid read of size 4
==20672== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20672== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20672== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20672== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20672== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20672== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20672== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20672== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20672== by 0x8062D4E: main (nginx.c:382)
==20672== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20672==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
039-sub-o.t TEST 4: matched and with named variables (bad template) - Can't connect to 127.0.0.1:1984: Connection refused ==20672==
==20672== Process terminating with default action of signal 11 (SIGSEGV)
==20672== Access not within mapped region at address 0x0
==20672== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20672== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20672== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20672== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20672== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20672== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20672== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20672== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20672== by 0x8062D4E: main (nginx.c:382)
==20672== If you believe this happened as a result of a stack
==20672== overflow in your program's main thread (unlikely but
==20672== possible), you can try to increase the size of the
==20672== main thread stack using the --main-stacksize= flag.
==20672== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 4: matched and with named variables (bad template) - pattern "attempt to use named capturing variable "hello" (named captures not supported yet)" should match a line in error.log (req 1)
039-sub-o.t TEST 3: matched and with variables - Can't connect to 127.0.0.1:1984: Connection refused ==20674== Invalid read of size 4
==20674== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20674== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20674== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20674== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20674== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20674== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20674== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20674== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20674== by 0x8062D4E: main (nginx.c:382)
==20674== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20674==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
039-sub-o.t TEST 3: matched and with variables - Can't connect to 127.0.0.1:1984: Connection refused ==20674==
==20674== Process terminating with default action of signal 11 (SIGSEGV)
==20674== Access not within mapped region at address 0x0
==20674== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20674== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20674== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20674== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20674== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20674== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20674== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20674== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20674== by 0x8062D4E: main (nginx.c:382)
==20674== If you believe this happened as a result of a stack
==20674== overflow in your program's main thread (unlikely but
==20674== possible), you can try to increase the size of the
==20674== main thread stack using the --main-stacksize= flag.
==20674== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 22: disable regex cache completely - Can't connect to 127.0.0.1:1984: Connection refused ==20676== Invalid read of size 4
==20676== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20676== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20676== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20676== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20676== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20676== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20676== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20676== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20676== by 0x8062D4E: main (nginx.c:382)
==20676== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20676==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
039-sub-o.t TEST 22: disable regex cache completely - Can't connect to 127.0.0.1:1984: Connection refused ==20676==
==20676== Process terminating with default action of signal 11 (SIGSEGV)
==20676== Access not within mapped region at address 0x0
==20676== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20676== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20676== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20676== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20676== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20676== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20676== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20676== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20676== by 0x8062D4E: main (nginx.c:382)
==20676== If you believe this happened as a result of a stack
==20676== overflow in your program's main thread (unlikely but
==20676== possible), you can try to increase the size of the
==20676== main thread stack using the --main-stacksize= flag.
==20676== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 21: exceeding regex cache max entries - Can't connect to 127.0.0.1:1984: Connection refused ==20678== Invalid read of size 4
==20678== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20678== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20678== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20678== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20678== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20678== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20678== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20678== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20678== by 0x8062D4E: main (nginx.c:382)
==20678== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20678==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
039-sub-o.t TEST 21: exceeding regex cache max entries - Can't connect to 127.0.0.1:1984: Connection refused ==20678==
==20678== Process terminating with default action of signal 11 (SIGSEGV)
==20678== Access not within mapped region at address 0x0
==20678== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20678== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20678== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20678== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20678== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20678== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20678== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20678== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20678== by 0x8062D4E: main (nginx.c:382)
==20678== If you believe this happened as a result of a stack
==20678== overflow in your program's main thread (unlikely but
==20678== possible), you can try to increase the size of the
==20678== main thread stack using the --main-stacksize= flag.
==20678== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 15: function replace (failed) - Can't connect to 127.0.0.1:1984: Connection refused ==20680== Invalid read of size 4
==20680== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20680== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20680== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20680== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20680== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20680== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20680== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20680== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20680== by 0x8062D4E: main (nginx.c:382)
==20680== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20680==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
039-sub-o.t TEST 15: function replace (failed) - Can't connect to 127.0.0.1:1984: Connection refused ==20680==
==20680== Process terminating with default action of signal 11 (SIGSEGV)
==20680== Access not within mapped region at address 0x0
==20680== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20680== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20680== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20680== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20680== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20680== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20680== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20680== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20680== by 0x8062D4E: main (nginx.c:382)
==20680== If you believe this happened as a result of a stack
==20680== overflow in your program's main thread (unlikely but
==20680== possible), you can try to increase the size of the
==20680== main thread stack using the --main-stacksize= flag.
==20680== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 5: matched and with named variables (bracketed) - Can't connect to 127.0.0.1:1984: Connection refused ==20682== Invalid read of size 4
==20682== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20682== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20682== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20682== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20682== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20682== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20682== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20682== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20682== by 0x8062D4E: main (nginx.c:382)
==20682== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20682==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
039-sub-o.t TEST 5: matched and with named variables (bracketed) - Can't connect to 127.0.0.1:1984: Connection refused ==20682==
==20682== Process terminating with default action of signal 11 (SIGSEGV)
==20682== Access not within mapped region at address 0x0
==20682== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20682== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20682== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20682== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20682== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20682== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20682== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20682== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20682== by 0x8062D4E: main (nginx.c:382)
==20682== If you believe this happened as a result of a stack
==20682== overflow in your program's main thread (unlikely but
==20682== possible), you can try to increase the size of the
==20682== main thread stack using the --main-stacksize= flag.
==20682== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 5: matched and with named variables (bracketed) - pattern "attempt to use named capturing variable "hello" (named captures not supported yet)" should match a line in error.log (req 1)
039-sub-o.t TEST 1: matched but w/o variables - Can't connect to 127.0.0.1:1984: Connection refused ==20684== Invalid read of size 4
==20684== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20684== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20684== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20684== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20684== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20684== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20684== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20684== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20684== by 0x8062D4E: main (nginx.c:382)
==20684== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20684==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
039-sub-o.t TEST 1: matched but w/o variables - Can't connect to 127.0.0.1:1984: Connection refused ==20684==
==20684== Process terminating with default action of signal 11 (SIGSEGV)
==20684== Access not within mapped region at address 0x0
==20684== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20684== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20684== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20684== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20684== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20684== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20684== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20684== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20684== by 0x8062D4E: main (nginx.c:382)
==20684== If you believe this happened as a result of a stack
==20684== overflow in your program's main thread (unlikely but
==20684== possible), you can try to increase the size of the
==20684== main thread stack using the --main-stacksize= flag.
==20684== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 11: matched but w/o variables and with literal $ - Can't connect to 127.0.0.1:1984: Connection refused ==20686== Invalid read of size 4
==20686== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20686== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20686== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20686== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20686== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20686== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20686== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20686== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20686== by 0x8062D4E: main (nginx.c:382)
==20686== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20686==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
039-sub-o.t TEST 11: matched but w/o variables and with literal $ - Can't connect to 127.0.0.1:1984: Connection refused ==20686==
==20686== Process terminating with default action of signal 11 (SIGSEGV)
==20686== Access not within mapped region at address 0x0
==20686== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20686== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20686== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20686== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20686== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20686== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20686== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20686== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20686== by 0x8062D4E: main (nginx.c:382)
==20686== If you believe this happened as a result of a stack
==20686== overflow in your program's main thread (unlikely but
==20686== possible), you can try to increase the size of the
==20686== main thread stack using the --main-stacksize= flag.
==20686== 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 $ - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 20: with regex cache (with func replace) - Can't connect to 127.0.0.1:1984: Connection refused ==20688== Invalid read of size 4
==20688== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20688== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20688== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20688== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20688== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20688== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20688== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20688== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20688== by 0x8062D4E: main (nginx.c:382)
==20688== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20688==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
039-sub-o.t TEST 20: with regex cache (with func replace) - Can't connect to 127.0.0.1:1984: Connection refused ==20688==
==20688== Process terminating with default action of signal 11 (SIGSEGV)
==20688== Access not within mapped region at address 0x0
==20688== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20688== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20688== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20688== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20688== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20688== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20688== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20688== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20688== by 0x8062D4E: main (nginx.c:382)
==20688== If you believe this happened as a result of a stack
==20688== overflow in your program's main thread (unlikely but
==20688== possible), you can try to increase the size of the
==20688== main thread stack using the --main-stacksize= flag.
==20688== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 12: non-anchored match - Can't connect to 127.0.0.1:1984: Connection refused ==20690== Invalid read of size 4
==20690== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20690== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20690== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20690== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20690== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20690== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20690== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20690== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20690== by 0x8062D4E: main (nginx.c:382)
==20690== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20690==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
039-sub-o.t TEST 12: non-anchored match - Can't connect to 127.0.0.1:1984: Connection refused ==20690==
==20690== Process terminating with default action of signal 11 (SIGSEGV)
==20690== Access not within mapped region at address 0x0
==20690== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20690== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20690== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20690== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20690== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20690== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20690== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20690== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20690== by 0x8062D4E: main (nginx.c:382)
==20690== If you believe this happened as a result of a stack
==20690== overflow in your program's main thread (unlikely but
==20690== possible), you can try to increase the size of the
==20690== main thread stack using the --main-stacksize= flag.
==20690== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 19: with regex cache (with text replace) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20692== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20692== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20692== by 0x8062D4E: main (nginx.c:382)
==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_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
039-sub-o.t TEST 19: with regex cache (with text replace) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20692== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20692== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20692== by 0x8062D4E: main (nginx.c:382)
==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.

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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 10: trailing $ - Can't connect to 127.0.0.1:1984: Connection refused ==20694== Invalid read of size 4
==20694== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20694== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20694== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20694== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20694== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20694== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20694== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20694== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20694== by 0x8062D4E: main (nginx.c:382)
==20694== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20694==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
039-sub-o.t TEST 10: trailing $ - Can't connect to 127.0.0.1:1984: Connection refused ==20694==
==20694== Process terminating with default action of signal 11 (SIGSEGV)
==20694== Access not within mapped region at address 0x0
==20694== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20694== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20694== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20694== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20694== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20694== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20694== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20694== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20694== by 0x8062D4E: main (nginx.c:382)
==20694== If you believe this happened as a result of a stack
==20694== overflow in your program's main thread (unlikely but
==20694== possible), you can try to increase the size of the
==20694== main thread stack using the --main-stacksize= flag.
==20694== 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 $ - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 10: trailing $ - pattern "lua script: invalid capturing variable name found in "[$0] [$1] [${2}] [$3] [$"" should match a line in error.log (req 1)
039-sub-o.t TEST 23: empty replace - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20696== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
039-sub-o.t TEST 23: empty replace - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20696== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 25: matched and with variables using named patterns in func - Can't connect to 127.0.0.1:1984: Connection refused ==20698== Invalid read of size 4
==20698== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20698== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20698== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20698== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20698== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20698== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20698== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20698== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20698== by 0x8062D4E: main (nginx.c:382)
==20698== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20698==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
039-sub-o.t TEST 25: matched and with variables using named patterns in func - Can't connect to 127.0.0.1:1984: Connection refused ==20698==
==20698== Process terminating with default action of signal 11 (SIGSEGV)
==20698== Access not within mapped region at address 0x0
==20698== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20698== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20698== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20698== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20698== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20698== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20698== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20698== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20698== by 0x8062D4E: main (nginx.c:382)
==20698== If you believe this happened as a result of a stack
==20698== overflow in your program's main thread (unlikely but
==20698== possible), you can try to increase the size of the
==20698== main thread stack using the --main-stacksize= flag.
==20698== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
040-gsub-o.t TEST 7: replace by script (not trimmed) - Can't connect to 127.0.0.1:1984: Connection refused ==20703== Invalid read of size 4
==20703== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20703== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20703== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20703== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20703== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20703== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20703== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20703== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20703== by 0x8062D4E: main (nginx.c:382)
==20703== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20703==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
040-gsub-o.t TEST 7: replace by script (not trimmed) - Can't connect to 127.0.0.1:1984: Connection refused ==20703==
==20703== Process terminating with default action of signal 11 (SIGSEGV)
==20703== Access not within mapped region at address 0x0
==20703== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20703== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20703== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20703== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20703== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20703== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20703== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20703== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20703== by 0x8062D4E: main (nginx.c:382)
==20703== If you believe this happened as a result of a stack
==20703== overflow in your program's main thread (unlikely but
==20703== possible), you can try to increase the size of the
==20703== main thread stack using the --main-stacksize= flag.
==20703== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 2: trimmed - Can't connect to 127.0.0.1:1984: Connection refused ==20705== Invalid read of size 4
==20705== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20705== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20705== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20705== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20705== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20705== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20705== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20705== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20705== by 0x8062D4E: main (nginx.c:382)
==20705== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20705==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
040-gsub-o.t TEST 2: trimmed - Can't connect to 127.0.0.1:1984: Connection refused ==20705==
==20705== Process terminating with default action of signal 11 (SIGSEGV)
==20705== Access not within mapped region at address 0x0
==20705== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20705== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20705== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20705== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20705== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20705== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20705== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20705== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20705== by 0x8062D4E: main (nginx.c:382)
==20705== If you believe this happened as a result of a stack
==20705== overflow in your program's main thread (unlikely but
==20705== possible), you can try to increase the size of the
==20705== main thread stack using the --main-stacksize= flag.
==20705== 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 (aborted) '
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 9: named pattern repl w/ callback - Can't connect to 127.0.0.1:1984: Connection refused ==20707== Invalid read of size 4
==20707== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20707== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20707== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20707== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20707== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20707== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20707== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20707== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20707== by 0x8062D4E: main (nginx.c:382)
==20707== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20707==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
040-gsub-o.t TEST 9: named pattern repl w/ callback - Can't connect to 127.0.0.1:1984: Connection refused ==20707==
==20707== Process terminating with default action of signal 11 (SIGSEGV)
==20707== Access not within mapped region at address 0x0
==20707== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20707== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20707== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20707== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20707== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20707== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20707== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20707== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20707== by 0x8062D4E: main (nginx.c:382)
==20707== If you believe this happened as a result of a stack
==20707== overflow in your program's main thread (unlikely but
==20707== possible), you can try to increase the size of the
==20707== main thread stack using the --main-stacksize= flag.
==20707== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
040-gsub-o.t TEST 3: not matched - Can't connect to 127.0.0.1:1984: Connection refused ==20709== Invalid read of size 4
==20709== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20709== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20709== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20709== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20709== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20709== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20709== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20709== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20709== by 0x8062D4E: main (nginx.c:382)
==20709== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20709==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
040-gsub-o.t TEST 3: not matched - Can't connect to 127.0.0.1:1984: Connection refused ==20709==
==20709== Process terminating with default action of signal 11 (SIGSEGV)
==20709== Access not within mapped region at address 0x0
==20709== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20709== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20709== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20709== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20709== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20709== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20709== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20709== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20709== by 0x8062D4E: main (nginx.c:382)
==20709== If you believe this happened as a result of a stack
==20709== overflow in your program's main thread (unlikely but
==20709== possible), you can try to increase the size of the
==20709== main thread stack using the --main-stacksize= flag.
==20709== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: sanity - 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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20711== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
040-gsub-o.t TEST 1: sanity - 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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20711== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==20713== Invalid read of size 4
==20713== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20713== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20713== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20713== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20713== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20713== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20713== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20713== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20713== by 0x8062D4E: main (nginx.c:382)
==20713== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20713==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
040-gsub-o.t TEST 8: look-behind assertion - Can't connect to 127.0.0.1:1984: Connection refused ==20713==
==20713== Process terminating with default action of signal 11 (SIGSEGV)
==20713== Access not within mapped region at address 0x0
==20713== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20713== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20713== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20713== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20713== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20713== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20713== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20713== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20713== by 0x8062D4E: main (nginx.c:382)
==20713== If you believe this happened as a result of a stack
==20713== overflow in your program's main thread (unlikely but
==20713== possible), you can try to increase the size of the
==20713== main thread stack using the --main-stacksize= flag.
==20713== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 5: replace by function (not trimmed) - Can't connect to 127.0.0.1:1984: Connection refused ==20715== Invalid read of size 4
==20715== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20715== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20715== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20715== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20715== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20715== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20715== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20715== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20715== by 0x8062D4E: main (nginx.c:382)
==20715== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20715==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
040-gsub-o.t TEST 5: replace by function (not trimmed) - Can't connect to 127.0.0.1:1984: Connection refused ==20715==
==20715== Process terminating with default action of signal 11 (SIGSEGV)
==20715== Access not within mapped region at address 0x0
==20715== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20715== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20715== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20715== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20715== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20715== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20715== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20715== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20715== by 0x8062D4E: main (nginx.c:382)
==20715== If you believe this happened as a result of a stack
==20715== overflow in your program's main thread (unlikely but
==20715== possible), you can try to increase the size of the
==20715== main thread stack using the --main-stacksize= flag.
==20715== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 4: replace by function (trimmed) - Can't connect to 127.0.0.1:1984: Connection refused ==20717== Invalid read of size 4
==20717== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20717== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20717== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20717== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20717== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20717== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20717== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20717== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20717== by 0x8062D4E: main (nginx.c:382)
==20717== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20717==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
040-gsub-o.t TEST 4: replace by function (trimmed) - Can't connect to 127.0.0.1:1984: Connection refused ==20717==
==20717== Process terminating with default action of signal 11 (SIGSEGV)
==20717== Access not within mapped region at address 0x0
==20717== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20717== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20717== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20717== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20717== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20717== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20717== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20717== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20717== by 0x8062D4E: main (nginx.c:382)
==20717== If you believe this happened as a result of a stack
==20717== overflow in your program's main thread (unlikely but
==20717== possible), you can try to increase the size of the
==20717== main thread stack using the --main-stacksize= flag.
==20717== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 6: replace by script (trimmed) - Can't connect to 127.0.0.1:1984: Connection refused ==20719== Invalid read of size 4
==20719== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20719== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20719== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20719== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20719== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20719== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20719== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20719== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20719== by 0x8062D4E: main (nginx.c:382)
==20719== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20719==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
040-gsub-o.t TEST 6: replace by script (trimmed) - Can't connect to 127.0.0.1:1984: Connection refused ==20719==
==20719== Process terminating with default action of signal 11 (SIGSEGV)
==20719== Access not within mapped region at address 0x0
==20719== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20719== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20719== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20719== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20719== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20719== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20719== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20719== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20719== by 0x8062D4E: main (nginx.c:382)
==20719== If you believe this happened as a result of a stack
==20719== overflow in your program's main thread (unlikely but
==20719== possible), you can try to increase the size of the
==20719== main thread stack using the --main-stacksize= flag.
==20719== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
043-shdict.t TEST 68: get_stale a too-long key - Can't connect to 127.0.0.1:1984: Connection refused ==20730== Invalid read of size 4
==20730== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20730== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20730== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20730== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20730== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20730== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20730== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20730== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20730== by 0x8062D4E: main (nginx.c:382)
==20730== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20730==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 68: get_stale a too-long key - Can't connect to 127.0.0.1:1984: Connection refused ==20730==
==20730== Process terminating with default action of signal 11 (SIGSEGV)
==20730== Access not within mapped region at address 0x0
==20730== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20730== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20730== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20730== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20730== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20730== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20730== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20730== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20730== by 0x8062D4E: main (nginx.c:382)
==20730== If you believe this happened as a result of a stack
==20730== overflow in your program's main thread (unlikely but
==20730== possible), you can try to increase the size of the
==20730== main thread stack using the --main-stacksize= flag.
==20730== 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 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 77: incr too long key - Can't connect to 127.0.0.1:1984: Connection refused ==20731== Invalid read of size 4
==20731== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20731== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20731== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20731== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20731== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20731== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20731== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20731== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20731== by 0x8062D4E: main (nginx.c:382)
==20731== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20731==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 77: incr too long key - Can't connect to 127.0.0.1:1984: Connection refused ==20731==
==20731== Process terminating with default action of signal 11 (SIGSEGV)
==20731== Access not within mapped region at address 0x0
==20731== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20731== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20731== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20731== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20731== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20731== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20731== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20731== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20731== by 0x8062D4E: main (nginx.c:382)
==20731== If you believe this happened as a result of a stack
==20731== overflow in your program's main thread (unlikely but
==20731== possible), you can try to increase the size of the
==20731== main thread stack using the --main-stacksize= flag.
==20731== 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 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 48: list keys in a shdict with limit larger than number of keys - Can't connect to 127.0.0.1:1984: Connection refused ==20732== Invalid read of size 4
==20732== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20732== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20732== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20732== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20732== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20732== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20732== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20732== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20732== by 0x8062D4E: main (nginx.c:382)
==20732== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20732==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 48: list keys in a shdict with limit larger than number of keys - Can't connect to 127.0.0.1:1984: Connection refused ==20732==
==20732== Process terminating with default action of signal 11 (SIGSEGV)
==20732== Access not within mapped region at address 0x0
==20732== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20732== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20732== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20732== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20732== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20732== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20732== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20732== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20732== by 0x8062D4E: main (nginx.c:382)
==20732== If you believe this happened as a result of a stack
==20732== overflow in your program's main thread (unlikely but
==20732== possible), you can try to increase the size of the
==20732== main thread stack using the --main-stacksize= flag.
==20732== 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 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 1: string key, int value - Can't connect to 127.0.0.1:1984: Connection refused ==20733== Invalid read of size 4
==20733== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20733== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20733== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20733== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20733== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20733== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20733== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20733== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20733== by 0x8062D4E: main (nginx.c:382)
==20733== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20733==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 1: string key, int value - Can't connect to 127.0.0.1:1984: Connection refused ==20733==
==20733== Process terminating with default action of signal 11 (SIGSEGV)
==20733== Access not within mapped region at address 0x0
==20733== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20733== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20733== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20733== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20733== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20733== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20733== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20733== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20733== by 0x8062D4E: main (nginx.c:382)
==20733== If you believe this happened as a result of a stack
==20733== overflow in your program's main thread (unlikely but
==20733== possible), you can try to increase the size of the
==20733== main thread stack using the --main-stacksize= flag.
==20733== 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 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 5: different-size values set to the same key - Can't connect to 127.0.0.1:1984: Connection refused ==20734== Invalid read of size 4
==20734== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20734== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20734== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20734== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20734== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20734== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20734== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20734== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20734== by 0x8062D4E: main (nginx.c:382)
==20734== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20734==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 5: different-size values set to the same key - Can't connect to 127.0.0.1:1984: Connection refused ==20734==
==20734== Process terminating with default action of signal 11 (SIGSEGV)
==20734== Access not within mapped region at address 0x0
==20734== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20734== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20734== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20734== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20734== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20734== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20734== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20734== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20734== by 0x8062D4E: main (nginx.c:382)
==20734== If you believe this happened as a result of a stack
==20734== overflow in your program's main thread (unlikely but
==20734== possible), you can try to increase the size of the
==20734== main thread stack using the --main-stacksize= flag.
==20734== 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 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 56: get_stale: expired entries can still be fetched - Can't connect to 127.0.0.1:1984: Connection refused ==20735== Invalid read of size 4
==20735== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20735== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20735== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20735== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20735== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20735== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20735== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20735== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20735== by 0x8062D4E: main (nginx.c:382)
==20735== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20735==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 56: get_stale: expired entries can still be fetched - Can't connect to 127.0.0.1:1984: Connection refused ==20735==
==20735== Process terminating with default action of signal 11 (SIGSEGV)
==20735== Access not within mapped region at address 0x0
==20735== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20735== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20735== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20735== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20735== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20735== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20735== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20735== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20735== by 0x8062D4E: main (nginx.c:382)
==20735== If you believe this happened as a result of a stack
==20735== overflow in your program's main thread (unlikely but
==20735== possible), you can try to increase the size of the
==20735== main thread stack using the --main-stacksize= flag.
==20735== 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 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 73: set & get_stale with a flag - Can't connect to 127.0.0.1:1984: Connection refused ==20736== Invalid read of size 4
==20736== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20736== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20736== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20736== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20736== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20736== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20736== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20736== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20736== by 0x8062D4E: main (nginx.c:382)
==20736== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20736==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 73: set & get_stale with a flag - Can't connect to 127.0.0.1:1984: Connection refused ==20736==
==20736== Process terminating with default action of signal 11 (SIGSEGV)
==20736== Access not within mapped region at address 0x0
==20736== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20736== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20736== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20736== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20736== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20736== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20736== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20736== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20736== by 0x8062D4E: main (nginx.c:382)
==20736== If you believe this happened as a result of a stack
==20736== overflow in your program's main thread (unlikely but
==20736== possible), you can try to increase the size of the
==20736== main thread stack using the --main-stacksize= flag.
==20736== 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 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 34: incr key (incr by 0) - Can't connect to 127.0.0.1:1984: Connection refused ==20737== Invalid read of size 4
==20737== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20737== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20737== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20737== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20737== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20737== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20737== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20737== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20737== by 0x8062D4E: main (nginx.c:382)
==20737== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20737==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 34: incr key (incr by 0) - Can't connect to 127.0.0.1:1984: Connection refused ==20737==
==20737== Process terminating with default action of signal 11 (SIGSEGV)
==20737== Access not within mapped region at address 0x0
==20737== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20737== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20737== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20737== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20737== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20737== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20737== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20737== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20737== by 0x8062D4E: main (nginx.c:382)
==20737== If you believe this happened as a result of a stack
==20737== overflow in your program's main thread (unlikely but
==20737== possible), you can try to increase the size of the
==20737== main thread stack using the --main-stacksize= flag.
==20737== 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 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 9: forcibly override other valid entries - 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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20738== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
043-shdict.t TEST 9: forcibly override other valid entries - 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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20738== by 0x8062D4E: main (nginx.c:382)
==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.
==20738== 2,048 bytes in 1 blocks are definitely lost in loss record 2,707 of 2,758
==20738== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==20738== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==20738== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20738== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20738== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==20738== by 0x408A8C6: ir_nextk (lj_ir.c:175)
==20738== by 0x408A8C6: lj_ir_kgc (lj_ir.c:286)
==20738== by 0x409CCB3: rec_call_specialize (lj_record.c:720)
==20738== by 0x409CCB3: rec_call_setup (lj_record.c:748)
==20738== by 0x409CEAC: lj_record_call (lj_record.c:761)
==20738== by 0x409F363: lj_record_ins (lj_record.c:2379)
==20738== by 0x40BB16A: trace_state (lj_trace.c:680)
==20738== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20738== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20738== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20738== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20738== by 0x407FA29: lua_resume (lj_api.c:1296)
==20738== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20738== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20738== by 0x8152E9D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==20738== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20738== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20738== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20738== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20738== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20738== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20738== by 0x8062D4E: main (nginx.c:382)
==20738==
{
<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_single_process_cycle
fun:main
}
043-shdict.t TEST 9: forcibly override other valid entries - status code ok got: ''
expected: '200'
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 79: incr a number-like string key - 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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20739== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
043-shdict.t TEST 79: incr a number-like string key - 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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20739== by 0x8062D4E: main (nginx.c:382)
==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.

043-shdict.t TEST 79: incr a number-like string key - status code ok got: ''
expected: '200'
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 11: dogs and cats dicts - Can't connect to 127.0.0.1:1984: Connection refused ==20740== Invalid read of size 4
==20740== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20740== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20740== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20740== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20740== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20740== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20740== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20740== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20740== by 0x8062D4E: main (nginx.c:382)
==20740== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20740==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 11: dogs and cats dicts - Can't connect to 127.0.0.1:1984: Connection refused ==20740==
==20740== Process terminating with default action of signal 11 (SIGSEGV)
==20740== Access not within mapped region at address 0x0
==20740== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20740== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20740== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20740== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20740== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20740== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20740== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20740== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20740== by 0x8062D4E: main (nginx.c:382)
==20740== If you believe this happened as a result of a stack
==20740== overflow in your program's main thread (unlikely but
==20740== possible), you can try to increase the size of the
==20740== main thread stack using the --main-stacksize= flag.
==20740== 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 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 64: set & get large values - Can't connect to 127.0.0.1:1984: Connection refused ==20741== Invalid read of size 4
==20741== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20741== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20741== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20741== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20741== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20741== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20741== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20741== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20741== by 0x8062D4E: main (nginx.c:382)
==20741== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20741==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 64: set & get large values - Can't connect to 127.0.0.1:1984: Connection refused ==20741==
==20741== Process terminating with default action of signal 11 (SIGSEGV)
==20741== Access not within mapped region at address 0x0
==20741== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20741== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20741== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20741== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20741== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20741== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20741== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20741== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20741== by 0x8062D4E: main (nginx.c:382)
==20741== If you believe this happened as a result of a stack
==20741== overflow in your program's main thread (unlikely but
==20741== possible), you can try to increase the size of the
==20741== main thread stack using the --main-stacksize= flag.
==20741== 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 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 19: set nil after setting values - Can't connect to 127.0.0.1:1984: Connection refused ==20742== Invalid read of size 4
==20742== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20742== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20742== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20742== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20742== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20742== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20742== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20742== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20742== by 0x8062D4E: main (nginx.c:382)
==20742== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20742==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 19: set nil after setting values - Can't connect to 127.0.0.1:1984: Connection refused ==20742==
==20742== Process terminating with default action of signal 11 (SIGSEGV)
==20742== Access not within mapped region at address 0x0
==20742== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20742== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20742== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20742== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20742== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20742== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20742== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20742== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20742== by 0x8062D4E: main (nginx.c:382)
==20742== If you believe this happened as a result of a stack
==20742== overflow in your program's main thread (unlikely but
==20742== possible), you can try to increase the size of the
==20742== main thread stack using the --main-stacksize= flag.
==20742== 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 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 47: list all keys in a shdict with expires - Can't connect to 127.0.0.1:1984: Connection refused ==20743== Invalid read of size 4
==20743== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20743== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20743== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20743== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20743== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20743== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20743== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20743== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20743== by 0x8062D4E: main (nginx.c:382)
==20743== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20743==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 47: list all keys in a shdict with expires - Can't connect to 127.0.0.1:1984: Connection refused ==20743==
==20743== Process terminating with default action of signal 11 (SIGSEGV)
==20743== Access not within mapped region at address 0x0
==20743== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20743== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20743== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20743== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20743== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20743== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20743== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20743== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20743== by 0x8062D4E: main (nginx.c:382)
==20743== If you believe this happened as a result of a stack
==20743== overflow in your program's main thread (unlikely but
==20743== possible), you can try to increase the size of the
==20743== main thread stack using the --main-stacksize= flag.
==20743== 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 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 84: get bad zone table - Can't connect to 127.0.0.1:1984: Connection refused ==20744== Invalid read of size 4
==20744== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20744== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20744== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20744== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20744== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20744== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20744== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20744== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20744== by 0x8062D4E: main (nginx.c:382)
==20744== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20744==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 84: get bad zone table - Can't connect to 127.0.0.1:1984: Connection refused ==20744==
==20744== Process terminating with default action of signal 11 (SIGSEGV)
==20744== Access not within mapped region at address 0x0
==20744== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20744== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20744== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20744== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20744== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20744== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20744== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20744== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20744== by 0x8062D4E: main (nginx.c:382)
==20744== If you believe this happened as a result of a stack
==20744== overflow in your program's main thread (unlikely but
==20744== possible), you can try to increase the size of the
==20744== main thread stack using the --main-stacksize= flag.
==20744== 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 60: get bad zone argument - Can't connect to 127.0.0.1:1984: Connection refused ==20745== Invalid read of size 4
==20745== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20745== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20745== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20745== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20745== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20745== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20745== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20745== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20745== by 0x8062D4E: main (nginx.c:382)
==20745== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20745==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 60: get bad zone argument - Can't connect to 127.0.0.1:1984: Connection refused ==20745==
==20745== Process terminating with default action of signal 11 (SIGSEGV)
==20745== Access not within mapped region at address 0x0
==20745== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20745== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20745== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20745== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20745== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20745== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20745== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20745== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20745== by 0x8062D4E: main (nginx.c:382)
==20745== If you believe this happened as a result of a stack
==20745== overflow in your program's main thread (unlikely but
==20745== possible), you can try to increase the size of the
==20745== main thread stack using the --main-stacksize= flag.
==20745== 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 26: add key (key expired and value size unmatched) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20746== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
043-shdict.t TEST 26: add key (key expired and value size unmatched) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20746== by 0x8062D4E: main (nginx.c:382)
==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.

043-shdict.t TEST 26: add key (key expired and value size unmatched) - status code ok got: ''
expected: '200'
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 24: add key (key not exists) - Can't connect to 127.0.0.1:1984: Connection refused ==20747== Invalid read of size 4
==20747== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20747== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20747== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20747== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20747== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20747== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20747== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20747== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20747== by 0x8062D4E: main (nginx.c:382)
==20747== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20747==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 24: add key (key not exists) - Can't connect to 127.0.0.1:1984: Connection refused ==20747==
==20747== Process terminating with default action of signal 11 (SIGSEGV)
==20747== Access not within mapped region at address 0x0
==20747== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20747== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20747== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20747== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20747== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20747== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20747== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20747== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20747== by 0x8062D4E: main (nginx.c:382)
==20747== If you believe this happened as a result of a stack
==20747== overflow in your program's main thread (unlikely but
==20747== possible), you can try to increase the size of the
==20747== main thread stack using the --main-stacksize= flag.
==20747== 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 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 59: set empty string keys - Can't connect to 127.0.0.1:1984: Connection refused ==20748== Invalid read of size 4
==20748== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20748== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20748== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20748== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20748== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20748== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20748== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20748== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20748== by 0x8062D4E: main (nginx.c:382)
==20748== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20748==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 59: set empty string keys - Can't connect to 127.0.0.1:1984: Connection refused ==20748==
==20748== Process terminating with default action of signal 11 (SIGSEGV)
==20748== Access not within mapped region at address 0x0
==20748== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20748== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20748== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20748== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20748== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20748== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20748== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20748== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20748== by 0x8062D4E: main (nginx.c:382)
==20748== If you believe this happened as a result of a stack
==20748== overflow in your program's main thread (unlikely but
==20748== possible), you can try to increase the size of the
==20748== main thread stack using the --main-stacksize= flag.
==20748== 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 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 4: number keys, string values - Can't connect to 127.0.0.1:1984: Connection refused ==20749== Invalid read of size 4
==20749== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20749== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20749== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20749== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20749== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20749== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20749== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20749== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20749== by 0x8062D4E: main (nginx.c:382)
==20749== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20749==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 4: number keys, string values - Can't connect to 127.0.0.1:1984: Connection refused ==20749==
==20749== Process terminating with default action of signal 11 (SIGSEGV)
==20749== Access not within mapped region at address 0x0
==20749== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20749== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20749== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20749== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20749== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20749== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20749== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20749== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20749== by 0x8062D4E: main (nginx.c:382)
==20749== If you believe this happened as a result of a stack
==20749== overflow in your program's main thread (unlikely but
==20749== possible), you can try to increase the size of the
==20749== main thread stack using the --main-stacksize= flag.
==20749== 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 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 37: incr key (original value is not number) - Can't connect to 127.0.0.1:1984: Connection refused ==20750== Invalid read of size 4
==20750== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20750== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20750== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20750== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20750== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20750== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20750== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20750== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20750== by 0x8062D4E: main (nginx.c:382)
==20750== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20750==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 37: incr key (original value is not number) - Can't connect to 127.0.0.1:1984: Connection refused ==20750==
==20750== Process terminating with default action of signal 11 (SIGSEGV)
==20750== Access not within mapped region at address 0x0
==20750== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20750== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20750== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20750== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20750== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20750== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20750== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20750== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20750== by 0x8062D4E: main (nginx.c:382)
==20750== If you believe this happened as a result of a stack
==20750== overflow in your program's main thread (unlikely but
==20750== possible), you can try to increase the size of the
==20750== main thread stack using the --main-stacksize= flag.
==20750== 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 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 63: get a too-long key - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20751== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
043-shdict.t TEST 63: get a too-long key - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20751== by 0x8062D4E: main (nginx.c:382)
==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.

043-shdict.t TEST 63: get a too-long key - status code ok got: ''
expected: '200'
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 65: get_stale nil key - Can't connect to 127.0.0.1:1984: Connection refused ==20752== Invalid read of size 4
==20752== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20752== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20752== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20752== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20752== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20752== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20752== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20752== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20752== by 0x8062D4E: main (nginx.c:382)
==20752== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20752==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 65: get_stale nil key - Can't connect to 127.0.0.1:1984: Connection refused ==20752==
==20752== Process terminating with default action of signal 11 (SIGSEGV)
==20752== Access not within mapped region at address 0x0
==20752== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20752== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20752== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20752== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20752== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20752== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20752== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20752== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20752== by 0x8062D4E: main (nginx.c:382)
==20752== If you believe this happened as a result of a stack
==20752== overflow in your program's main thread (unlikely but
==20752== possible), you can try to increase the size of the
==20752== main thread stack using the --main-stacksize= flag.
==20752== 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 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 55: safe_add - Can't connect to 127.0.0.1:1984: Connection refused ==20753== Invalid read of size 4
==20753== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20753== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20753== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20753== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20753== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20753== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20753== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20753== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20753== by 0x8062D4E: main (nginx.c:382)
==20753== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20753==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 55: safe_add - Can't connect to 127.0.0.1:1984: Connection refused ==20753==
==20753== Process terminating with default action of signal 11 (SIGSEGV)
==20753== Access not within mapped region at address 0x0
==20753== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20753== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20753== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20753== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20753== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20753== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20753== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20753== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20753== by 0x8062D4E: main (nginx.c:382)
==20753== If you believe this happened as a result of a stack
==20753== overflow in your program's main thread (unlikely but
==20753== possible), you can try to increase the size of the
==20753== main thread stack using the --main-stacksize= flag.
==20753== The main thread stack size used in this run was 8388608.
==20753== 2,048 bytes in 1 blocks are definitely lost in loss record 2,827 of 2,887
==20753== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==20753== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==20753== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20753== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20753== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==20753== by 0x408A8C6: ir_nextk (lj_ir.c:175)
==20753== by 0x408A8C6: lj_ir_kgc (lj_ir.c:286)
==20753== by 0x409CCB3: rec_call_specialize (lj_record.c:720)
==20753== by 0x409CCB3: rec_call_setup (lj_record.c:748)
==20753== by 0x409CEAC: lj_record_call (lj_record.c:761)
==20753== by 0x409F363: lj_record_ins (lj_record.c:2379)
==20753== by 0x40BB16A: trace_state (lj_trace.c:680)
==20753== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20753== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20753== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20753== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20753== by 0x407FA29: lua_resume (lj_api.c:1296)
==20753== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20753== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20753== by 0x8152E9D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==20753== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20753== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20753== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20753== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20753== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20753== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20753== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20753== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20753== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20753== by 0x8062D4E: main (nginx.c:382)
==20753==
{
<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_single_process_cycle
fun:main
}
043-shdict.t TEST 55: safe_add - status code ok got: ''
expected: '200'
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 49: list keys in an empty shdict - Can't connect to 127.0.0.1:1984: Connection refused ==20754== Invalid read of size 4
==20754== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20754== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20754== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20754== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20754== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20754== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20754== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20754== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20754== by 0x8062D4E: main (nginx.c:382)
==20754== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20754==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 49: list keys in an empty shdict - Can't connect to 127.0.0.1:1984: Connection refused ==20754==
==20754== Process terminating with default action of signal 11 (SIGSEGV)
==20754== Access not within mapped region at address 0x0
==20754== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20754== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20754== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20754== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20754== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20754== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20754== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20754== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20754== by 0x8062D4E: main (nginx.c:382)
==20754== If you believe this happened as a result of a stack
==20754== overflow in your program's main thread (unlikely but
==20754== possible), you can try to increase the size of the
==20754== main thread stack using the --main-stacksize= flag.
==20754== 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 49: list keys in an empty shdict - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '0
'
043-shdict.t TEST 33: replace key (key expired) - Can't connect to 127.0.0.1:1984: Connection refused ==20755== Invalid read of size 4
==20755== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20755== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20755== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20755== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20755== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20755== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20755== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20755== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20755== by 0x8062D4E: main (nginx.c:382)
==20755== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20755==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 33: replace key (key expired) - Can't connect to 127.0.0.1:1984: Connection refused ==20755==
==20755== Process terminating with default action of signal 11 (SIGSEGV)
==20755== Access not within mapped region at address 0x0
==20755== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20755== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20755== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20755== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20755== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20755== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20755== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20755== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20755== by 0x8062D4E: main (nginx.c:382)
==20755== If you believe this happened as a result of a stack
==20755== overflow in your program's main thread (unlikely but
==20755== possible), you can try to increase the size of the
==20755== main thread stack using the --main-stacksize= flag.
==20755== 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 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 62: get empty key - Can't connect to 127.0.0.1:1984: Connection refused ==20756== Invalid read of size 4
==20756== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20756== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20756== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20756== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20756== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20756== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20756== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20756== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20756== by 0x8062D4E: main (nginx.c:382)
==20756== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20756==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 62: get empty key - Can't connect to 127.0.0.1:1984: Connection refused ==20756==
==20756== Process terminating with default action of signal 11 (SIGSEGV)
==20756== Access not within mapped region at address 0x0
==20756== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20756== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20756== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20756== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20756== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20756== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20756== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20756== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20756== by 0x8062D4E: main (nginx.c:382)
==20756== If you believe this happened as a result of a stack
==20756== overflow in your program's main thread (unlikely but
==20756== possible), you can try to increase the size of the
==20756== main thread stack using the --main-stacksize= flag.
==20756== 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 62: get empty key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: empty key
'
043-shdict.t TEST 66: get_stale empty key - Can't connect to 127.0.0.1:1984: Connection refused ==20757== Invalid read of size 4
==20757== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20757== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20757== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20757== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20757== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20757== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20757== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20757== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20757== by 0x8062D4E: main (nginx.c:382)
==20757== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20757==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 66: get_stale empty key - Can't connect to 127.0.0.1:1984: Connection refused ==20757==
==20757== Process terminating with default action of signal 11 (SIGSEGV)
==20757== Access not within mapped region at address 0x0
==20757== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20757== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20757== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20757== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20757== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20757== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20757== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20757== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20757== by 0x8062D4E: main (nginx.c:382)
==20757== If you believe this happened as a result of a stack
==20757== overflow in your program's main thread (unlikely but
==20757== possible), you can try to increase the size of the
==20757== main thread stack using the --main-stacksize= flag.
==20757== 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 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 42: flush_expires with number - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20758== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
043-shdict.t TEST 42: flush_expires with number - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20758== by 0x8062D4E: main (nginx.c:382)
==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== 2,048 bytes in 1 blocks are definitely lost in loss record 2,853 of 2,908
==20758== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==20758== by 0x402C6F9: 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 0x4065625: lj_ir_growbot (lj_ir.c:105)
==20758== by 0x408AA0C: ir_nextk (lj_ir.c:175)
==20758== by 0x408AA0C: lj_ir_kptr_ (lj_ir.c:326)
==20758== by 0x4099F4D: rec_mm_prep (lj_record.c:961)
==20758== by 0x409BAA4: lj_record_idx (lj_record.c:1419)
==20758== by 0x409F552: lj_record_ins (lj_record.c:2339)
==20758== by 0x40BB16A: trace_state (lj_trace.c:680)
==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20758== by 0x8062D4E: main (nginx.c:382)
==20758==
{
<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_single_process_cycle
fun:main
}
043-shdict.t TEST 42: flush_expires with number - status code ok got: ''
expected: '200'
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 80: add nil values - Can't connect to 127.0.0.1:1984: Connection refused ==20759== Invalid read of size 4
==20759== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20759== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20759== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20759== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20759== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20759== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20759== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20759== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20759== by 0x8062D4E: main (nginx.c:382)
==20759== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20759==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 80: add nil values - Can't connect to 127.0.0.1:1984: Connection refused ==20759==
==20759== Process terminating with default action of signal 11 (SIGSEGV)
==20759== Access not within mapped region at address 0x0
==20759== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20759== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20759== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20759== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20759== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20759== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20759== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20759== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20759== by 0x8062D4E: main (nginx.c:382)
==20759== If you believe this happened as a result of a stack
==20759== overflow in your program's main thread (unlikely but
==20759== possible), you can try to increase the size of the
==20759== main thread stack using the --main-stacksize= flag.
==20759== 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 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 67: get_stale number key - Can't connect to 127.0.0.1:1984: Connection refused ==20760== Invalid read of size 4
==20760== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20760== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20760== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20760== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20760== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20760== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20760== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20760== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20760== by 0x8062D4E: main (nginx.c:382)
==20760== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20760==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 67: get_stale number key - Can't connect to 127.0.0.1:1984: Connection refused ==20760==
==20760== Process terminating with default action of signal 11 (SIGSEGV)
==20760== Access not within mapped region at address 0x0
==20760== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20760== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20760== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20760== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20760== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20760== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20760== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20760== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20760== by 0x8062D4E: main (nginx.c:382)
==20760== If you believe this happened as a result of a stack
==20760== overflow in your program's main thread (unlikely but
==20760== possible), you can try to increase the size of the
==20760== main thread stack using the --main-stacksize= flag.
==20760== 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 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 69: get_stale a non-existent key - Can't connect to 127.0.0.1:1984: Connection refused ==20761== Invalid read of size 4
==20761== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20761== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20761== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20761== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20761== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20761== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20761== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20761== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20761== by 0x8062D4E: main (nginx.c:382)
==20761== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20761==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 69: get_stale a non-existent key - Can't connect to 127.0.0.1:1984: Connection refused ==20761==
==20761== Process terminating with default action of signal 11 (SIGSEGV)
==20761== Access not within mapped region at address 0x0
==20761== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20761== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20761== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20761== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20761== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20761== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20761== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20761== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20761== by 0x8062D4E: main (nginx.c:382)
==20761== If you believe this happened as a result of a stack
==20761== overflow in your program's main thread (unlikely but
==20761== possible), you can try to increase the size of the
==20761== main thread stack using the --main-stacksize= flag.
==20761== 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'
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
'
043-shdict.t TEST 61: get nil key - Can't connect to 127.0.0.1:1984: Connection refused ==20762== Invalid read of size 4
==20762== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20762== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20762== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20762== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20762== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20762== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20762== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20762== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20762== by 0x8062D4E: main (nginx.c:382)
==20762== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20762==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 61: get nil key - Can't connect to 127.0.0.1:1984: Connection refused ==20762==
==20762== Process terminating with default action of signal 11 (SIGSEGV)
==20762== Access not within mapped region at address 0x0
==20762== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20762== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20762== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20762== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20762== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20762== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20762== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20762== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20762== by 0x8062D4E: main (nginx.c:382)
==20762== If you believe this happened as a result of a stack
==20762== overflow in your program's main thread (unlikely but
==20762== possible), you can try to increase the size of the
==20762== main thread stack using the --main-stacksize= flag.
==20762== 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 61: get nil key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: nil key
'
043-shdict.t TEST 51: list all keys in a shdict with all keys expired - Can't connect to 127.0.0.1:1984: Connection refused ==20763== Invalid read of size 4
==20763== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20763== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20763== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20763== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20763== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20763== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20763== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20763== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20763== by 0x8062D4E: main (nginx.c:382)
==20763== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20763==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 51: list all keys in a shdict with all keys expired - Can't connect to 127.0.0.1:1984: Connection refused ==20763==
==20763== Process terminating with default action of signal 11 (SIGSEGV)
==20763== Access not within mapped region at address 0x0
==20763== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20763== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20763== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20763== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20763== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20763== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20763== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20763== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20763== by 0x8062D4E: main (nginx.c:382)
==20763== If you believe this happened as a result of a stack
==20763== overflow in your program's main thread (unlikely but
==20763== possible), you can try to increase the size of the
==20763== main thread stack using the --main-stacksize= flag.
==20763== 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 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 76: incr empty string keys - Can't connect to 127.0.0.1:1984: Connection refused ==20764== Invalid read of size 4
==20764== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20764== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20764== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20764== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20764== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20764== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20764== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20764== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20764== by 0x8062D4E: main (nginx.c:382)
==20764== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20764==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 76: incr empty string keys - Can't connect to 127.0.0.1:1984: Connection refused ==20764==
==20764== Process terminating with default action of signal 11 (SIGSEGV)
==20764== Access not within mapped region at address 0x0
==20764== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20764== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20764== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20764== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20764== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20764== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20764== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20764== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20764== by 0x8062D4E: main (nginx.c:382)
==20764== If you believe this happened as a result of a stack
==20764== overflow in your program's main thread (unlikely but
==20764== possible), you can try to increase the size of the
==20764== main thread stack using the --main-stacksize= flag.
==20764== 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 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 28: replace key (key not exists) - Can't connect to 127.0.0.1:1984: Connection refused ==20765== Invalid read of size 4
==20765== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20765== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20765== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20765== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20765== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20765== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20765== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20765== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20765== by 0x8062D4E: main (nginx.c:382)
==20765== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20765==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 28: replace key (key not exists) - Can't connect to 127.0.0.1:1984: Connection refused ==20765==
==20765== Process terminating with default action of signal 11 (SIGSEGV)
==20765== Access not within mapped region at address 0x0
==20765== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20765== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20765== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20765== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20765== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20765== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20765== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20765== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20765== by 0x8062D4E: main (nginx.c:382)
==20765== If you believe this happened as a result of a stack
==20765== overflow in your program's main thread (unlikely but
==20765== possible), you can try to increase the size of the
==20765== main thread stack using the --main-stacksize= flag.
==20765== 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 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 36: incr key (incr by negative numbers) - Can't connect to 127.0.0.1:1984: Connection refused ==20766== Invalid read of size 4
==20766== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20766== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20766== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20766== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20766== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20766== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20766== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20766== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20766== by 0x8062D4E: main (nginx.c:382)
==20766== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20766==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 36: incr key (incr by negative numbers) - Can't connect to 127.0.0.1:1984: Connection refused ==20766==
==20766== Process terminating with default action of signal 11 (SIGSEGV)
==20766== Access not within mapped region at address 0x0
==20766== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20766== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20766== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20766== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20766== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20766== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20766== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20766== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20766== by 0x8062D4E: main (nginx.c:382)
==20766== If you believe this happened as a result of a stack
==20766== overflow in your program's main thread (unlikely but
==20766== possible), you can try to increase the size of the
==20766== main thread stack using the --main-stacksize= flag.
==20766== 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 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 75: incr bad zone argument - Can't connect to 127.0.0.1:1984: Connection refused ==20768== Invalid read of size 4
==20768== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20768== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20768== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20768== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20768== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20768== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20768== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20768== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20768== by 0x8062D4E: main (nginx.c:382)
==20768== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20768==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 75: incr bad zone argument - Can't connect to 127.0.0.1:1984: Connection refused ==20768==
==20768== Process terminating with default action of signal 11 (SIGSEGV)
==20768== Access not within mapped region at address 0x0
==20768== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20768== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20768== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20768== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20768== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20768== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20768== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20768== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20768== by 0x8062D4E: main (nginx.c:382)
==20768== If you believe this happened as a result of a stack
==20768== overflow in your program's main thread (unlikely but
==20768== possible), you can try to increase the size of the
==20768== main thread stack using the --main-stacksize= flag.
==20768== 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 78: incr number key - Can't connect to 127.0.0.1:1984: Connection refused ==20769== Invalid read of size 4
==20769== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20769== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20769== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20769== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20769== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20769== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20769== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20769== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20769== by 0x8062D4E: main (nginx.c:382)
==20769== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20769==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 78: incr number key - Can't connect to 127.0.0.1:1984: Connection refused ==20769==
==20769== Process terminating with default action of signal 11 (SIGSEGV)
==20769== Access not within mapped region at address 0x0
==20769== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20769== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20769== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20769== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20769== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20769== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20769== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20769== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20769== by 0x8062D4E: main (nginx.c:382)
==20769== If you believe this happened as a result of a stack
==20769== overflow in your program's main thread (unlikely but
==20769== possible), you can try to increase the size of the
==20769== main thread stack using the --main-stacksize= flag.
==20769== 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 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 29: replace key (key expired) - Can't connect to 127.0.0.1:1984: Connection refused ==20770== Invalid read of size 4
==20770== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20770== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20770== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20770== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20770== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20770== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20770== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20770== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20770== by 0x8062D4E: main (nginx.c:382)
==20770== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20770==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 29: replace key (key expired) - Can't connect to 127.0.0.1:1984: Connection refused ==20770==
==20770== Process terminating with default action of signal 11 (SIGSEGV)
==20770== Access not within mapped region at address 0x0
==20770== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20770== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20770== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20770== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20770== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20770== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20770== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20770== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20770== by 0x8062D4E: main (nginx.c:382)
==20770== If you believe this happened as a result of a stack
==20770== overflow in your program's main thread (unlikely but
==20770== possible), you can try to increase the size of the
==20770== main thread stack using the --main-stacksize= flag.
==20770== 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 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 16: bad value type - Can't connect to 127.0.0.1:1984: Connection refused ==20771== Invalid read of size 4
==20771== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20771== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20771== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20771== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20771== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20771== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20771== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20771== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20771== by 0x8062D4E: main (nginx.c:382)
==20771== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20771==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 16: bad value type - Can't connect to 127.0.0.1:1984: Connection refused ==20771==
==20771== Process terminating with default action of signal 11 (SIGSEGV)
==20771== Access not within mapped region at address 0x0
==20771== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20771== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20771== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20771== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20771== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20771== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20771== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20771== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20771== by 0x8062D4E: main (nginx.c:382)
==20771== If you believe this happened as a result of a stack
==20771== overflow in your program's main thread (unlikely but
==20771== possible), you can try to increase the size of the
==20771== main thread stack using the --main-stacksize= flag.
==20771== 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 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 82: the lightuserdata ngx.null has no methods of shared dicts. - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20772== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
043-shdict.t TEST 82: the lightuserdata ngx.null has no methods of shared dicts. - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20772== by 0x8062D4E: main (nginx.c:382)
==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.

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 53: list all keys in a shdict with more than 1024 keys with 0 limit set - Can't connect to 127.0.0.1:1984: Connection refused ==20774== Invalid read of size 4
==20774== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20774== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20774== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20774== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20774== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20774== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20774== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20774== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20774== by 0x8062D4E: main (nginx.c:382)
==20774== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20774==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 53: list all keys in a shdict with more than 1024 keys with 0 limit set - Can't connect to 127.0.0.1:1984: Connection refused ==20774==
==20774== Process terminating with default action of signal 11 (SIGSEGV)
==20774== Access not within mapped region at address 0x0
==20774== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20774== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20774== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20774== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20774== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20774== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20774== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20774== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20774== by 0x8062D4E: main (nginx.c:382)
==20774== If you believe this happened as a result of a stack
==20774== overflow in your program's main thread (unlikely but
==20774== possible), you can try to increase the size of the
==20774== main thread stack using the --main-stacksize= flag.
==20774== The main thread stack size used in this run was 8388608.
==20774== 2,048 bytes in 1 blocks are definitely lost in loss record 2,816 of 2,875
==20774== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20774== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20774== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20774== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20774== by 0x408F5A6: lj_ir_nextins (lj_iropt.h:34)
==20774== by 0x408F5A6: lj_opt_cse (lj_opt_fold.c:2549)
==20774== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20774== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20774== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20774== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20774== by 0x40BB675: trace_state (lj_trace.c:690)
==20774== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20774== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20774== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20774== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20774== by 0x407FA29: lua_resume (lj_api.c:1296)
==20774== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20774== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20774== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20774== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20774== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20774== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20774== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20774== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20774== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20774== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20774== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20774== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20774== by 0x8062D4E: main (nginx.c:382)
==20774==
{
<insert_a_suppression_name_here>
Memcheck: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_single_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 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 74: incr nil key - Can't connect to 127.0.0.1:1984: Connection refused ==20775== Invalid read of size 4
==20775== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20775== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20775== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20775== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20775== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20775== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20775== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20775== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20775== by 0x8062D4E: main (nginx.c:382)
==20775== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20775==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 74: incr nil key - Can't connect to 127.0.0.1:1984: Connection refused ==20775==
==20775== Process terminating with default action of signal 11 (SIGSEGV)
==20775== Access not within mapped region at address 0x0
==20775== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20775== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20775== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20775== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20775== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20775== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20775== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20775== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20775== by 0x8062D4E: main (nginx.c:382)
==20775== If you believe this happened as a result of a stack
==20775== overflow in your program's main thread (unlikely but
==20775== possible), you can try to increase the size of the
==20775== main thread stack using the --main-stacksize= flag.
==20775== 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 74: incr nil key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: nil key
'
043-shdict.t TEST 20: set nil at first - Can't connect to 127.0.0.1:1984: Connection refused ==20776== Invalid read of size 4
==20776== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20776== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20776== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20776== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20776== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20776== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20776== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20776== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20776== by 0x8062D4E: main (nginx.c:382)
==20776== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20776==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 20: set nil at first - Can't connect to 127.0.0.1:1984: Connection refused ==20776==
==20776== Process terminating with default action of signal 11 (SIGSEGV)
==20776== Access not within mapped region at address 0x0
==20776== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20776== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20776== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20776== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20776== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20776== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20776== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20776== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20776== by 0x8062D4E: main (nginx.c:382)
==20776== If you believe this happened as a result of a stack
==20776== overflow in your program's main thread (unlikely but
==20776== possible), you can try to increase the size of the
==20776== main thread stack using the --main-stacksize= flag.
==20776== 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 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 - Can't connect to 127.0.0.1:1984: Connection refused ==20777== Invalid read of size 4
==20777== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20777== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20777== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20777== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20777== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20777== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20777== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20777== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20777== by 0x8062D4E: main (nginx.c:382)
==20777== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20777==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 18: delete at first - Can't connect to 127.0.0.1:1984: Connection refused ==20777==
==20777== Process terminating with default action of signal 11 (SIGSEGV)
==20777== Access not within mapped region at address 0x0
==20777== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20777== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20777== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20777== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20777== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20777== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20777== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20777== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20777== by 0x8062D4E: main (nginx.c:382)
==20777== If you believe this happened as a result of a stack
==20777== overflow in your program's main thread (unlikely but
==20777== possible), you can try to increase the size of the
==20777== main thread stack using the --main-stacksize= flag.
==20777== 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 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 54: safe_set - Can't connect to 127.0.0.1:1984: Connection refused ==20778== Invalid read of size 4
==20778== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20778== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20778== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20778== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20778== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20778== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20778== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20778== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20778== by 0x8062D4E: main (nginx.c:382)
==20778== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20778==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 54: safe_set - Can't connect to 127.0.0.1:1984: Connection refused ==20778==
==20778== Process terminating with default action of signal 11 (SIGSEGV)
==20778== Access not within mapped region at address 0x0
==20778== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20778== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20778== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20778== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20778== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20778== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20778== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20778== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20778== by 0x8062D4E: main (nginx.c:382)
==20778== If you believe this happened as a result of a stack
==20778== overflow in your program's main thread (unlikely but
==20778== possible), you can try to increase the size of the
==20778== main thread stack using the --main-stacksize= flag.
==20778== The main thread stack size used in this run was 8388608.
==20778== 2,048 bytes in 1 blocks are definitely lost in loss record 2,843 of 2,904
==20778== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==20778== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==20778== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20778== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20778== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==20778== by 0x408A8C6: ir_nextk (lj_ir.c:175)
==20778== by 0x408A8C6: lj_ir_kgc (lj_ir.c:286)
==20778== by 0x409CCB3: rec_call_specialize (lj_record.c:720)
==20778== by 0x409CCB3: rec_call_setup (lj_record.c:748)
==20778== by 0x409CEAC: lj_record_call (lj_record.c:761)
==20778== by 0x409F363: lj_record_ins (lj_record.c:2379)
==20778== by 0x40BB16A: trace_state (lj_trace.c:680)
==20778== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20778== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20778== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20778== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20778== by 0x407FA29: lua_resume (lj_api.c:1296)
==20778== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20778== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20778== by 0x8152E9D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==20778== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20778== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20778== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20778== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20778== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20778== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20778== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20778== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20778== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20778== by 0x8062D4E: main (nginx.c:382)
==20778==
{
<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_single_process_cycle
fun:main
}
043-shdict.t TEST 54: safe_set - status code ok got: ''
expected: '200'
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 2: string key, floating-point value - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20779== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
043-shdict.t TEST 2: string key, floating-point value - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20779== by 0x8062D4E: main (nginx.c:382)
==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.

043-shdict.t TEST 2: string key, floating-point value - status code ok got: ''
expected: '200'
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 46: list keys in a shdict with limit - Can't connect to 127.0.0.1:1984: Connection refused ==20780== Invalid read of size 4
==20780== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20780== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20780== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20780== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20780== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20780== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20780== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20780== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20780== by 0x8062D4E: main (nginx.c:382)
==20780== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20780==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 46: list keys in a shdict with limit - Can't connect to 127.0.0.1:1984: Connection refused ==20780==
==20780== Process terminating with default action of signal 11 (SIGSEGV)
==20780== Access not within mapped region at address 0x0
==20780== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20780== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20780== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20780== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20780== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20780== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20780== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20780== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20780== by 0x8062D4E: main (nginx.c:382)
==20780== If you believe this happened as a result of a stack
==20780== overflow in your program's main thread (unlikely but
==20780== possible), you can try to increase the size of the
==20780== main thread stack using the --main-stacksize= flag.
==20780== 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 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 3: string key, boolean value - Can't connect to 127.0.0.1:1984: Connection refused ==20781== Invalid read of size 4
==20781== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20781== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20781== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20781== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20781== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20781== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20781== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20781== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20781== by 0x8062D4E: main (nginx.c:382)
==20781== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20781==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 3: string key, boolean value - Can't connect to 127.0.0.1:1984: Connection refused ==20781==
==20781== Process terminating with default action of signal 11 (SIGSEGV)
==20781== Access not within mapped region at address 0x0
==20781== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20781== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20781== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20781== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20781== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20781== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20781== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20781== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20781== by 0x8062D4E: main (nginx.c:382)
==20781== If you believe this happened as a result of a stack
==20781== overflow in your program's main thread (unlikely but
==20781== possible), you can try to increase the size of the
==20781== main thread stack using the --main-stacksize= flag.
==20781== 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 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 83: set bad zone table - Can't connect to 127.0.0.1:1984: Connection refused ==20782== Invalid read of size 4
==20782== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20782== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20782== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20782== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20782== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20782== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20782== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20782== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20782== by 0x8062D4E: main (nginx.c:382)
==20782== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20782==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 83: set bad zone table - Can't connect to 127.0.0.1:1984: Connection refused ==20782==
==20782== Process terminating with default action of signal 11 (SIGSEGV)
==20782== Access not within mapped region at address 0x0
==20782== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20782== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20782== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20782== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20782== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20782== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20782== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20782== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20782== by 0x8062D4E: main (nginx.c:382)
==20782== If you believe this happened as a result of a stack
==20782== overflow in your program's main thread (unlikely but
==20782== possible), you can try to increase the size of the
==20782== main thread stack using the --main-stacksize= flag.
==20782== 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 39: expired entries (can be auto-removed by get), with flags set - Can't connect to 127.0.0.1:1984: Connection refused ==20783== Invalid read of size 4
==20783== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20783== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20783== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20783== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20783== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20783== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20783== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20783== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20783== by 0x8062D4E: main (nginx.c:382)
==20783== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20783==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 39: expired entries (can be auto-removed by get), with flags set - Can't connect to 127.0.0.1:1984: Connection refused ==20783==
==20783== Process terminating with default action of signal 11 (SIGSEGV)
==20783== Access not within mapped region at address 0x0
==20783== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20783== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20783== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20783== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20783== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20783== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20783== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20783== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20783== by 0x8062D4E: main (nginx.c:382)
==20783== If you believe this happened as a result of a stack
==20783== overflow in your program's main thread (unlikely but
==20783== possible), you can try to increase the size of the
==20783== main thread stack using the --main-stacksize= flag.
==20783== 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 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 70: set & get_stale large values - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20784== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
043-shdict.t TEST 70: set & get_stale large values - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20784== by 0x8062D4E: main (nginx.c:382)
==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.

043-shdict.t TEST 70: set & get_stale large values - status code ok got: ''
expected: '200'
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 8: not yet expired entries - Can't connect to 127.0.0.1:1984: Connection refused ==20785== Invalid read of size 4
==20785== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20785== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20785== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20785== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20785== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20785== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20785== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20785== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20785== by 0x8062D4E: main (nginx.c:382)
==20785== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20785==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 8: not yet expired entries - Can't connect to 127.0.0.1:1984: Connection refused ==20785==
==20785== Process terminating with default action of signal 11 (SIGSEGV)
==20785== Access not within mapped region at address 0x0
==20785== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20785== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20785== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20785== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20785== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20785== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20785== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20785== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20785== by 0x8062D4E: main (nginx.c:382)
==20785== If you believe this happened as a result of a stack
==20785== overflow in your program's main thread (unlikely but
==20785== possible), you can try to increase the size of the
==20785== main thread stack using the --main-stacksize= flag.
==20785== 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 8: not yet expired entries - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '32
'
043-shdict.t TEST 40: flush_all - Can't connect to 127.0.0.1:1984: Connection refused ==20786== Invalid read of size 4
==20786== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20786== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20786== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20786== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20786== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20786== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20786== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20786== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20786== by 0x8062D4E: main (nginx.c:382)
==20786== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20786==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 40: flush_all - Can't connect to 127.0.0.1:1984: Connection refused ==20786==
==20786== Process terminating with default action of signal 11 (SIGSEGV)
==20786== Access not within mapped region at address 0x0
==20786== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20786== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20786== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20786== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20786== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20786== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20786== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20786== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20786== by 0x8062D4E: main (nginx.c:382)
==20786== If you believe this happened as a result of a stack
==20786== overflow in your program's main thread (unlikely but
==20786== possible), you can try to increase the size of the
==20786== main thread stack using the --main-stacksize= flag.
==20786== 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 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 30: replace key (key expired and value size unmatched) - Can't connect to 127.0.0.1:1984: Connection refused ==20787== Invalid read of size 4
==20787== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20787== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20787== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20787== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20787== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20787== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20787== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20787== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20787== by 0x8062D4E: main (nginx.c:382)
==20787== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20787==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 30: replace key (key expired and value size unmatched) - Can't connect to 127.0.0.1:1984: Connection refused ==20787==
==20787== Process terminating with default action of signal 11 (SIGSEGV)
==20787== Access not within mapped region at address 0x0
==20787== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20787== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20787== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20787== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20787== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20787== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20787== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20787== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20787== by 0x8062D4E: main (nginx.c:382)
==20787== If you believe this happened as a result of a stack
==20787== overflow in your program's main thread (unlikely but
==20787== possible), you can try to increase the size of the
==20787== main thread stack using the --main-stacksize= flag.
==20787== 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 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 23: add key (key exists) - Can't connect to 127.0.0.1:1984: Connection refused ==20788== Invalid read of size 4
==20788== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20788== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20788== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20788== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20788== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20788== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20788== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20788== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20788== by 0x8062D4E: main (nginx.c:382)
==20788== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20788==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 23: add key (key exists) - Can't connect to 127.0.0.1:1984: Connection refused ==20788==
==20788== Process terminating with default action of signal 11 (SIGSEGV)
==20788== Access not within mapped region at address 0x0
==20788== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20788== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20788== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20788== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20788== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20788== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20788== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20788== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20788== by 0x8062D4E: main (nginx.c:382)
==20788== If you believe this happened as a result of a stack
==20788== overflow in your program's main thread (unlikely but
==20788== possible), you can try to increase the size of the
==20788== main thread stack using the --main-stacksize= flag.
==20788== 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 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 7: expired entries (can NOT be auto-removed by get) - Can't connect to 127.0.0.1:1984: Connection refused ==20789== Invalid read of size 4
==20789== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20789== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20789== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20789== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20789== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20789== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20789== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20789== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20789== by 0x8062D4E: main (nginx.c:382)
==20789== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20789==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 7: expired entries (can NOT be auto-removed by get) - Can't connect to 127.0.0.1:1984: Connection refused ==20789==
==20789== Process terminating with default action of signal 11 (SIGSEGV)
==20789== Access not within mapped region at address 0x0
==20789== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20789== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20789== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20789== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20789== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20789== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20789== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20789== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20789== by 0x8062D4E: main (nginx.c:382)
==20789== If you believe this happened as a result of a stack
==20789== overflow in your program's main thread (unlikely but
==20789== possible), you can try to increase the size of the
==20789== main thread stack using the --main-stacksize= flag.
==20789== 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 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 45: list all keys in a shdict - Can't connect to 127.0.0.1:1984: Connection refused ==20790== Invalid read of size 4
==20790== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20790== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20790== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20790== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20790== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20790== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20790== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20790== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20790== by 0x8062D4E: main (nginx.c:382)
==20790== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20790==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 45: list all keys in a shdict - Can't connect to 127.0.0.1:1984: Connection refused ==20790==
==20790== Process terminating with default action of signal 11 (SIGSEGV)
==20790== Access not within mapped region at address 0x0
==20790== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20790== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20790== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20790== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20790== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20790== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20790== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20790== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20790== by 0x8062D4E: main (nginx.c:382)
==20790== If you believe this happened as a result of a stack
==20790== overflow in your program's main thread (unlikely but
==20790== possible), you can try to increase the size of the
==20790== main thread stack using the --main-stacksize= flag.
==20790== 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 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 12: get non-existent keys - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20791== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
043-shdict.t TEST 12: get non-existent keys - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20791== by 0x8062D4E: main (nginx.c:382)
==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.

043-shdict.t TEST 12: get non-existent keys - status code ok got: ''
expected: '200'
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 38: get and set with flags - Can't connect to 127.0.0.1:1984: Connection refused ==20792== Invalid read of size 4
==20792== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20792== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20792== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20792== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20792== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20792== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20792== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20792== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20792== by 0x8062D4E: main (nginx.c:382)
==20792== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20792==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 38: get and set with flags - Can't connect to 127.0.0.1:1984: Connection refused ==20792==
==20792== Process terminating with default action of signal 11 (SIGSEGV)
==20792== Access not within mapped region at address 0x0
==20792== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20792== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20792== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20792== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20792== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20792== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20792== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20792== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20792== by 0x8062D4E: main (nginx.c:382)
==20792== If you believe this happened as a result of a stack
==20792== overflow in your program's main thread (unlikely but
==20792== possible), you can try to increase the size of the
==20792== main thread stack using the --main-stacksize= flag.
==20792== 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 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 27: incr key (key exists) - Can't connect to 127.0.0.1:1984: Connection refused ==20793== Invalid read of size 4
==20793== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20793== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20793== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20793== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20793== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20793== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20793== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20793== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20793== by 0x8062D4E: main (nginx.c:382)
==20793== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20793==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 27: incr key (key exists) - Can't connect to 127.0.0.1:1984: Connection refused ==20793==
==20793== Process terminating with default action of signal 11 (SIGSEGV)
==20793== Access not within mapped region at address 0x0
==20793== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20793== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20793== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20793== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20793== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20793== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20793== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20793== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20793== by 0x8062D4E: main (nginx.c:382)
==20793== If you believe this happened as a result of a stack
==20793== overflow in your program's main thread (unlikely but
==20793== possible), you can try to increase the size of the
==20793== main thread stack using the --main-stacksize= flag.
==20793== 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 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 72: set & get_stale boolean values (false) - Can't connect to 127.0.0.1:1984: Connection refused ==20794== Invalid read of size 4
==20794== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20794== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20794== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20794== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20794== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20794== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20794== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20794== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20794== by 0x8062D4E: main (nginx.c:382)
==20794== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20794==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 72: set & get_stale boolean values (false) - Can't connect to 127.0.0.1:1984: Connection refused ==20794==
==20794== Process terminating with default action of signal 11 (SIGSEGV)
==20794== Access not within mapped region at address 0x0
==20794== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20794== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20794== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20794== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20794== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20794== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20794== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20794== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20794== by 0x8062D4E: main (nginx.c:382)
==20794== If you believe this happened as a result of a stack
==20794== overflow in your program's main thread (unlikely but
==20794== possible), you can try to increase the size of the
==20794== main thread stack using the --main-stacksize= flag.
==20794== 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 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 10: forcibly override other valid entries and test LRU - Can't connect to 127.0.0.1:1984: Connection refused ==20795== Invalid read of size 4
==20795== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20795== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20795== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20795== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20795== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20795== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20795== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20795== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20795== by 0x8062D4E: main (nginx.c:382)
==20795== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20795==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 10: forcibly override other valid entries and test LRU - Can't connect to 127.0.0.1:1984: Connection refused ==20795==
==20795== Process terminating with default action of signal 11 (SIGSEGV)
==20795== Access not within mapped region at address 0x0
==20795== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20795== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20795== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20795== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20795== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20795== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20795== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20795== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20795== by 0x8062D4E: main (nginx.c:382)
==20795== If you believe this happened as a result of a stack
==20795== overflow in your program's main thread (unlikely but
==20795== possible), you can try to increase the size of the
==20795== main thread stack using the --main-stacksize= flag.
==20795== The main thread stack size used in this run was 8388608.

043-shdict.t TEST 10: forcibly override other valid entries and test LRU - status code ok got: ''
expected: '200'
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 81: replace key with exptime - Can't connect to 127.0.0.1:1984: Connection refused ==20796== Invalid read of size 4
==20796== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20796== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20796== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20796== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20796== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20796== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20796== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20796== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20796== by 0x8062D4E: main (nginx.c:382)
==20796== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20796==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 81: replace key with exptime - Can't connect to 127.0.0.1:1984: Connection refused ==20796==
==20796== Process terminating with default action of signal 11 (SIGSEGV)
==20796== Access not within mapped region at address 0x0
==20796== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20796== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20796== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20796== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20796== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20796== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20796== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20796== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20796== by 0x8062D4E: main (nginx.c:382)
==20796== If you believe this happened as a result of a stack
==20796== overflow in your program's main thread (unlikely but
==20796== possible), you can try to increase the size of the
==20796== main thread stack using the --main-stacksize= flag.
==20796== 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 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 87: dogs, cat mixing - Can't connect to 127.0.0.1:1984: Connection refused ==20797== Invalid read of size 4
==20797== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20797== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20797== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20797== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20797== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20797== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20797== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20797== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20797== by 0x8062D4E: main (nginx.c:382)
==20797== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20797==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 87: dogs, cat mixing - Can't connect to 127.0.0.1:1984: Connection refused ==20797==
==20797== Process terminating with default action of signal 11 (SIGSEGV)
==20797== Access not within mapped region at address 0x0
==20797== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20797== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20797== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20797== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20797== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20797== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20797== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20797== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20797== by 0x8062D4E: main (nginx.c:382)
==20797== If you believe this happened as a result of a stack
==20797== overflow in your program's main thread (unlikely but
==20797== possible), you can try to increase the size of the
==20797== main thread stack using the --main-stacksize= flag.
==20797== 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 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 6: expired entries (can be auto-removed by get) - Can't connect to 127.0.0.1:1984: Connection refused ==20798== Invalid read of size 4
==20798== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20798== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20798== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20798== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20798== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20798== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20798== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20798== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20798== by 0x8062D4E: main (nginx.c:382)
==20798== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20798==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 6: expired entries (can be auto-removed by get) - Can't connect to 127.0.0.1:1984: Connection refused ==20798==
==20798== Process terminating with default action of signal 11 (SIGSEGV)
==20798== Access not within mapped region at address 0x0
==20798== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20798== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20798== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20798== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20798== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20798== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20798== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20798== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20798== by 0x8062D4E: main (nginx.c:382)
==20798== If you believe this happened as a result of a stack
==20798== overflow in your program's main thread (unlikely but
==20798== possible), you can try to increase the size of the
==20798== main thread stack using the --main-stacksize= flag.
==20798== 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 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 41: flush_expires - Can't connect to 127.0.0.1:1984: Connection refused ==20799== Invalid read of size 4
==20799== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20799== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20799== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20799== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20799== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20799== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20799== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20799== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20799== by 0x8062D4E: main (nginx.c:382)
==20799== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20799==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 41: flush_expires - Can't connect to 127.0.0.1:1984: Connection refused ==20799==
==20799== Process terminating with default action of signal 11 (SIGSEGV)
==20799== Access not within mapped region at address 0x0
==20799== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20799== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20799== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20799== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20799== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20799== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20799== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20799== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20799== by 0x8062D4E: main (nginx.c:382)
==20799== If you believe this happened as a result of a stack
==20799== overflow in your program's main thread (unlikely but
==20799== possible), you can try to increase the size of the
==20799== main thread stack using the --main-stacksize= flag.
==20799== 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 41: flush_expires - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1
'
043-shdict.t TEST 35: incr key (incr by floating point number) - Can't connect to 127.0.0.1:1984: Connection refused ==20800== Invalid read of size 4
==20800== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20800== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20800== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20800== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20800== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20800== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20800== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20800== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20800== by 0x8062D4E: main (nginx.c:382)
==20800== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20800==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 35: incr key (incr by floating point number) - Can't connect to 127.0.0.1:1984: Connection refused ==20800==
==20800== Process terminating with default action of signal 11 (SIGSEGV)
==20800== Access not within mapped region at address 0x0
==20800== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20800== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20800== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20800== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20800== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20800== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20800== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20800== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20800== by 0x8062D4E: main (nginx.c:382)
==20800== If you believe this happened as a result of a stack
==20800== overflow in your program's main thread (unlikely but
==20800== possible), you can try to increase the size of the
==20800== main thread stack using the --main-stacksize= flag.
==20800== 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 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 57: set nil key - Can't connect to 127.0.0.1:1984: Connection refused ==20801== Invalid read of size 4
==20801== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20801== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20801== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20801== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20801== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20801== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20801== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20801== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20801== by 0x8062D4E: main (nginx.c:382)
==20801== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20801==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 57: set nil key - Can't connect to 127.0.0.1:1984: Connection refused ==20801==
==20801== Process terminating with default action of signal 11 (SIGSEGV)
==20801== Access not within mapped region at address 0x0
==20801== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20801== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20801== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20801== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20801== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20801== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20801== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20801== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20801== by 0x8062D4E: main (nginx.c:382)
==20801== If you believe this happened as a result of a stack
==20801== overflow in your program's main thread (unlikely but
==20801== possible), you can try to increase the size of the
==20801== main thread stack using the --main-stacksize= flag.
==20801== 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 57: set nil key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: nil key
'
043-shdict.t TEST 32: replace key (key not exists) - Can't connect to 127.0.0.1:1984: Connection refused ==20802== Invalid read of size 4
==20802== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20802== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20802== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20802== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20802== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20802== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20802== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20802== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20802== by 0x8062D4E: main (nginx.c:382)
==20802== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20802==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 32: replace key (key not exists) - Can't connect to 127.0.0.1:1984: Connection refused ==20802==
==20802== Process terminating with default action of signal 11 (SIGSEGV)
==20802== Access not within mapped region at address 0x0
==20802== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20802== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20802== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20802== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20802== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20802== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20802== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20802== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20802== by 0x8062D4E: main (nginx.c:382)
==20802== If you believe this happened as a result of a stack
==20802== overflow in your program's main thread (unlikely but
==20802== possible), you can try to increase the size of the
==20802== main thread stack using the --main-stacksize= flag.
==20802== 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 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 50: list keys in an empty shdict with a limit - Can't connect to 127.0.0.1:1984: Connection refused ==20803== Invalid read of size 4
==20803== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20803== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20803== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20803== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20803== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20803== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20803== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20803== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20803== by 0x8062D4E: main (nginx.c:382)
==20803== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20803==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 50: list keys in an empty shdict with a limit - Can't connect to 127.0.0.1:1984: Connection refused ==20803==
==20803== Process terminating with default action of signal 11 (SIGSEGV)
==20803== Access not within mapped region at address 0x0
==20803== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20803== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20803== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20803== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20803== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20803== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20803== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20803== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20803== by 0x8062D4E: main (nginx.c:382)
==20803== If you believe this happened as a result of a stack
==20803== overflow in your program's main thread (unlikely but
==20803== possible), you can try to increase the size of the
==20803== main thread stack using the --main-stacksize= flag.
==20803== 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 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 86: check the type of the shdict object - Can't connect to 127.0.0.1:1984: Connection refused ==20804== Invalid read of size 4
==20804== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20804== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20804== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20804== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20804== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20804== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20804== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20804== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20804== by 0x8062D4E: main (nginx.c:382)
==20804== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20804==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==20804==
==20804== Process terminating with default action of signal 11 (SIGSEGV)
==20804== Access not within mapped region at address 0x0
==20804== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20804== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20804== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20804== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20804== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20804== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20804== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20804== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20804== by 0x8062D4E: main (nginx.c:382)
==20804== If you believe this happened as a result of a stack
==20804== overflow in your program's main thread (unlikely but
==20804== possible), you can try to increase the size of the
==20804== main thread stack using the --main-stacksize= flag.
==20804== 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 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 85: incr bad zone table - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20805== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
043-shdict.t TEST 85: incr bad zone table - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20805== by 0x8062D4E: main (nginx.c:382)
==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.

043-shdict.t TEST 85: incr bad zone table - status code ok got: ''
expected: '200'
043-shdict.t TEST 43: flush_expires an empty dict - Can't connect to 127.0.0.1:1984: Connection refused ==20806== Invalid read of size 4
==20806== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20806== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20806== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20806== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20806== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20806== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20806== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20806== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20806== by 0x8062D4E: main (nginx.c:382)
==20806== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20806==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 43: flush_expires an empty dict - Can't connect to 127.0.0.1:1984: Connection refused ==20806==
==20806== Process terminating with default action of signal 11 (SIGSEGV)
==20806== Access not within mapped region at address 0x0
==20806== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20806== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20806== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20806== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20806== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20806== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20806== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20806== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20806== by 0x8062D4E: main (nginx.c:382)
==20806== If you believe this happened as a result of a stack
==20806== overflow in your program's main thread (unlikely but
==20806== possible), you can try to increase the size of the
==20806== main thread stack using the --main-stacksize= flag.
==20806== 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 43: flush_expires an empty dict - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '0
'
043-shdict.t TEST 71: set & get_stale boolean values (true) - Can't connect to 127.0.0.1:1984: Connection refused ==20807== Invalid read of size 4
==20807== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20807== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20807== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20807== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20807== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20807== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20807== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20807== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20807== by 0x8062D4E: main (nginx.c:382)
==20807== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20807==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 71: set & get_stale boolean values (true) - Can't connect to 127.0.0.1:1984: Connection refused ==20807==
==20807== Process terminating with default action of signal 11 (SIGSEGV)
==20807== Access not within mapped region at address 0x0
==20807== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20807== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20807== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20807== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20807== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20807== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20807== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20807== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20807== by 0x8062D4E: main (nginx.c:382)
==20807== If you believe this happened as a result of a stack
==20807== overflow in your program's main thread (unlikely but
==20807== possible), you can try to increase the size of the
==20807== main thread stack using the --main-stacksize= flag.
==20807== 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 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 25: add key (key expired) - Can't connect to 127.0.0.1:1984: Connection refused ==20808== Invalid read of size 4
==20808== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20808== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20808== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20808== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20808== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20808== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20808== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20808== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20808== by 0x8062D4E: main (nginx.c:382)
==20808== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20808==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 25: add key (key expired) - Can't connect to 127.0.0.1:1984: Connection refused ==20808==
==20808== Process terminating with default action of signal 11 (SIGSEGV)
==20808== Access not within mapped region at address 0x0
==20808== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20808== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20808== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20808== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20808== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20808== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20808== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20808== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20808== by 0x8062D4E: main (nginx.c:382)
==20808== If you believe this happened as a result of a stack
==20808== overflow in your program's main thread (unlikely but
==20808== possible), you can try to increase the size of the
==20808== main thread stack using the --main-stacksize= flag.
==20808== 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 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 21: fail to allocate memory - Can't connect to 127.0.0.1:1984: Connection refused ==20809== Invalid read of size 4
==20809== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20809== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20809== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20809== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20809== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20809== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20809== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20809== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20809== by 0x8062D4E: main (nginx.c:382)
==20809== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20809==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 21: fail to allocate memory - Can't connect to 127.0.0.1:1984: Connection refused ==20809==
==20809== Process terminating with default action of signal 11 (SIGSEGV)
==20809== Access not within mapped region at address 0x0
==20809== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20809== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20809== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20809== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20809== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20809== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20809== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20809== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20809== by 0x8062D4E: main (nginx.c:382)
==20809== If you believe this happened as a result of a stack
==20809== overflow in your program's main thread (unlikely but
==20809== possible), you can try to increase the size of the
==20809== main thread stack using the --main-stacksize= flag.
==20809== The main thread stack size used in this run was 8388608.
==20809== 2,048 bytes in 1 blocks are definitely lost in loss record 2,814 of 2,873
==20809== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==20809== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==20809== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20809== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20809== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==20809== by 0x408A8C6: ir_nextk (lj_ir.c:175)
==20809== by 0x408A8C6: lj_ir_kgc (lj_ir.c:286)
==20809== by 0x409AAFA: lj_record_constify (lj_record.c:251)
==20809== by 0x409AE30: rec_upvalue (lj_record.c:1620)
==20809== by 0x40A054C: lj_record_ins (lj_record.c:2314)
==20809== by 0x40BB16A: trace_state (lj_trace.c:680)
==20809== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20809== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20809== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20809== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20809== by 0x407FA29: lua_resume (lj_api.c:1296)
==20809== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20809== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20809== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20809== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20809== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20809== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20809== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20809== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20809== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20809== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20809== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20809== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20809== by 0x8062D4E: main (nginx.c:382)
==20809==
{
<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_single_process_cycle
fun:main
}
043-shdict.t TEST 21: fail to allocate memory - status code ok got: ''
expected: '200'
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 31: incr key (key exists) - Can't connect to 127.0.0.1:1984: Connection refused ==20810== Invalid read of size 4
==20810== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20810== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20810== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20810== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20810== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20810== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20810== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20810== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20810== by 0x8062D4E: main (nginx.c:382)
==20810== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20810==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 31: incr key (key exists) - Can't connect to 127.0.0.1:1984: Connection refused ==20810==
==20810== Process terminating with default action of signal 11 (SIGSEGV)
==20810== Access not within mapped region at address 0x0
==20810== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20810== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20810== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20810== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20810== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20810== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20810== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20810== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20810== by 0x8062D4E: main (nginx.c:382)
==20810== If you believe this happened as a result of a stack
==20810== overflow in your program's main thread (unlikely but
==20810== possible), you can try to increase the size of the
==20810== main thread stack using the --main-stacksize= flag.
==20810== 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 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 58: set bad zone argument - Can't connect to 127.0.0.1:1984: Connection refused ==20811== Invalid read of size 4
==20811== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20811== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20811== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20811== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20811== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20811== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20811== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20811== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20811== by 0x8062D4E: main (nginx.c:382)
==20811== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20811==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 58: set bad zone argument - Can't connect to 127.0.0.1:1984: Connection refused ==20811==
==20811== Process terminating with default action of signal 11 (SIGSEGV)
==20811== Access not within mapped region at address 0x0
==20811== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20811== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20811== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20811== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20811== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20811== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20811== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20811== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20811== by 0x8062D4E: main (nginx.c:382)
==20811== If you believe this happened as a result of a stack
==20811== overflow in your program's main thread (unlikely but
==20811== possible), you can try to increase the size of the
==20811== main thread stack using the --main-stacksize= flag.
==20811== 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 17: delete after setting values - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20812== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
043-shdict.t TEST 17: delete after setting values - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20812== by 0x8062D4E: main (nginx.c:382)
==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.

043-shdict.t TEST 17: delete after setting values - status code ok got: ''
expected: '200'
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 52: list all keys in a shdict with more than 1024 keys with no limit set - Can't connect to 127.0.0.1:1984: Connection refused ==20813== Invalid read of size 4
==20813== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20813== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20813== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20813== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20813== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20813== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20813== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20813== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20813== by 0x8062D4E: main (nginx.c:382)
==20813== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20813==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 52: list all keys in a shdict with more than 1024 keys with no limit set - Can't connect to 127.0.0.1:1984: Connection refused ==20813==
==20813== Process terminating with default action of signal 11 (SIGSEGV)
==20813== Access not within mapped region at address 0x0
==20813== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20813== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20813== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20813== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20813== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20813== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20813== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20813== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20813== by 0x8062D4E: main (nginx.c:382)
==20813== If you believe this happened as a result of a stack
==20813== overflow in your program's main thread (unlikely but
==20813== possible), you can try to increase the size of the
==20813== main thread stack using the --main-stacksize= flag.
==20813== The main thread stack size used in this run was 8388608.
==20813== 2,048 bytes in 1 blocks are definitely lost in loss record 2,813 of 2,870
==20813== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20813== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20813== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20813== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20813== by 0x408F5A6: lj_ir_nextins (lj_iropt.h:34)
==20813== by 0x408F5A6: lj_opt_cse (lj_opt_fold.c:2549)
==20813== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20813== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20813== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20813== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20813== by 0x40BB675: trace_state (lj_trace.c:690)
==20813== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20813== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20813== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20813== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20813== by 0x407FA29: lua_resume (lj_api.c:1296)
==20813== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20813== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20813== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20813== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20813== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20813== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20813== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20813== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20813== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20813== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20813== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20813== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20813== by 0x8062D4E: main (nginx.c:382)
==20813==
{
<insert_a_suppression_name_here>
Memcheck: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_single_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 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 44: flush_expires a dict without expired items - Can't connect to 127.0.0.1:1984: Connection refused ==20814== Invalid read of size 4
==20814== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20814== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20814== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20814== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20814== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20814== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20814== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20814== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20814== by 0x8062D4E: main (nginx.c:382)
==20814== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20814==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 44: flush_expires a dict without expired items - Can't connect to 127.0.0.1:1984: Connection refused ==20814==
==20814== Process terminating with default action of signal 11 (SIGSEGV)
==20814== Access not within mapped region at address 0x0
==20814== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20814== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20814== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20814== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20814== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20814== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20814== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20814== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20814== by 0x8062D4E: main (nginx.c:382)
==20814== If you believe this happened as a result of a stack
==20814== overflow in your program's main thread (unlikely but
==20814== possible), you can try to increase the size of the
==20814== main thread stack using the --main-stacksize= flag.
==20814== 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 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 - Can't connect to 127.0.0.1:1984: Connection refused ==20815== Invalid read of size 4
==20815== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20815== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20815== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20815== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20815== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20815== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20815== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20815== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20815== by 0x8062D4E: main (nginx.c:382)
==20815== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20815==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
043-shdict.t TEST 15: set too large key - Can't connect to 127.0.0.1:1984: Connection refused ==20815==
==20815== Process terminating with default action of signal 11 (SIGSEGV)
==20815== Access not within mapped region at address 0x0
==20815== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20815== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20815== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20815== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20815== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20815== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20815== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20815== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20815== by 0x8062D4E: main (nginx.c:382)
==20815== If you believe this happened as a result of a stack
==20815== overflow in your program's main thread (unlikely but
==20815== possible), you can try to increase the size of the
==20815== main thread stack using the --main-stacksize= flag.
==20815== 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 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
'
045-ngx-var.t TEST 1: pid - Can't connect to 127.0.0.1:1984: Connection refused ==20819== Invalid read of size 4
==20819== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20819== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20819== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20819== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20819== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20819== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20819== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20819== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20819== by 0x8062D4E: main (nginx.c:382)
==20819== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20819==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
045-ngx-var.t TEST 1: pid - Can't connect to 127.0.0.1:1984: Connection refused ==20819==
==20819== Process terminating with default action of signal 11 (SIGSEGV)
==20819== Access not within mapped region at address 0x0
==20819== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20819== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20819== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20819== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20819== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20819== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20819== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20819== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20819== by 0x8062D4E: main (nginx.c:382)
==20819== If you believe this happened as a result of a stack
==20819== overflow in your program's main thread (unlikely but
==20819== possible), you can try to increase the size of the
==20819== main thread stack using the --main-stacksize= flag.
==20819== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 5: connection & nginx_version - Can't connect to 127.0.0.1:1984: Connection refused ==20821== Invalid read of size 4
==20821== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20821== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20821== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20821== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20821== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20821== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20821== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20821== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20821== by 0x8062D4E: main (nginx.c:382)
==20821== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20821==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
045-ngx-var.t TEST 5: connection & nginx_version - Can't connect to 127.0.0.1:1984: Connection refused ==20821==
==20821== Process terminating with default action of signal 11 (SIGSEGV)
==20821== Access not within mapped region at address 0x0
==20821== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20821== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20821== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20821== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20821== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20821== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20821== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20821== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20821== by 0x8062D4E: main (nginx.c:382)
==20821== If you believe this happened as a result of a stack
==20821== overflow in your program's main thread (unlikely but
==20821== possible), you can try to increase the size of the
==20821== main thread stack using the --main-stacksize= flag.
==20821== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 8: get a bad variable name - Can't connect to 127.0.0.1:1984: Connection refused ==20823== Invalid read of size 4
==20823== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20823== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20823== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20823== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20823== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20823== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20823== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20823== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20823== by 0x8062D4E: main (nginx.c:382)
==20823== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20823==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==20823==
==20823== Process terminating with default action of signal 11 (SIGSEGV)
==20823== Access not within mapped region at address 0x0
==20823== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20823== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20823== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20823== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20823== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20823== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20823== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20823== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20823== by 0x8062D4E: main (nginx.c:382)
==20823== If you believe this happened as a result of a stack
==20823== overflow in your program's main thread (unlikely but
==20823== possible), you can try to increase the size of the
==20823== main thread stack using the --main-stacksize= flag.
==20823== 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 (aborted) '
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 - pattern "bad variable name" should match a line in error.log (req 1)
045-ngx-var.t TEST 7: variable name is caseless - Can't connect to 127.0.0.1:1984: Connection refused ==20825== Invalid read of size 4
==20825== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20825== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20825== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20825== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20825== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20825== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20825== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20825== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20825== by 0x8062D4E: main (nginx.c:382)
==20825== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20825==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
045-ngx-var.t TEST 7: variable name is caseless - Can't connect to 127.0.0.1:1984: Connection refused ==20825==
==20825== Process terminating with default action of signal 11 (SIGSEGV)
==20825== Access not within mapped region at address 0x0
==20825== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20825== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20825== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20825== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20825== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20825== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20825== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20825== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20825== by 0x8062D4E: main (nginx.c:382)
==20825== If you believe this happened as a result of a stack
==20825== overflow in your program's main thread (unlikely but
==20825== possible), you can try to increase the size of the
==20825== main thread stack using the --main-stacksize= flag.
==20825== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 9: can not set variable - Can't connect to 127.0.0.1:1984: Connection refused ==20827== Invalid read of size 4
==20827== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20827== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20827== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20827== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20827== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20827== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20827== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20827== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20827== by 0x8062D4E: main (nginx.c:382)
==20827== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20827==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
045-ngx-var.t TEST 9: can not set variable - Can't connect to 127.0.0.1:1984: Connection refused ==20827==
==20827== Process terminating with default action of signal 11 (SIGSEGV)
==20827== Access not within mapped region at address 0x0
==20827== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20827== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20827== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20827== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20827== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20827== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20827== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20827== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20827== by 0x8062D4E: main (nginx.c:382)
==20827== If you believe this happened as a result of a stack
==20827== overflow in your program's main thread (unlikely but
==20827== possible), you can try to increase the size of the
==20827== main thread stack using the --main-stacksize= flag.
==20827== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - pattern "variable "foo" not found for writing" should match a line in error.log (req 1)
045-ngx-var.t TEST 4: server_addr & server_port - Can't connect to 127.0.0.1:1984: Connection refused ==20829== Invalid read of size 4
==20829== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20829== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20829== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20829== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20829== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20829== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20829== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20829== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20829== by 0x8062D4E: main (nginx.c:382)
==20829== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20829==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
045-ngx-var.t TEST 4: server_addr & server_port - Can't connect to 127.0.0.1:1984: Connection refused ==20829==
==20829== Process terminating with default action of signal 11 (SIGSEGV)
==20829== Access not within mapped region at address 0x0
==20829== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20829== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20829== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20829== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20829== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20829== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20829== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20829== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20829== by 0x8062D4E: main (nginx.c:382)
==20829== If you believe this happened as a result of a stack
==20829== overflow in your program's main thread (unlikely but
==20829== possible), you can try to increase the size of the
==20829== main thread stack using the --main-stacksize= flag.
==20829== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 3: binary_remote_addr - Can't connect to 127.0.0.1:1984: Connection refused ==20831== Invalid read of size 4
==20831== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20831== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20831== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20831== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20831== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20831== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20831== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20831== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20831== by 0x8062D4E: main (nginx.c:382)
==20831== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20831==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
045-ngx-var.t TEST 3: binary_remote_addr - Can't connect to 127.0.0.1:1984: Connection refused ==20831==
==20831== Process terminating with default action of signal 11 (SIGSEGV)
==20831== Access not within mapped region at address 0x0
==20831== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20831== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20831== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20831== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20831== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20831== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20831== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20831== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20831== by 0x8062D4E: main (nginx.c:382)
==20831== If you believe this happened as a result of a stack
==20831== overflow in your program's main thread (unlikely but
==20831== possible), you can try to increase the size of the
==20831== main thread stack using the --main-stacksize= flag.
==20831== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==20833== Invalid read of size 4
==20833== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20833== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20833== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20833== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20833== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20833== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20833== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20833== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20833== by 0x8062D4E: main (nginx.c:382)
==20833== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20833==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
045-ngx-var.t TEST 2: remote_addr - Can't connect to 127.0.0.1:1984: Connection refused ==20833==
==20833== Process terminating with default action of signal 11 (SIGSEGV)
==20833== Access not within mapped region at address 0x0
==20833== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20833== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20833== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20833== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20833== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20833== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20833== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20833== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20833== by 0x8062D4E: main (nginx.c:382)
==20833== If you believe this happened as a result of a stack
==20833== overflow in your program's main thread (unlikely but
==20833== possible), you can try to increase the size of the
==20833== main thread stack using the --main-stacksize= flag.
==20833== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 6: reference nonexistent variable - Can't connect to 127.0.0.1:1984: Connection refused ==20835== Invalid read of size 4
==20835== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20835== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20835== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20835== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20835== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20835== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20835== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20835== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20835== by 0x8062D4E: main (nginx.c:382)
==20835== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20835==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
045-ngx-var.t TEST 6: reference nonexistent variable - Can't connect to 127.0.0.1:1984: Connection refused ==20835==
==20835== Process terminating with default action of signal 11 (SIGSEGV)
==20835== Access not within mapped region at address 0x0
==20835== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20835== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20835== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20835== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20835== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20835== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20835== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20835== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20835== by 0x8062D4E: main (nginx.c:382)
==20835== If you believe this happened as a result of a stack
==20835== overflow in your program's main thread (unlikely but
==20835== possible), you can try to increase the size of the
==20835== main thread stack using the --main-stacksize= flag.
==20835== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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)
046-hmac.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==20840== Invalid read of size 4
==20840== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20840== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20840== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20840== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20840== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20840== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20840== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20840== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20840== by 0x8062D4E: main (nginx.c:382)
==20840== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20840==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
046-hmac.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==20840==
==20840== Process terminating with default action of signal 11 (SIGSEGV)
==20840== Access not within mapped region at address 0x0
==20840== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20840== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20840== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20840== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20840== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20840== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20840== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20840== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20840== by 0x8062D4E: main (nginx.c:382)
==20840== If you believe this happened as a result of a stack
==20840== overflow in your program's main thread (unlikely but
==20840== possible), you can try to increase the size of the
==20840== main thread stack using the --main-stacksize= flag.
==20840== 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 (aborted) '
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 6: just hit match limit - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20845== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
047-match-jit.t TEST 6: just hit match limit - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20845== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: matched with j - Can't connect to 127.0.0.1:1984: Connection refused ==20847== Invalid read of size 4
==20847== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20847== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20847== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20847== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20847== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20847== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20847== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20847== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20847== by 0x8062D4E: main (nginx.c:382)
==20847== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20847==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
047-match-jit.t TEST 1: matched with j - Can't connect to 127.0.0.1:1984: Connection refused ==20847==
==20847== Process terminating with default action of signal 11 (SIGSEGV)
==20847== Access not within mapped region at address 0x0
==20847== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20847== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20847== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20847== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20847== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20847== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20847== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20847== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20847== by 0x8062D4E: main (nginx.c:382)
==20847== If you believe this happened as a result of a stack
==20847== overflow in your program's main thread (unlikely but
==20847== possible), you can try to increase the size of the
==20847== main thread stack using the --main-stacksize= flag.
==20847== The main thread stack size used in this run was 8388608.
==20847== 1,024 bytes in 1 blocks are definitely lost in loss record 2,746 of 2,846
==20847== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20847== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20847== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20847== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20847== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20847== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20847== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20847== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20847== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20847== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20847== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20847== by 0x40BB675: trace_state (lj_trace.c:690)
==20847== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20847== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20847== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20847== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20847== by 0x407FA29: lua_resume (lj_api.c:1296)
==20847== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20847== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20847== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20847== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20847== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20847== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20847== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20847== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20847== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20847== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20847== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20847== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20847== by 0x8062D4E: main (nginx.c:382)
==20847==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: matched with j - pattern "pcre JIT compiling result: 1" should match a line in error.log (req 1)
047-match-jit.t TEST 2: not matched with j - Can't connect to 127.0.0.1:1984: Connection refused ==20849== Invalid read of size 4
==20849== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20849== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20849== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20849== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20849== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20849== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20849== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20849== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20849== by 0x8062D4E: main (nginx.c:382)
==20849== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20849==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==20849==
==20849== Process terminating with default action of signal 11 (SIGSEGV)
==20849== Access not within mapped region at address 0x0
==20849== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20849== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20849== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20849== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20849== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20849== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20849== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20849== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20849== by 0x8062D4E: main (nginx.c:382)
==20849== If you believe this happened as a result of a stack
==20849== overflow in your program's main thread (unlikely but
==20849== possible), you can try to increase the size of the
==20849== main thread stack using the --main-stacksize= flag.
==20849== The main thread stack size used in this run was 8388608.
==20849== 1,024 bytes in 1 blocks are definitely lost in loss record 2,754 of 2,856
==20849== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20849== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20849== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20849== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20849== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20849== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20849== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20849== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20849== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20849== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20849== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20849== by 0x40BB675: trace_state (lj_trace.c:690)
==20849== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20849== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20849== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20849== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20849== by 0x407FA29: lua_resume (lj_api.c:1296)
==20849== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20849== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20849== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20849== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20849== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20849== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20849== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20849== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20849== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20849== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20849== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20849== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20849== by 0x8062D4E: main (nginx.c:382)
==20849==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 (aborted) '
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 2: not matched with j - pattern "pcre JIT compiling result: 1" should match a line in error.log (req 1)
047-match-jit.t TEST 5: bad pattern - Can't connect to 127.0.0.1:1984: Connection refused ==20851== Invalid read of size 4
==20851== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20851== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20851== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20851== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20851== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20851== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20851== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20851== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20851== by 0x8062D4E: main (nginx.c:382)
==20851== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20851==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
047-match-jit.t TEST 5: bad pattern - Can't connect to 127.0.0.1:1984: Connection refused ==20851==
==20851== Process terminating with default action of signal 11 (SIGSEGV)
==20851== Access not within mapped region at address 0x0
==20851== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20851== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20851== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20851== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20851== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20851== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20851== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20851== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20851== by 0x8062D4E: main (nginx.c:382)
==20851== If you believe this happened as a result of a stack
==20851== overflow in your program's main thread (unlikely but
==20851== possible), you can try to increase the size of the
==20851== main thread stack using the --main-stacksize= flag.
==20851== The main thread stack size used in this run was 8388608.
==20851== 1,024 bytes in 1 blocks are definitely lost in loss record 2,754 of 2,857
==20851== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20851== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20851== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20851== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20851== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20851== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20851== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20851== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20851== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20851== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20851== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20851== by 0x40BB675: trace_state (lj_trace.c:690)
==20851== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20851== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20851== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20851== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20851== by 0x407FA29: lua_resume (lj_api.c:1296)
==20851== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20851== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20851== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20851== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20851== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20851== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20851== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20851== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20851== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20851== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20851== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20851== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20851== by 0x8062D4E: main (nginx.c:382)
==20851==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 7: just not hit match limit - Can't connect to 127.0.0.1:1984: Connection refused ==20853== Invalid read of size 4
==20853== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20853== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20853== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20853== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20853== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20853== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20853== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20853== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20853== by 0x8062D4E: main (nginx.c:382)
==20853== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20853==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
047-match-jit.t TEST 7: just not hit match limit - Can't connect to 127.0.0.1:1984: Connection refused ==20853==
==20853== Process terminating with default action of signal 11 (SIGSEGV)
==20853== Access not within mapped region at address 0x0
==20853== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20853== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20853== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20853== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20853== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20853== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20853== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20853== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20853== by 0x8062D4E: main (nginx.c:382)
==20853== If you believe this happened as a result of a stack
==20853== overflow in your program's main thread (unlikely but
==20853== possible), you can try to increase the size of the
==20853== main thread stack using the --main-stacksize= flag.
==20853== The main thread stack size used in this run was 8388608.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==20855== Invalid read of size 4
==20855== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20855== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20855== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20855== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20855== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20855== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20855== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20855== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20855== by 0x8062D4E: main (nginx.c:382)
==20855== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20855==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
047-match-jit.t TEST 4: not matched with jo - Can't connect to 127.0.0.1:1984: Connection refused ==20855==
==20855== Process terminating with default action of signal 11 (SIGSEGV)
==20855== Access not within mapped region at address 0x0
==20855== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20855== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20855== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20855== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20855== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20855== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20855== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20855== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20855== by 0x8062D4E: main (nginx.c:382)
==20855== If you believe this happened as a result of a stack
==20855== overflow in your program's main thread (unlikely but
==20855== possible), you can try to increase the size of the
==20855== main thread stack using the --main-stacksize= flag.
==20855== The main thread stack size used in this run was 8388608.
==20855== 1,024 bytes in 1 blocks are definitely lost in loss record 2,905 of 3,028
==20855== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20855== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20855== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20855== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20855== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20855== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20855== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20855== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20855== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20855== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20855== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20855== by 0x40BB675: trace_state (lj_trace.c:690)
==20855== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20855== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20855== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20855== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20855== by 0x407FA29: lua_resume (lj_api.c:1296)
==20855== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20855== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20855== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20855== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20855== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20855== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20855== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20855== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20855== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20855== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20855== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20855== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20855== by 0x8062D4E: main (nginx.c:382)
==20855==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 3: matched with jo - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20857== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
047-match-jit.t TEST 3: matched with jo - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20857== by 0x8062D4E: main (nginx.c:382)
==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,778 of 2,881
==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20857== by 0x8062D4E: main (nginx.c:382)
==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_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
048-match-dfa.t TEST 6: UTF-8 mode without UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused ==20862== Invalid read of size 4
==20862== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20862== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20862== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20862== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20862== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20862== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20862== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20862== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20862== by 0x8062D4E: main (nginx.c:382)
==20862== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20862==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
048-match-dfa.t TEST 6: UTF-8 mode without UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused ==20862==
==20862== Process terminating with default action of signal 11 (SIGSEGV)
==20862== Access not within mapped region at address 0x0
==20862== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20862== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20862== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20862== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20862== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20862== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20862== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20862== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20862== by 0x8062D4E: main (nginx.c:382)
==20862== If you believe this happened as a result of a stack
==20862== overflow in your program's main thread (unlikely but
==20862== possible), you can try to increase the size of the
==20862== main thread stack using the --main-stacksize= flag.
==20862== The main thread stack size used in this run was 8388608.
==20862== 1,024 bytes in 1 blocks are definitely lost in loss record 2,743 of 2,846
==20862== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20862== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20862== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20862== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20862== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20862== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20862== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20862== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20862== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20862== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20862== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20862== by 0x40BB675: trace_state (lj_trace.c:690)
==20862== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20862== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20862== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20862== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20862== by 0x407FA29: lua_resume (lj_api.c:1296)
==20862== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20862== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20862== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20862== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20862== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20862== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20862== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20862== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20862== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20862== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20862== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20862== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20862== by 0x8062D4E: main (nginx.c:382)
==20862==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 2: matched with d + j - Can't connect to 127.0.0.1:1984: Connection refused ==20864== Invalid read of size 4
==20864== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20864== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20864== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20864== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20864== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20864== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20864== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20864== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20864== by 0x8062D4E: main (nginx.c:382)
==20864== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20864==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
048-match-dfa.t TEST 2: matched with d + j - Can't connect to 127.0.0.1:1984: Connection refused ==20864==
==20864== Process terminating with default action of signal 11 (SIGSEGV)
==20864== Access not within mapped region at address 0x0
==20864== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20864== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20864== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20864== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20864== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20864== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20864== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20864== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20864== by 0x8062D4E: main (nginx.c:382)
==20864== If you believe this happened as a result of a stack
==20864== overflow in your program's main thread (unlikely but
==20864== possible), you can try to increase the size of the
==20864== main thread stack using the --main-stacksize= flag.
==20864== The main thread stack size used in this run was 8388608.
==20864== 1,024 bytes in 1 blocks are definitely lost in loss record 2,769 of 2,871
==20864== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20864== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20864== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20864== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20864== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20864== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20864== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20864== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20864== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20864== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20864== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20864== by 0x40BB675: trace_state (lj_trace.c:690)
==20864== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20864== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20864== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20864== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20864== by 0x407FA29: lua_resume (lj_api.c:1296)
==20864== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20864== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20864== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20864== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20864== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20864== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20864== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20864== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20864== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20864== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20864== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20864== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20864== by 0x8062D4E: main (nginx.c:382)
==20864==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
048-match-dfa.t TEST 5: not matched with do - Can't connect to 127.0.0.1:1984: Connection refused ==20866== Invalid read of size 4
==20866== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20866== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20866== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20866== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20866== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20866== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20866== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20866== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20866== by 0x8062D4E: main (nginx.c:382)
==20866== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20866==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
048-match-dfa.t TEST 5: not matched with do - Can't connect to 127.0.0.1:1984: Connection refused ==20866==
==20866== Process terminating with default action of signal 11 (SIGSEGV)
==20866== Access not within mapped region at address 0x0
==20866== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20866== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20866== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20866== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20866== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20866== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20866== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20866== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20866== by 0x8062D4E: main (nginx.c:382)
==20866== If you believe this happened as a result of a stack
==20866== overflow in your program's main thread (unlikely but
==20866== possible), you can try to increase the size of the
==20866== main thread stack using the --main-stacksize= flag.
==20866== The main thread stack size used in this run was 8388608.
==20866== 1,024 bytes in 1 blocks are definitely lost in loss record 2,774 of 2,877
==20866== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20866== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20866== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20866== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20866== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20866== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20866== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20866== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20866== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20866== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20866== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20866== by 0x40BB675: trace_state (lj_trace.c:690)
==20866== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20866== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20866== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20866== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20866== by 0x407FA29: lua_resume (lj_api.c:1296)
==20866== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20866== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20866== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20866== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20866== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20866== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20866== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20866== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20866== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20866== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20866== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20866== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20866== by 0x8062D4E: main (nginx.c:382)
==20866==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 3: not matched with j - Can't connect to 127.0.0.1:1984: Connection refused ==20868== Invalid read of size 4
==20868== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20868== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20868== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20868== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20868== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20868== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20868== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20868== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20868== by 0x8062D4E: main (nginx.c:382)
==20868== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20868==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
048-match-dfa.t TEST 3: not matched with j - Can't connect to 127.0.0.1:1984: Connection refused ==20868==
==20868== Process terminating with default action of signal 11 (SIGSEGV)
==20868== Access not within mapped region at address 0x0
==20868== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20868== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20868== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20868== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20868== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20868== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20868== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20868== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20868== by 0x8062D4E: main (nginx.c:382)
==20868== If you believe this happened as a result of a stack
==20868== overflow in your program's main thread (unlikely but
==20868== possible), you can try to increase the size of the
==20868== main thread stack using the --main-stacksize= flag.
==20868== The main thread stack size used in this run was 8388608.
==20868== 1,024 bytes in 1 blocks are definitely lost in loss record 2,871 of 2,992
==20868== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20868== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20868== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20868== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20868== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20868== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20868== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20868== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20868== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20868== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20868== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20868== by 0x40BB675: trace_state (lj_trace.c:690)
==20868== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20868== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20868== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20868== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20868== by 0x407FA29: lua_resume (lj_api.c:1296)
==20868== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20868== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20868== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20868== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20868== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20868== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20868== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20868== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20868== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20868== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20868== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20868== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20868== by 0x8062D4E: main (nginx.c:382)
==20868==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==20870== Invalid read of size 4
==20870== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20870== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20870== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20870== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20870== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20870== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20870== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20870== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20870== by 0x8062D4E: main (nginx.c:382)
==20870== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20870==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
048-match-dfa.t TEST 7: UTF-8 mode with UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused ==20870==
==20870== Process terminating with default action of signal 11 (SIGSEGV)
==20870== Access not within mapped region at address 0x0
==20870== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20870== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20870== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20870== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20870== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20870== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20870== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20870== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20870== by 0x8062D4E: main (nginx.c:382)
==20870== If you believe this happened as a result of a stack
==20870== overflow in your program's main thread (unlikely but
==20870== possible), you can try to increase the size of the
==20870== main thread stack using the --main-stacksize= flag.
==20870== The main thread stack size used in this run was 8388608.
==20870== 1,024 bytes in 1 blocks are definitely lost in loss record 2,747 of 2,848
==20870== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20870== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20870== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20870== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20870== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20870== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20870== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20870== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20870== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20870== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20870== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20870== by 0x40BB675: trace_state (lj_trace.c:690)
==20870== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20870== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20870== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20870== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20870== by 0x407FA29: lua_resume (lj_api.c:1296)
==20870== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20870== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20870== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20870== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20870== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20870== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20870== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20870== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20870== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20870== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20870== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20870== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20870== by 0x8062D4E: main (nginx.c:382)
==20870==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 4: matched with do - Can't connect to 127.0.0.1:1984: Connection refused ==20872== Invalid read of size 4
==20872== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20872== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20872== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20872== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20872== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20872== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20872== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20872== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20872== by 0x8062D4E: main (nginx.c:382)
==20872== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20872==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
048-match-dfa.t TEST 4: matched with do - Can't connect to 127.0.0.1:1984: Connection refused ==20872==
==20872== Process terminating with default action of signal 11 (SIGSEGV)
==20872== Access not within mapped region at address 0x0
==20872== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20872== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20872== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20872== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20872== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20872== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20872== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20872== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20872== by 0x8062D4E: main (nginx.c:382)
==20872== If you believe this happened as a result of a stack
==20872== overflow in your program's main thread (unlikely but
==20872== possible), you can try to increase the size of the
==20872== main thread stack using the --main-stacksize= flag.
==20872== The main thread stack size used in this run was 8388608.
==20872== 1,024 bytes in 1 blocks are definitely lost in loss record 2,768 of 2,871
==20872== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20872== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20872== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20872== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20872== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20872== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20872== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20872== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20872== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20872== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20872== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20872== by 0x40BB675: trace_state (lj_trace.c:690)
==20872== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20872== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20872== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20872== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20872== by 0x407FA29: lua_resume (lj_api.c:1296)
==20872== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20872== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20872== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20872== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20872== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20872== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20872== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20872== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20872== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20872== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20872== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20872== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20872== by 0x8062D4E: main (nginx.c:382)
==20872==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: matched with d - Can't connect to 127.0.0.1:1984: Connection refused ==20874== Invalid read of size 4
==20874== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20874== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20874== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20874== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20874== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20874== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20874== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20874== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20874== by 0x8062D4E: main (nginx.c:382)
==20874== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20874==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
048-match-dfa.t TEST 1: matched with d - Can't connect to 127.0.0.1:1984: Connection refused ==20874==
==20874== Process terminating with default action of signal 11 (SIGSEGV)
==20874== Access not within mapped region at address 0x0
==20874== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20874== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20874== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20874== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20874== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20874== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20874== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20874== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20874== by 0x8062D4E: main (nginx.c:382)
==20874== If you believe this happened as a result of a stack
==20874== overflow in your program's main thread (unlikely but
==20874== possible), you can try to increase the size of the
==20874== main thread stack using the --main-stacksize= flag.
==20874== The main thread stack size used in this run was 8388608.
==20874== 1,024 bytes in 1 blocks are definitely lost in loss record 2,789 of 2,893
==20874== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20874== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20874== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20874== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20874== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20874== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20874== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20874== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20874== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20874== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20874== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20874== by 0x40BB675: trace_state (lj_trace.c:690)
==20874== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20874== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20874== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20874== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20874== by 0x407FA29: lua_resume (lj_api.c:1296)
==20874== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20874== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20874== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20874== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20874== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20874== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20874== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20874== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20874== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20874== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20874== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20874== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20874== by 0x8062D4E: main (nginx.c:382)
==20874==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 (aborted) '
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
'
049-gmatch-jit.t TEST 6: fail to match + o - Can't connect to 127.0.0.1:1984: Connection refused ==20879== Invalid read of size 4
==20879== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20879== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20879== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20879== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20879== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20879== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20879== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20879== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20879== by 0x8062D4E: main (nginx.c:382)
==20879== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20879==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==20879==
==20879== Process terminating with default action of signal 11 (SIGSEGV)
==20879== Access not within mapped region at address 0x0
==20879== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20879== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20879== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20879== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20879== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20879== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20879== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20879== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20879== by 0x8062D4E: main (nginx.c:382)
==20879== If you believe this happened as a result of a stack
==20879== overflow in your program's main thread (unlikely but
==20879== possible), you can try to increase the size of the
==20879== main thread stack using the --main-stacksize= flag.
==20879== The main thread stack size used in this run was 8388608.
==20879== 1,024 bytes in 1 blocks are definitely lost in loss record 2,850 of 2,967
==20879== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20879== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20879== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20879== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20879== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20879== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20879== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20879== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20879== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20879== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20879== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20879== by 0x40BB675: trace_state (lj_trace.c:690)
==20879== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20879== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20879== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20879== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20879== by 0x407FA29: lua_resume (lj_api.c:1296)
==20879== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20879== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20879== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20879== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20879== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20879== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20879== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20879== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20879== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20879== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20879== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20879== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20879== by 0x8062D4E: main (nginx.c:382)
==20879==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 (aborted) '
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 2: fail to match - Can't connect to 127.0.0.1:1984: Connection refused ==20881== Invalid read of size 4
==20881== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20881== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20881== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20881== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20881== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20881== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20881== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20881== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20881== by 0x8062D4E: main (nginx.c:382)
==20881== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20881==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
049-gmatch-jit.t TEST 2: fail to match - Can't connect to 127.0.0.1:1984: Connection refused ==20881==
==20881== Process terminating with default action of signal 11 (SIGSEGV)
==20881== Access not within mapped region at address 0x0
==20881== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20881== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20881== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20881== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20881== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20881== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20881== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20881== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20881== by 0x8062D4E: main (nginx.c:382)
==20881== If you believe this happened as a result of a stack
==20881== overflow in your program's main thread (unlikely but
==20881== possible), you can try to increase the size of the
==20881== main thread stack using the --main-stacksize= flag.
==20881== The main thread stack size used in this run was 8388608.
==20881== 1,024 bytes in 1 blocks are definitely lost in loss record 2,852 of 2,973
==20881== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20881== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20881== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20881== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20881== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20881== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20881== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20881== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20881== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20881== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20881== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20881== by 0x40BB675: trace_state (lj_trace.c:690)
==20881== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20881== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20881== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20881== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20881== by 0x407FA29: lua_resume (lj_api.c:1296)
==20881== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20881== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20881== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20881== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20881== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20881== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20881== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20881== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20881== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20881== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20881== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20881== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20881== by 0x8062D4E: main (nginx.c:382)
==20881==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 2: fail to match - pattern "pcre JIT compiling result: 1" should match a line in error.log (req 1)
049-gmatch-jit.t TEST 1: gmatch matched - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20883== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
049-gmatch-jit.t TEST 1: gmatch matched - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20883== by 0x8062D4E: main (nginx.c:382)
==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.
==20883== 1,024 bytes in 1 blocks are definitely lost in loss record 2,890 of 3,013
==20883== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20883== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20883== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20883== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20883== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20883== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20883== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20883== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20883== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20883== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20883== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20883== by 0x40BB675: trace_state (lj_trace.c:690)
==20883== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20883== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20883== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20883== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20883== by 0x407FA29: lua_resume (lj_api.c:1296)
==20883== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20883== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20883== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20883== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20883== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20883== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20883== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20883== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20883== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20883== by 0x8062D4E: main (nginx.c:382)
==20883==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: gmatch matched - pattern "pcre JIT compiling result: 1" should match a line in error.log (req 1)
049-gmatch-jit.t TEST 3: gmatch matched but no iterate - Can't connect to 127.0.0.1:1984: Connection refused ==20885== Invalid read of size 4
==20885== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20885== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20885== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20885== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20885== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20885== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20885== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20885== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20885== by 0x8062D4E: main (nginx.c:382)
==20885== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20885==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
049-gmatch-jit.t TEST 3: gmatch matched but no iterate - Can't connect to 127.0.0.1:1984: Connection refused ==20885==
==20885== Process terminating with default action of signal 11 (SIGSEGV)
==20885== Access not within mapped region at address 0x0
==20885== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20885== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20885== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20885== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20885== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20885== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20885== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20885== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20885== by 0x8062D4E: main (nginx.c:382)
==20885== If you believe this happened as a result of a stack
==20885== overflow in your program's main thread (unlikely but
==20885== possible), you can try to increase the size of the
==20885== main thread stack using the --main-stacksize= flag.
==20885== The main thread stack size used in this run was 8388608.
==20885== 1,024 bytes in 1 blocks are definitely lost in loss record 2,764 of 2,867
==20885== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20885== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20885== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20885== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20885== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20885== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20885== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20885== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20885== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20885== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20885== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20885== by 0x40BB675: trace_state (lj_trace.c:690)
==20885== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20885== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20885== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20885== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20885== by 0x407FA29: lua_resume (lj_api.c:1296)
==20885== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20885== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20885== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20885== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20885== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20885== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20885== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20885== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20885== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20885== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20885== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20885== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20885== by 0x8062D4E: main (nginx.c:382)
==20885==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 3: gmatch matched but no iterate - pattern "pcre JIT compiling result: 1" should match a line in error.log (req 1)
049-gmatch-jit.t TEST 7: gmatch matched but no iterate + o - Can't connect to 127.0.0.1:1984: Connection refused ==20887== Invalid read of size 4
==20887== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20887== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20887== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20887== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20887== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20887== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20887== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20887== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20887== by 0x8062D4E: main (nginx.c:382)
==20887== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20887==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
049-gmatch-jit.t TEST 7: gmatch matched but no iterate + o - Can't connect to 127.0.0.1:1984: Connection refused ==20887==
==20887== Process terminating with default action of signal 11 (SIGSEGV)
==20887== Access not within mapped region at address 0x0
==20887== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20887== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20887== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20887== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20887== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20887== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20887== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20887== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20887== by 0x8062D4E: main (nginx.c:382)
==20887== If you believe this happened as a result of a stack
==20887== overflow in your program's main thread (unlikely but
==20887== possible), you can try to increase the size of the
==20887== main thread stack using the --main-stacksize= flag.
==20887== The main thread stack size used in this run was 8388608.
==20887== 1,024 bytes in 1 blocks are definitely lost in loss record 2,755 of 2,858
==20887== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20887== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20887== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20887== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20887== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20887== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20887== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20887== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20887== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20887== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20887== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20887== by 0x40BB675: trace_state (lj_trace.c:690)
==20887== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20887== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20887== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20887== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20887== by 0x407FA29: lua_resume (lj_api.c:1296)
==20887== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20887== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20887== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20887== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20887== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20887== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20887== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20887== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20887== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20887== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20887== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20887== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20887== by 0x8062D4E: main (nginx.c:382)
==20887==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 8: gmatch matched but only iterate once and still matches remain + o - Can't connect to 127.0.0.1:1984: Connection refused ==20889== Invalid read of size 4
==20889== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20889== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20889== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20889== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20889== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20889== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20889== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20889== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20889== by 0x8062D4E: main (nginx.c:382)
==20889== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20889==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
049-gmatch-jit.t TEST 8: gmatch matched but only iterate once and still matches remain + o - Can't connect to 127.0.0.1:1984: Connection refused ==20889==
==20889== Process terminating with default action of signal 11 (SIGSEGV)
==20889== Access not within mapped region at address 0x0
==20889== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20889== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20889== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20889== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20889== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20889== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20889== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20889== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20889== by 0x8062D4E: main (nginx.c:382)
==20889== If you believe this happened as a result of a stack
==20889== overflow in your program's main thread (unlikely but
==20889== possible), you can try to increase the size of the
==20889== main thread stack using the --main-stacksize= flag.
==20889== The main thread stack size used in this run was 8388608.
==20889== 1,024 bytes in 1 blocks are definitely lost in loss record 2,906 of 3,028
==20889== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20889== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20889== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20889== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20889== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20889== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20889== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20889== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20889== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20889== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20889== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20889== by 0x40BB675: trace_state (lj_trace.c:690)
==20889== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20889== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20889== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20889== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20889== by 0x407FA29: lua_resume (lj_api.c:1296)
==20889== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20889== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20889== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20889== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20889== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20889== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20889== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20889== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20889== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20889== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20889== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20889== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20889== by 0x8062D4E: main (nginx.c:382)
==20889==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 5: gmatch matched + o - Can't connect to 127.0.0.1:1984: Connection refused ==20891== Invalid read of size 4
==20891== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20891== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20891== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20891== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20891== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20891== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20891== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20891== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20891== by 0x8062D4E: main (nginx.c:382)
==20891== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20891==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
049-gmatch-jit.t TEST 5: gmatch matched + o - Can't connect to 127.0.0.1:1984: Connection refused ==20891==
==20891== Process terminating with default action of signal 11 (SIGSEGV)
==20891== Access not within mapped region at address 0x0
==20891== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20891== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20891== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20891== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20891== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20891== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20891== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20891== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20891== by 0x8062D4E: main (nginx.c:382)
==20891== If you believe this happened as a result of a stack
==20891== overflow in your program's main thread (unlikely but
==20891== possible), you can try to increase the size of the
==20891== main thread stack using the --main-stacksize= flag.
==20891== The main thread stack size used in this run was 8388608.
==20891== 1,024 bytes in 1 blocks are definitely lost in loss record 2,759 of 2,859
==20891== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20891== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20891== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20891== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20891== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20891== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20891== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20891== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20891== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20891== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20891== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20891== by 0x40BB675: trace_state (lj_trace.c:690)
==20891== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20891== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20891== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20891== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20891== by 0x407FA29: lua_resume (lj_api.c:1296)
==20891== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20891== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20891== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20891== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20891== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20891== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20891== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20891== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20891== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20891== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20891== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20891== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20891== by 0x8062D4E: main (nginx.c:382)
==20891==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 4: gmatch matched but only iterate once and still matches remain - Can't connect to 127.0.0.1:1984: Connection refused ==20893== Invalid read of size 4
==20893== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20893== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20893== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20893== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20893== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20893== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20893== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20893== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20893== by 0x8062D4E: main (nginx.c:382)
==20893== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20893==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
049-gmatch-jit.t TEST 4: gmatch matched but only iterate once and still matches remain - Can't connect to 127.0.0.1:1984: Connection refused ==20893==
==20893== Process terminating with default action of signal 11 (SIGSEGV)
==20893== Access not within mapped region at address 0x0
==20893== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20893== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20893== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20893== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20893== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20893== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20893== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20893== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20893== by 0x8062D4E: main (nginx.c:382)
==20893== If you believe this happened as a result of a stack
==20893== overflow in your program's main thread (unlikely but
==20893== possible), you can try to increase the size of the
==20893== main thread stack using the --main-stacksize= flag.
==20893== The main thread stack size used in this run was 8388608.
==20893== 1,024 bytes in 1 blocks are definitely lost in loss record 2,896 of 3,019
==20893== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20893== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20893== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20893== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20893== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20893== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20893== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20893== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20893== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20893== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20893== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20893== by 0x40BB675: trace_state (lj_trace.c:690)
==20893== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20893== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20893== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20893== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20893== by 0x407FA29: lua_resume (lj_api.c:1296)
==20893== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20893== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20893== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20893== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20893== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20893== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20893== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20893== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20893== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20893== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20893== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20893== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20893== by 0x8062D4E: main (nginx.c:382)
==20893==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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)
049-gmatch-jit.t TEST 4: gmatch matched but only iterate once and still matches remain - pattern "pcre JIT compiling result: 1" should match a line in error.log (req 1)
049-gmatch-jit.t TEST 9: bad pattern - Can't connect to 127.0.0.1:1984: Connection refused ==20895== Invalid read of size 4
==20895== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20895== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20895== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20895== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20895== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20895== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20895== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20895== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20895== by 0x8062D4E: main (nginx.c:382)
==20895== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20895==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
049-gmatch-jit.t TEST 9: bad pattern - Can't connect to 127.0.0.1:1984: Connection refused ==20895==
==20895== Process terminating with default action of signal 11 (SIGSEGV)
==20895== Access not within mapped region at address 0x0
==20895== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20895== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20895== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20895== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20895== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20895== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20895== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20895== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20895== by 0x8062D4E: main (nginx.c:382)
==20895== If you believe this happened as a result of a stack
==20895== overflow in your program's main thread (unlikely but
==20895== possible), you can try to increase the size of the
==20895== main thread stack using the --main-stacksize= flag.
==20895== The main thread stack size used in this run was 8388608.
==20895== 1,024 bytes in 1 blocks are definitely lost in loss record 2,879 of 3,001
==20895== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20895== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20895== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20895== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20895== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20895== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20895== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20895== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20895== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20895== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20895== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20895== by 0x40BB675: trace_state (lj_trace.c:690)
==20895== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20895== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20895== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20895== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20895== by 0x407FA29: lua_resume (lj_api.c:1296)
==20895== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20895== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20895== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20895== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20895== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20895== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20895== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20895== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20895== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20895== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20895== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20895== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20895== by 0x8062D4E: main (nginx.c:382)
==20895==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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)
050-gmatch-dfa.t TEST 8: gmatch matched but no iterate + o - Can't connect to 127.0.0.1:1984: Connection refused ==20900== Invalid read of size 4
==20900== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20900== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20900== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20900== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20900== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20900== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20900== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20900== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20900== by 0x8062D4E: main (nginx.c:382)
==20900== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20900==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 8: gmatch matched but no iterate + o - Can't connect to 127.0.0.1:1984: Connection refused ==20900==
==20900== Process terminating with default action of signal 11 (SIGSEGV)
==20900== Access not within mapped region at address 0x0
==20900== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20900== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20900== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20900== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20900== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20900== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20900== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20900== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20900== by 0x8062D4E: main (nginx.c:382)
==20900== If you believe this happened as a result of a stack
==20900== overflow in your program's main thread (unlikely but
==20900== possible), you can try to increase the size of the
==20900== main thread stack using the --main-stacksize= flag.
==20900== The main thread stack size used in this run was 8388608.
==20900== 1,024 bytes in 1 blocks are definitely lost in loss record 2,765 of 2,867
==20900== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20900== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20900== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20900== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20900== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20900== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20900== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20900== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20900== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20900== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20900== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20900== by 0x40BB675: trace_state (lj_trace.c:690)
==20900== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20900== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20900== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20900== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20900== by 0x407FA29: lua_resume (lj_api.c:1296)
==20900== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20900== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20900== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20900== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20900== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20900== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20900== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20900== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20900== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20900== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20900== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20900== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20900== by 0x8062D4E: main (nginx.c:382)
==20900==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 10: bad pattern - Can't connect to 127.0.0.1:1984: Connection refused ==20902== Invalid read of size 4
==20902== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20902== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20902== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20902== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20902== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20902== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20902== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20902== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20902== by 0x8062D4E: main (nginx.c:382)
==20902== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20902==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 10: bad pattern - Can't connect to 127.0.0.1:1984: Connection refused ==20902==
==20902== Process terminating with default action of signal 11 (SIGSEGV)
==20902== Access not within mapped region at address 0x0
==20902== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20902== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20902== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20902== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20902== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20902== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20902== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20902== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20902== by 0x8062D4E: main (nginx.c:382)
==20902== If you believe this happened as a result of a stack
==20902== overflow in your program's main thread (unlikely but
==20902== possible), you can try to increase the size of the
==20902== main thread stack using the --main-stacksize= flag.
==20902== The main thread stack size used in this run was 8388608.
==20902== 1,024 bytes in 1 blocks are definitely lost in loss record 2,739 of 2,840
==20902== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20902== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20902== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20902== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20902== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20902== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20902== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20902== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20902== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20902== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20902== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20902== by 0x40BB675: trace_state (lj_trace.c:690)
==20902== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20902== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20902== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20902== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20902== by 0x407FA29: lua_resume (lj_api.c:1296)
==20902== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20902== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20902== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20902== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20902== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20902== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20902== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20902== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20902== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20902== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20902== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20902== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20902== by 0x8062D4E: main (nginx.c:382)
==20902==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 7: fail to match + o - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20904== by 0x8062D4E: main (nginx.c:382)
==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_single_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 ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20904== by 0x8062D4E: main (nginx.c:382)
==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.
==20904== 1,024 bytes in 1 blocks are definitely lost in loss record 2,752 of 2,855
==20904== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20904== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20904== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20904== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20904== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20904== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20904== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20904== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20904== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20904== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20904== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20904== by 0x40BB675: trace_state (lj_trace.c:690)
==20904== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20904== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20904== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20904== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20904== by 0x407FA29: lua_resume (lj_api.c:1296)
==20904== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20904== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20904== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20904== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20904== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20904== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20904== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20904== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20904== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20904== by 0x8062D4E: main (nginx.c:382)
==20904==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 (aborted) '
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 11: UTF-8 mode without UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused ==20906== Invalid read of size 4
==20906== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20906== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20906== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20906== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20906== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20906== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20906== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20906== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20906== by 0x8062D4E: main (nginx.c:382)
==20906== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20906==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 11: UTF-8 mode without UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused ==20906==
==20906== Process terminating with default action of signal 11 (SIGSEGV)
==20906== Access not within mapped region at address 0x0
==20906== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20906== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20906== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20906== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20906== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20906== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20906== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20906== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20906== by 0x8062D4E: main (nginx.c:382)
==20906== If you believe this happened as a result of a stack
==20906== overflow in your program's main thread (unlikely but
==20906== possible), you can try to increase the size of the
==20906== main thread stack using the --main-stacksize= flag.
==20906== The main thread stack size used in this run was 8388608.
==20906== 1,024 bytes in 1 blocks are definitely lost in loss record 2,757 of 2,857
==20906== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20906== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20906== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20906== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20906== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20906== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20906== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20906== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20906== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20906== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20906== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20906== by 0x40BB675: trace_state (lj_trace.c:690)
==20906== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20906== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20906== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20906== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20906== by 0x407FA29: lua_resume (lj_api.c:1296)
==20906== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20906== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20906== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20906== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20906== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20906== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20906== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20906== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20906== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20906== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20906== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20906== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20906== by 0x8062D4E: main (nginx.c:382)
==20906==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 5: gmatch matched but only iterate once and still matches remain - Can't connect to 127.0.0.1:1984: Connection refused ==20908== Invalid read of size 4
==20908== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20908== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20908== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20908== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20908== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20908== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20908== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20908== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20908== by 0x8062D4E: main (nginx.c:382)
==20908== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20908==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 5: gmatch matched but only iterate once and still matches remain - Can't connect to 127.0.0.1:1984: Connection refused ==20908==
==20908== Process terminating with default action of signal 11 (SIGSEGV)
==20908== Access not within mapped region at address 0x0
==20908== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20908== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20908== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20908== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20908== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20908== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20908== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20908== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20908== by 0x8062D4E: main (nginx.c:382)
==20908== If you believe this happened as a result of a stack
==20908== overflow in your program's main thread (unlikely but
==20908== possible), you can try to increase the size of the
==20908== main thread stack using the --main-stacksize= flag.
==20908== The main thread stack size used in this run was 8388608.
==20908== 1,024 bytes in 1 blocks are definitely lost in loss record 2,752 of 2,855
==20908== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20908== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20908== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20908== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20908== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20908== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20908== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20908== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20908== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20908== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20908== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20908== by 0x40BB675: trace_state (lj_trace.c:690)
==20908== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20908== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20908== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20908== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20908== by 0x407FA29: lua_resume (lj_api.c:1296)
==20908== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20908== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20908== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20908== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20908== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20908== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20908== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20908== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20908== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20908== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20908== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20908== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20908== by 0x8062D4E: main (nginx.c:382)
==20908==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 9: gmatch matched but only iterate once and still matches remain + o - Can't connect to 127.0.0.1:1984: Connection refused ==20910== Invalid read of size 4
==20910== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20910== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20910== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20910== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20910== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20910== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20910== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20910== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20910== by 0x8062D4E: main (nginx.c:382)
==20910== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20910==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 9: gmatch matched but only iterate once and still matches remain + o - Can't connect to 127.0.0.1:1984: Connection refused ==20910==
==20910== Process terminating with default action of signal 11 (SIGSEGV)
==20910== Access not within mapped region at address 0x0
==20910== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20910== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20910== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20910== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20910== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20910== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20910== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20910== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20910== by 0x8062D4E: main (nginx.c:382)
==20910== If you believe this happened as a result of a stack
==20910== overflow in your program's main thread (unlikely but
==20910== possible), you can try to increase the size of the
==20910== main thread stack using the --main-stacksize= flag.
==20910== The main thread stack size used in this run was 8388608.
==20910== 1,024 bytes in 1 blocks are definitely lost in loss record 2,770 of 2,873
==20910== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20910== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20910== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20910== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20910== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20910== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20910== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20910== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20910== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20910== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20910== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20910== by 0x40BB675: trace_state (lj_trace.c:690)
==20910== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20910== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20910== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20910== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20910== by 0x407FA29: lua_resume (lj_api.c:1296)
==20910== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20910== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20910== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20910== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20910== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20910== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20910== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20910== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20910== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20910== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20910== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20910== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20910== by 0x8062D4E: main (nginx.c:382)
==20910==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: gmatch matched - Can't connect to 127.0.0.1:1984: Connection refused ==20912== Invalid read of size 4
==20912== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20912== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20912== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20912== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20912== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20912== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20912== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20912== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20912== by 0x8062D4E: main (nginx.c:382)
==20912== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20912==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 1: gmatch matched - Can't connect to 127.0.0.1:1984: Connection refused ==20912==
==20912== Process terminating with default action of signal 11 (SIGSEGV)
==20912== Access not within mapped region at address 0x0
==20912== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20912== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20912== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20912== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20912== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20912== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20912== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20912== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20912== by 0x8062D4E: main (nginx.c:382)
==20912== If you believe this happened as a result of a stack
==20912== overflow in your program's main thread (unlikely but
==20912== possible), you can try to increase the size of the
==20912== main thread stack using the --main-stacksize= flag.
==20912== The main thread stack size used in this run was 8388608.
==20912== 1,024 bytes in 1 blocks are definitely lost in loss record 2,743 of 2,846
==20912== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20912== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20912== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20912== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20912== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20912== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20912== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20912== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20912== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20912== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20912== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20912== by 0x40BB675: trace_state (lj_trace.c:690)
==20912== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20912== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20912== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20912== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20912== by 0x407FA29: lua_resume (lj_api.c:1296)
==20912== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20912== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20912== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20912== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20912== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20912== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20912== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20912== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20912== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20912== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20912== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20912== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20912== by 0x8062D4E: main (nginx.c:382)
==20912==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 6: gmatch matched + o - Can't connect to 127.0.0.1:1984: Connection refused ==20914== Invalid read of size 4
==20914== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20914== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20914== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20914== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20914== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20914== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20914== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20914== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20914== by 0x8062D4E: main (nginx.c:382)
==20914== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20914==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 6: gmatch matched + o - Can't connect to 127.0.0.1:1984: Connection refused ==20914==
==20914== Process terminating with default action of signal 11 (SIGSEGV)
==20914== Access not within mapped region at address 0x0
==20914== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20914== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20914== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20914== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20914== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20914== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20914== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20914== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20914== by 0x8062D4E: main (nginx.c:382)
==20914== If you believe this happened as a result of a stack
==20914== overflow in your program's main thread (unlikely but
==20914== possible), you can try to increase the size of the
==20914== main thread stack using the --main-stacksize= flag.
==20914== The main thread stack size used in this run was 8388608.
==20914== 1,024 bytes in 1 blocks are definitely lost in loss record 2,751 of 2,851
==20914== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20914== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20914== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20914== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20914== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20914== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20914== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20914== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20914== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20914== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20914== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20914== by 0x40BB675: trace_state (lj_trace.c:690)
==20914== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20914== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20914== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20914== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20914== by 0x407FA29: lua_resume (lj_api.c:1296)
==20914== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20914== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20914== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20914== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20914== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20914== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20914== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20914== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20914== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20914== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20914== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20914== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20914== by 0x8062D4E: main (nginx.c:382)
==20914==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 12: UTF-8 mode with UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20916== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 12: UTF-8 mode with UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20916== by 0x8062D4E: main (nginx.c:382)
==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.
==20916== 1,024 bytes in 1 blocks are definitely lost in loss record 2,762 of 2,865
==20916== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20916== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20916== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20916== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20916== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20916== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20916== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20916== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20916== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20916== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20916== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20916== by 0x40BB675: trace_state (lj_trace.c:690)
==20916== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20916== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20916== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20916== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20916== by 0x407FA29: lua_resume (lj_api.c:1296)
==20916== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20916== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20916== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20916== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20916== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20916== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20916== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20916== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20916== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20916== by 0x8062D4E: main (nginx.c:382)
==20916==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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)
050-gmatch-dfa.t TEST 2: d + j - Can't connect to 127.0.0.1:1984: Connection refused ==20918== Invalid read of size 4
==20918== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20918== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20918== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20918== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20918== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20918== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20918== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20918== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20918== by 0x8062D4E: main (nginx.c:382)
==20918== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20918==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 2: d + j - Can't connect to 127.0.0.1:1984: Connection refused ==20918==
==20918== Process terminating with default action of signal 11 (SIGSEGV)
==20918== Access not within mapped region at address 0x0
==20918== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20918== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20918== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20918== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20918== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20918== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20918== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20918== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20918== by 0x8062D4E: main (nginx.c:382)
==20918== If you believe this happened as a result of a stack
==20918== overflow in your program's main thread (unlikely but
==20918== possible), you can try to increase the size of the
==20918== main thread stack using the --main-stacksize= flag.
==20918== The main thread stack size used in this run was 8388608.
==20918== 1,024 bytes in 1 blocks are definitely lost in loss record 2,884 of 3,007
==20918== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20918== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20918== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20918== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20918== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20918== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20918== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20918== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20918== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20918== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20918== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20918== by 0x40BB675: trace_state (lj_trace.c:690)
==20918== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20918== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20918== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20918== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20918== by 0x407FA29: lua_resume (lj_api.c:1296)
==20918== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20918== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20918== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20918== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20918== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20918== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20918== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20918== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20918== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20918== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20918== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20918== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20918== by 0x8062D4E: main (nginx.c:382)
==20918==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 4: gmatch matched but no iterate - Can't connect to 127.0.0.1:1984: Connection refused ==20920== Invalid read of size 4
==20920== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20920== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20920== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20920== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20920== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20920== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20920== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20920== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20920== by 0x8062D4E: main (nginx.c:382)
==20920== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20920==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 4: gmatch matched but no iterate - Can't connect to 127.0.0.1:1984: Connection refused ==20920==
==20920== Process terminating with default action of signal 11 (SIGSEGV)
==20920== Access not within mapped region at address 0x0
==20920== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20920== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20920== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20920== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20920== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20920== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20920== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20920== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20920== by 0x8062D4E: main (nginx.c:382)
==20920== If you believe this happened as a result of a stack
==20920== overflow in your program's main thread (unlikely but
==20920== possible), you can try to increase the size of the
==20920== main thread stack using the --main-stacksize= flag.
==20920== The main thread stack size used in this run was 8388608.
==20920== 1,024 bytes in 1 blocks are definitely lost in loss record 2,748 of 2,851
==20920== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20920== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20920== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20920== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20920== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20920== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20920== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20920== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20920== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20920== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20920== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20920== by 0x40BB675: trace_state (lj_trace.c:690)
==20920== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20920== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20920== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20920== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20920== by 0x407FA29: lua_resume (lj_api.c:1296)
==20920== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20920== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20920== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20920== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20920== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20920== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20920== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20920== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20920== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20920== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20920== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20920== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20920== by 0x8062D4E: main (nginx.c:382)
==20920==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 3: fail to match - Can't connect to 127.0.0.1:1984: Connection refused ==20922== Invalid read of size 4
==20922== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20922== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20922== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20922== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20922== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20922== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20922== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20922== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20922== by 0x8062D4E: main (nginx.c:382)
==20922== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20922==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
050-gmatch-dfa.t TEST 3: fail to match - Can't connect to 127.0.0.1:1984: Connection refused ==20922==
==20922== Process terminating with default action of signal 11 (SIGSEGV)
==20922== Access not within mapped region at address 0x0
==20922== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20922== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20922== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20922== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20922== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20922== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20922== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20922== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20922== by 0x8062D4E: main (nginx.c:382)
==20922== If you believe this happened as a result of a stack
==20922== overflow in your program's main thread (unlikely but
==20922== possible), you can try to increase the size of the
==20922== main thread stack using the --main-stacksize= flag.
==20922== The main thread stack size used in this run was 8388608.
==20922== 1,024 bytes in 1 blocks are definitely lost in loss record 2,756 of 2,860
==20922== at 0x402C768: realloc (vg_replace_malloc.c:834)
==20922== by 0x40CC146: mem_alloc (lib_aux.c:335)
==20922== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==20922== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==20922== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==20922== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==20922== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==20922== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==20922== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==20922== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20922== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==20922== by 0x40BB675: trace_state (lj_trace.c:690)
==20922== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20922== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==20922== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==20922== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==20922== by 0x407FA29: lua_resume (lj_api.c:1296)
==20922== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==20922== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==20922== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==20922== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==20922== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==20922== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==20922== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==20922== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==20922== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==20922== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20922== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20922== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20922== by 0x8062D4E: main (nginx.c:382)
==20922==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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)
051-sub-jit.t TEST 6: bad pattern + o - Can't connect to 127.0.0.1:1984: Connection refused ==20927== Invalid read of size 4
==20927== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20927== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20927== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20927== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20927== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20927== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20927== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20927== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20927== by 0x8062D4E: main (nginx.c:382)
==20927== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20927==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
051-sub-jit.t TEST 6: bad pattern + o - Can't connect to 127.0.0.1:1984: Connection refused ==20927==
==20927== Process terminating with default action of signal 11 (SIGSEGV)
==20927== Access not within mapped region at address 0x0
==20927== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20927== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20927== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20927== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20927== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20927== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20927== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20927== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20927== by 0x8062D4E: main (nginx.c:382)
==20927== If you believe this happened as a result of a stack
==20927== overflow in your program's main thread (unlikely but
==20927== possible), you can try to increase the size of the
==20927== main thread stack using the --main-stacksize= flag.
==20927== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 4: not matched with jo - Can't connect to 127.0.0.1:1984: Connection refused ==20929== Invalid read of size 4
==20929== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20929== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20929== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20929== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20929== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20929== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20929== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20929== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20929== by 0x8062D4E: main (nginx.c:382)
==20929== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20929==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==20929==
==20929== Process terminating with default action of signal 11 (SIGSEGV)
==20929== Access not within mapped region at address 0x0
==20929== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20929== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20929== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20929== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20929== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20929== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20929== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20929== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20929== by 0x8062D4E: main (nginx.c:382)
==20929== If you believe this happened as a result of a stack
==20929== overflow in your program's main thread (unlikely but
==20929== possible), you can try to increase the size of the
==20929== main thread stack using the --main-stacksize= flag.
==20929== 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 (aborted) '
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 3: matched with jo - Can't connect to 127.0.0.1:1984: Connection refused ==20931== Invalid read of size 4
==20931== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20931== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20931== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20931== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20931== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20931== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20931== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20931== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20931== by 0x8062D4E: main (nginx.c:382)
==20931== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20931==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
051-sub-jit.t TEST 3: matched with jo - Can't connect to 127.0.0.1:1984: Connection refused ==20931==
==20931== Process terminating with default action of signal 11 (SIGSEGV)
==20931== Access not within mapped region at address 0x0
==20931== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20931== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20931== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20931== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20931== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20931== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20931== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20931== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20931== by 0x8062D4E: main (nginx.c:382)
==20931== If you believe this happened as a result of a stack
==20931== overflow in your program's main thread (unlikely but
==20931== possible), you can try to increase the size of the
==20931== main thread stack using the --main-stacksize= flag.
==20931== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: matched with j - Can't connect to 127.0.0.1:1984: Connection refused ==20933== Invalid read of size 4
==20933== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20933== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20933== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20933== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20933== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20933== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20933== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20933== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20933== by 0x8062D4E: main (nginx.c:382)
==20933== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20933==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
051-sub-jit.t TEST 1: matched with j - Can't connect to 127.0.0.1:1984: Connection refused ==20933==
==20933== Process terminating with default action of signal 11 (SIGSEGV)
==20933== Access not within mapped region at address 0x0
==20933== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20933== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20933== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20933== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20933== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20933== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20933== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20933== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20933== by 0x8062D4E: main (nginx.c:382)
==20933== If you believe this happened as a result of a stack
==20933== overflow in your program's main thread (unlikely but
==20933== possible), you can try to increase the size of the
==20933== main thread stack using the --main-stacksize= flag.
==20933== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: matched with j - pattern "pcre JIT compiling result: 1" should match a line in error.log (req 1)
051-sub-jit.t TEST 2: not matched with j - Can't connect to 127.0.0.1:1984: Connection refused ==20935== Invalid read of size 4
==20935== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20935== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20935== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20935== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20935== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20935== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20935== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20935== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20935== by 0x8062D4E: main (nginx.c:382)
==20935== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20935==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
051-sub-jit.t TEST 2: not matched with j - Can't connect to 127.0.0.1:1984: Connection refused ==20935==
==20935== Process terminating with default action of signal 11 (SIGSEGV)
==20935== Access not within mapped region at address 0x0
==20935== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20935== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20935== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20935== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20935== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20935== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20935== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20935== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20935== by 0x8062D4E: main (nginx.c:382)
==20935== If you believe this happened as a result of a stack
==20935== overflow in your program's main thread (unlikely but
==20935== possible), you can try to increase the size of the
==20935== main thread stack using the --main-stacksize= flag.
==20935== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 2: not matched with j - pattern "pcre JIT compiling result: 1" should match a line in error.log (req 1)
051-sub-jit.t TEST 5: bad pattern - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20937== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
051-sub-jit.t TEST 5: bad pattern - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20937== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 2: not matched with d - Can't connect to 127.0.0.1:1984: Connection refused ==20942== Invalid read of size 4
==20942== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20942== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20942== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20942== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20942== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20942== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20942== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20942== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20942== by 0x8062D4E: main (nginx.c:382)
==20942== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20942==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
052-sub-dfa.t TEST 2: not matched with d - Can't connect to 127.0.0.1:1984: Connection refused ==20942==
==20942== Process terminating with default action of signal 11 (SIGSEGV)
==20942== Access not within mapped region at address 0x0
==20942== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20942== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20942== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20942== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20942== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20942== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20942== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20942== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20942== by 0x8062D4E: main (nginx.c:382)
==20942== If you believe this happened as a result of a stack
==20942== overflow in your program's main thread (unlikely but
==20942== possible), you can try to increase the size of the
==20942== main thread stack using the --main-stacksize= flag.
==20942== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
052-sub-dfa.t TEST 3: matched with do - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20944== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
052-sub-dfa.t TEST 3: matched with do - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20944== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 4: not matched with do - Can't connect to 127.0.0.1:1984: Connection refused ==20946== Invalid read of size 4
==20946== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20946== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20946== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20946== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20946== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20946== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20946== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20946== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20946== by 0x8062D4E: main (nginx.c:382)
==20946== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20946==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
052-sub-dfa.t TEST 4: not matched with do - Can't connect to 127.0.0.1:1984: Connection refused ==20946==
==20946== Process terminating with default action of signal 11 (SIGSEGV)
==20946== Access not within mapped region at address 0x0
==20946== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20946== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20946== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20946== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20946== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20946== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20946== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20946== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20946== by 0x8062D4E: main (nginx.c:382)
==20946== If you believe this happened as a result of a stack
==20946== overflow in your program's main thread (unlikely but
==20946== possible), you can try to increase the size of the
==20946== main thread stack using the --main-stacksize= flag.
==20946== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 6: bad pattern + o - Can't connect to 127.0.0.1:1984: Connection refused ==20948== Invalid read of size 4
==20948== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20948== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20948== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20948== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20948== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20948== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20948== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20948== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20948== by 0x8062D4E: main (nginx.c:382)
==20948== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20948==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
052-sub-dfa.t TEST 6: bad pattern + o - Can't connect to 127.0.0.1:1984: Connection refused ==20948==
==20948== Process terminating with default action of signal 11 (SIGSEGV)
==20948== Access not within mapped region at address 0x0
==20948== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20948== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20948== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20948== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20948== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20948== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20948== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20948== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20948== by 0x8062D4E: main (nginx.c:382)
==20948== If you believe this happened as a result of a stack
==20948== overflow in your program's main thread (unlikely but
==20948== possible), you can try to increase the size of the
==20948== main thread stack using the --main-stacksize= flag.
==20948== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 5: bad pattern - Can't connect to 127.0.0.1:1984: Connection refused ==20950== Invalid read of size 4
==20950== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20950== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20950== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20950== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20950== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20950== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20950== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20950== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20950== by 0x8062D4E: main (nginx.c:382)
==20950== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20950==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
052-sub-dfa.t TEST 5: bad pattern - Can't connect to 127.0.0.1:1984: Connection refused ==20950==
==20950== Process terminating with default action of signal 11 (SIGSEGV)
==20950== Access not within mapped region at address 0x0
==20950== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20950== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20950== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20950== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20950== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20950== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20950== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20950== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20950== by 0x8062D4E: main (nginx.c:382)
==20950== If you believe this happened as a result of a stack
==20950== overflow in your program's main thread (unlikely but
==20950== possible), you can try to increase the size of the
==20950== main thread stack using the --main-stacksize= flag.
==20950== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==20952== Invalid read of size 4
==20952== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20952== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20952== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20952== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20952== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20952== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20952== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20952== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20952== by 0x8062D4E: main (nginx.c:382)
==20952== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20952==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
052-sub-dfa.t TEST 1: matched with d - Can't connect to 127.0.0.1:1984: Connection refused ==20952==
==20952== Process terminating with default action of signal 11 (SIGSEGV)
==20952== Access not within mapped region at address 0x0
==20952== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20952== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20952== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20952== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20952== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20952== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20952== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20952== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20952== by 0x8062D4E: main (nginx.c:382)
==20952== If you believe this happened as a result of a stack
==20952== overflow in your program's main thread (unlikely but
==20952== possible), you can try to increase the size of the
==20952== main thread stack using the --main-stacksize= flag.
==20952== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 8: UTF-8 mode with UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused ==20954== Invalid read of size 4
==20954== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20954== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20954== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20954== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20954== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20954== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20954== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20954== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20954== by 0x8062D4E: main (nginx.c:382)
==20954== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20954==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
052-sub-dfa.t TEST 8: UTF-8 mode with UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused ==20954==
==20954== Process terminating with default action of signal 11 (SIGSEGV)
==20954== Access not within mapped region at address 0x0
==20954== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20954== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20954== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20954== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20954== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20954== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20954== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20954== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20954== by 0x8062D4E: main (nginx.c:382)
==20954== If you believe this happened as a result of a stack
==20954== overflow in your program's main thread (unlikely but
==20954== possible), you can try to increase the size of the
==20954== main thread stack using the --main-stacksize= flag.
==20954== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 7: UTF-8 mode without UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20956== by 0x8062D4E: main (nginx.c:382)
==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_single_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 ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20956== by 0x8062D4E: main (nginx.c:382)
==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.

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 (aborted) '
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好
'
053-gsub-jit.t TEST 4: not matched with jo - Can't connect to 127.0.0.1:1984: Connection refused ==20961== Invalid read of size 4
==20961== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20961== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20961== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20961== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20961== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20961== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20961== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20961== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20961== by 0x8062D4E: main (nginx.c:382)
==20961== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20961==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
053-gsub-jit.t TEST 4: not matched with jo - Can't connect to 127.0.0.1:1984: Connection refused ==20961==
==20961== Process terminating with default action of signal 11 (SIGSEGV)
==20961== Access not within mapped region at address 0x0
==20961== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20961== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20961== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20961== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20961== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20961== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20961== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20961== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20961== by 0x8062D4E: main (nginx.c:382)
==20961== If you believe this happened as a result of a stack
==20961== overflow in your program's main thread (unlikely but
==20961== possible), you can try to increase the size of the
==20961== main thread stack using the --main-stacksize= flag.
==20961== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 5: bad pattern - Can't connect to 127.0.0.1:1984: Connection refused ==20963== Invalid read of size 4
==20963== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20963== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20963== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20963== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20963== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20963== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20963== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20963== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20963== by 0x8062D4E: main (nginx.c:382)
==20963== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20963==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
053-gsub-jit.t TEST 5: bad pattern - Can't connect to 127.0.0.1:1984: Connection refused ==20963==
==20963== Process terminating with default action of signal 11 (SIGSEGV)
==20963== Access not within mapped region at address 0x0
==20963== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20963== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20963== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20963== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20963== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20963== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20963== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20963== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20963== by 0x8062D4E: main (nginx.c:382)
==20963== If you believe this happened as a result of a stack
==20963== overflow in your program's main thread (unlikely but
==20963== possible), you can try to increase the size of the
==20963== main thread stack using the --main-stacksize= flag.
==20963== 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 (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==20965== Invalid read of size 4
==20965== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20965== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20965== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20965== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20965== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20965== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20965== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20965== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20965== by 0x8062D4E: main (nginx.c:382)
==20965== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20965==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
053-gsub-jit.t TEST 3: matched with jo - Can't connect to 127.0.0.1:1984: Connection refused ==20965==
==20965== Process terminating with default action of signal 11 (SIGSEGV)
==20965== Access not within mapped region at address 0x0
==20965== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20965== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20965== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20965== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20965== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20965== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20965== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20965== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20965== by 0x8062D4E: main (nginx.c:382)
==20965== If you believe this happened as a result of a stack
==20965== overflow in your program's main thread (unlikely but
==20965== possible), you can try to increase the size of the
==20965== main thread stack using the --main-stacksize= flag.
==20965== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: matched with j - Can't connect to 127.0.0.1:1984: Connection refused ==20967== Invalid read of size 4
==20967== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20967== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20967== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20967== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20967== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20967== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20967== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20967== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20967== by 0x8062D4E: main (nginx.c:382)
==20967== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20967==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
053-gsub-jit.t TEST 1: matched with j - Can't connect to 127.0.0.1:1984: Connection refused ==20967==
==20967== Process terminating with default action of signal 11 (SIGSEGV)
==20967== Access not within mapped region at address 0x0
==20967== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20967== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20967== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20967== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20967== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20967== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20967== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20967== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20967== by 0x8062D4E: main (nginx.c:382)
==20967== If you believe this happened as a result of a stack
==20967== overflow in your program's main thread (unlikely but
==20967== possible), you can try to increase the size of the
==20967== main thread stack using the --main-stacksize= flag.
==20967== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
053-gsub-jit.t TEST 1: matched with j - pattern "pcre JIT compiling result: 1" should match a line in error.log (req 1)
053-gsub-jit.t TEST 6: bad pattern + o - Can't connect to 127.0.0.1:1984: Connection refused ==20969== Invalid read of size 4
==20969== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20969== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20969== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20969== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20969== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20969== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20969== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20969== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20969== by 0x8062D4E: main (nginx.c:382)
==20969== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20969==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
053-gsub-jit.t TEST 6: bad pattern + o - Can't connect to 127.0.0.1:1984: Connection refused ==20969==
==20969== Process terminating with default action of signal 11 (SIGSEGV)
==20969== Access not within mapped region at address 0x0
==20969== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20969== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20969== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20969== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20969== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20969== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20969== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20969== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20969== by 0x8062D4E: main (nginx.c:382)
==20969== If you believe this happened as a result of a stack
==20969== overflow in your program's main thread (unlikely but
==20969== possible), you can try to increase the size of the
==20969== main thread stack using the --main-stacksize= flag.
==20969== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 2: not matched with j - Can't connect to 127.0.0.1:1984: Connection refused ==20971== Invalid read of size 4
==20971== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20971== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20971== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20971== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20971== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20971== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20971== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20971== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20971== by 0x8062D4E: main (nginx.c:382)
==20971== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20971==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
053-gsub-jit.t TEST 2: not matched with j - Can't connect to 127.0.0.1:1984: Connection refused ==20971==
==20971== Process terminating with default action of signal 11 (SIGSEGV)
==20971== Access not within mapped region at address 0x0
==20971== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20971== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20971== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20971== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20971== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20971== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20971== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20971== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20971== by 0x8062D4E: main (nginx.c:382)
==20971== If you believe this happened as a result of a stack
==20971== overflow in your program's main thread (unlikely but
==20971== possible), you can try to increase the size of the
==20971== main thread stack using the --main-stacksize= flag.
==20971== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 2: not matched with j - pattern "pcre JIT compiling result: 1" should match a line in error.log (req 1)
054-gsub-dfa.t TEST 3: matched with do - Can't connect to 127.0.0.1:1984: Connection refused ==20976== Invalid read of size 4
==20976== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20976== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20976== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20976== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20976== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20976== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20976== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20976== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20976== by 0x8062D4E: main (nginx.c:382)
==20976== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20976==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
054-gsub-dfa.t TEST 3: matched with do - Can't connect to 127.0.0.1:1984: Connection refused ==20976==
==20976== Process terminating with default action of signal 11 (SIGSEGV)
==20976== Access not within mapped region at address 0x0
==20976== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20976== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20976== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20976== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20976== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20976== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20976== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20976== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20976== by 0x8062D4E: main (nginx.c:382)
==20976== If you believe this happened as a result of a stack
==20976== overflow in your program's main thread (unlikely but
==20976== possible), you can try to increase the size of the
==20976== main thread stack using the --main-stacksize= flag.
==20976== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: matched with d - Can't connect to 127.0.0.1:1984: Connection refused ==20978== Invalid read of size 4
==20978== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20978== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20978== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20978== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20978== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20978== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20978== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20978== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20978== by 0x8062D4E: main (nginx.c:382)
==20978== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20978==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
054-gsub-dfa.t TEST 1: matched with d - Can't connect to 127.0.0.1:1984: Connection refused ==20978==
==20978== Process terminating with default action of signal 11 (SIGSEGV)
==20978== Access not within mapped region at address 0x0
==20978== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20978== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20978== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20978== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20978== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20978== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20978== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20978== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20978== by 0x8062D4E: main (nginx.c:382)
==20978== If you believe this happened as a result of a stack
==20978== overflow in your program's main thread (unlikely but
==20978== possible), you can try to increase the size of the
==20978== main thread stack using the --main-stacksize= flag.
==20978== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 7: UTF-8 mode without UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused ==20980== Invalid read of size 4
==20980== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20980== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20980== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20980== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20980== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20980== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20980== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20980== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20980== by 0x8062D4E: main (nginx.c:382)
==20980== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20980==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
054-gsub-dfa.t TEST 7: UTF-8 mode without UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused ==20980==
==20980== Process terminating with default action of signal 11 (SIGSEGV)
==20980== Access not within mapped region at address 0x0
==20980== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20980== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20980== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20980== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20980== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20980== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20980== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20980== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20980== by 0x8062D4E: main (nginx.c:382)
==20980== If you believe this happened as a result of a stack
==20980== overflow in your program's main thread (unlikely but
==20980== possible), you can try to increase the size of the
==20980== main thread stack using the --main-stacksize= flag.
==20980== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 5: bad pattern - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20982== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
054-gsub-dfa.t TEST 5: bad pattern - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20982== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 8: UTF-8 mode with UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused ==20984== Invalid read of size 4
==20984== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20984== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20984== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20984== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20984== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20984== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20984== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20984== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20984== by 0x8062D4E: main (nginx.c:382)
==20984== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20984==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
054-gsub-dfa.t TEST 8: UTF-8 mode with UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused ==20984==
==20984== Process terminating with default action of signal 11 (SIGSEGV)
==20984== Access not within mapped region at address 0x0
==20984== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20984== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20984== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20984== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20984== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20984== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20984== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20984== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20984== by 0x8062D4E: main (nginx.c:382)
==20984== If you believe this happened as a result of a stack
==20984== overflow in your program's main thread (unlikely but
==20984== possible), you can try to increase the size of the
==20984== main thread stack using the --main-stacksize= flag.
==20984== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 2: not matched with d - Can't connect to 127.0.0.1:1984: Connection refused ==20986== Invalid read of size 4
==20986== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20986== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20986== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20986== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20986== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20986== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20986== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20986== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20986== by 0x8062D4E: main (nginx.c:382)
==20986== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20986==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
054-gsub-dfa.t TEST 2: not matched with d - Can't connect to 127.0.0.1:1984: Connection refused ==20986==
==20986== Process terminating with default action of signal 11 (SIGSEGV)
==20986== Access not within mapped region at address 0x0
==20986== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20986== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20986== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20986== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20986== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20986== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20986== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20986== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20986== by 0x8062D4E: main (nginx.c:382)
==20986== If you believe this happened as a result of a stack
==20986== overflow in your program's main thread (unlikely but
==20986== possible), you can try to increase the size of the
==20986== main thread stack using the --main-stacksize= flag.
==20986== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 6: bad pattern + o - Can't connect to 127.0.0.1:1984: Connection refused ==20988== Invalid read of size 4
==20988== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20988== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20988== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20988== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20988== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20988== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20988== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20988== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20988== by 0x8062D4E: main (nginx.c:382)
==20988== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20988==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
054-gsub-dfa.t TEST 6: bad pattern + o - Can't connect to 127.0.0.1:1984: Connection refused ==20988==
==20988== Process terminating with default action of signal 11 (SIGSEGV)
==20988== Access not within mapped region at address 0x0
==20988== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20988== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20988== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20988== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20988== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20988== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20988== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20988== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20988== by 0x8062D4E: main (nginx.c:382)
==20988== If you believe this happened as a result of a stack
==20988== overflow in your program's main thread (unlikely but
==20988== possible), you can try to increase the size of the
==20988== main thread stack using the --main-stacksize= flag.
==20988== 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 (aborted) '
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 4: not matched with do - Can't connect to 127.0.0.1:1984: Connection refused ==20990== Invalid read of size 4
==20990== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20990== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20990== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20990== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20990== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20990== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20990== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20990== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20990== by 0x8062D4E: main (nginx.c:382)
==20990== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==20990==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
054-gsub-dfa.t TEST 4: not matched with do - Can't connect to 127.0.0.1:1984: Connection refused ==20990==
==20990== Process terminating with default action of signal 11 (SIGSEGV)
==20990== Access not within mapped region at address 0x0
==20990== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==20990== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==20990== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==20990== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==20990== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==20990== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==20990== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==20990== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==20990== by 0x8062D4E: main (nginx.c:382)
==20990== If you believe this happened as a result of a stack
==20990== overflow in your program's main thread (unlikely but
==20990== possible), you can try to increase the size of the
==20990== main thread stack using the --main-stacksize= flag.
==20990== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: flush wait - content - Can't connect to 127.0.0.1:1984: Connection refused ==21013== Invalid read of size 4
==21013== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21013== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21013== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21013== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21013== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21013== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21013== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21013== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21013== by 0x8062D4E: main (nginx.c:382)
==21013== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21013==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
056-flush.t TEST 1: flush wait - content - Can't connect to 127.0.0.1:1984: Connection refused ==21013==
==21013== Process terminating with default action of signal 11 (SIGSEGV)
==21013== Access not within mapped region at address 0x0
==21013== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21013== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21013== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21013== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21013== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21013== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21013== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21013== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21013== by 0x8062D4E: main (nginx.c:382)
==21013== If you believe this happened as a result of a stack
==21013== overflow in your program's main thread (unlikely but
==21013== possible), you can try to increase the size of the
==21013== main thread stack using the --main-stacksize= flag.
==21013== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: flush wait - content - pattern "lua reuse free buf memory 13 >= 5" should match a line in error.log (req 1)
056-flush.t TEST 2: flush no wait - content - Can't connect to 127.0.0.1:1984: Connection refused ==21016== Invalid read of size 4
==21016== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21016== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21016== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21016== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21016== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21016== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21016== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21016== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21016== by 0x8062D4E: main (nginx.c:382)
==21016== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21016==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
056-flush.t TEST 2: flush no wait - content - Can't connect to 127.0.0.1:1984: Connection refused ==21016==
==21016== Process terminating with default action of signal 11 (SIGSEGV)
==21016== Access not within mapped region at address 0x0
==21016== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21016== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21016== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21016== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21016== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21016== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21016== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21016== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21016== by 0x8062D4E: main (nginx.c:382)
==21016== If you believe this happened as a result of a stack
==21016== overflow in your program's main thread (unlikely but
==21016== possible), you can try to increase the size of the
==21016== main thread stack using the --main-stacksize= flag.
==21016== 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 (aborted) '
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 5: flush before sending out the header - Can't connect to 127.0.0.1:1984: Connection refused ==21018== Invalid read of size 4
==21018== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21018== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21018== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21018== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21018== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21018== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21018== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21018== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21018== by 0x8062D4E: main (nginx.c:382)
==21018== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21018==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
056-flush.t TEST 5: flush before sending out the header - Can't connect to 127.0.0.1:1984: Connection refused ==21018==
==21018== Process terminating with default action of signal 11 (SIGSEGV)
==21018== Access not within mapped region at address 0x0
==21018== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21018== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21018== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21018== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21018== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21018== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21018== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21018== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21018== by 0x8062D4E: main (nginx.c:382)
==21018== If you believe this happened as a result of a stack
==21018== overflow in your program's main thread (unlikely but
==21018== possible), you can try to increase the size of the
==21018== main thread stack using the --main-stacksize= flag.
==21018== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
056-flush.t TEST 4: flush wait in a user coroutine - Can't connect to 127.0.0.1:1984: Connection refused ==21020== Invalid read of size 4
==21020== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21020== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21020== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21020== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21020== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21020== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21020== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21020== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21020== by 0x8062D4E: main (nginx.c:382)
==21020== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21020==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
056-flush.t TEST 4: flush wait in a user coroutine - Can't connect to 127.0.0.1:1984: Connection refused ==21020==
==21020== Process terminating with default action of signal 11 (SIGSEGV)
==21020== Access not within mapped region at address 0x0
==21020== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21020== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21020== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21020== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21020== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21020== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21020== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21020== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21020== by 0x8062D4E: main (nginx.c:382)
==21020== If you believe this happened as a result of a stack
==21020== overflow in your program's main thread (unlikely but
==21020== possible), you can try to increase the size of the
==21020== main thread stack using the --main-stacksize= flag.
==21020== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 4: flush wait in a user coroutine - pattern "lua reuse free buf memory 13 >= 5" should match a line in error.log (req 1)
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 ==21025== Invalid read of size 4
==21025== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21025== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21025== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21025== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21025== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21025== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21025== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21025== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21025== by 0x8062D4E: main (nginx.c:382)
==21025== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21025==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_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 ==21025==
==21025== Process terminating with default action of signal 11 (SIGSEGV)
==21025== Access not within mapped region at address 0x0
==21025== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21025== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21025== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21025== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21025== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21025== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21025== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21025== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21025== by 0x8062D4E: main (nginx.c:382)
==21025== If you believe this happened as a result of a stack
==21025== overflow in your program's main thread (unlikely but
==21025== possible), you can try to increase the size of the
==21025== main thread stack using the --main-stacksize= flag.
==21025== 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 "(?^:client timed out \(\d+: .*?timed out\))" should match a line in error.log (req 0)
057-flush-timeout.t TEST 5: flush wait in multiple user threads - return "timeout" error - pattern "thread main: failed to flush: timeout" should match a line in error.log (req 0)
057-flush-timeout.t TEST 5: flush wait in multiple user threads - return "timeout" error - pattern "thread A: failed to flush: timeout" should match a line in error.log (req 0)
057-flush-timeout.t TEST 5: flush wait in multiple user threads - return "timeout" error - pattern "thread B: failed to flush: timeout" should match a line in error.log (req 0)
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 (aborted) '
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 "(?^:client timed out \(\d+: .*?timed out\))" should match a line in error.log (req 1)
057-flush-timeout.t TEST 5: flush wait in multiple user threads - return "timeout" error - pattern "thread main: failed to flush: timeout" should match a line in error.log (req 1)
057-flush-timeout.t TEST 5: flush wait in multiple user threads - return "timeout" error - pattern "thread A: failed to flush: timeout" should match a line in error.log (req 1)
057-flush-timeout.t TEST 5: flush wait in multiple user threads - return "timeout" error - pattern "thread B: failed to flush: timeout" should match a line in error.log (req 1)
057-flush-timeout.t TEST 3: exit in user thread (entry thread is still pending on ngx.flush) - Can't connect to 127.0.0.1:1984: Connection refused ==21027== Invalid read of size 4
==21027== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21027== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21027== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21027== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21027== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21027== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21027== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21027== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21027== by 0x8062D4E: main (nginx.c:382)
==21027== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21027==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_process_cycle
fun:main
}
057-flush-timeout.t TEST 3: exit in user thread (entry thread is still pending on ngx.flush) - Can't connect to 127.0.0.1:1984: Connection refused ==21027==
==21027== Process terminating with default action of signal 11 (SIGSEGV)
==21027== Access not within mapped region at address 0x0
==21027== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21027== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21027== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21027== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21027== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21027== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21027== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21027== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21027== by 0x8062D4E: main (nginx.c:382)
==21027== If you believe this happened as a result of a stack
==21027== overflow in your program's main thread (unlikely but
==21027== possible), you can try to increase the size of the
==21027== main thread stack using the --main-stacksize= flag.
==21027== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==21029== Invalid read of size 4
==21029== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21029== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21029== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21029== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21029== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21029== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21029== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21029== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21029== by 0x8062D4E: main (nginx.c:382)
==21029== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21029==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_process_cycle
fun:main
}
057-flush-timeout.t TEST 4: flush wait - return "timeout" error - Can't connect to 127.0.0.1:1984: Connection refused ==21029==
==21029== Process terminating with default action of signal 11 (SIGSEGV)
==21029== Access not within mapped region at address 0x0
==21029== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21029== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21029== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21029== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21029== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21029== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21029== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21029== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21029== by 0x8062D4E: main (nginx.c:382)
==21029== If you believe this happened as a result of a stack
==21029== overflow in your program's main thread (unlikely but
==21029== possible), you can try to increase the size of the
==21029== main thread stack using the --main-stacksize= flag.
==21029== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 2: send timeout timer got removed in time - Can't connect to 127.0.0.1:1984: Connection refused ==21031== Invalid read of size 4
==21031== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21031== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21031== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21031== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21031== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21031== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21031== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21031== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21031== by 0x8062D4E: main (nginx.c:382)
==21031== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21031==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_process_cycle
fun:main
}
057-flush-timeout.t TEST 2: send timeout timer got removed in time - Can't connect to 127.0.0.1:1984: Connection refused ==21031==
==21031== Process terminating with default action of signal 11 (SIGSEGV)
==21031== Access not within mapped region at address 0x0
==21031== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21031== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21031== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21031== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21031== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21031== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21031== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21031== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21031== by 0x8062D4E: main (nginx.c:382)
==21031== If you believe this happened as a result of a stack
==21031== overflow in your program's main thread (unlikely but
==21031== possible), you can try to increase the size of the
==21031== main thread stack using the --main-stacksize= flag.
==21031== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: flush wait - timeout - Can't connect to 127.0.0.1:1984: Connection refused ==21040== Invalid read of size 4
==21040== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21040== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21040== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21040== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21040== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21040== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21040== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21040== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21040== by 0x8062D4E: main (nginx.c:382)
==21040== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21040==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_process_cycle
fun:main
}
057-flush-timeout.t TEST 1: flush wait - timeout - Can't connect to 127.0.0.1:1984: Connection refused ==21040==
==21040== Process terminating with default action of signal 11 (SIGSEGV)
==21040== Access not within mapped region at address 0x0
==21040== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21040== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21040== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21040== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21040== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21040== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21040== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21040== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21040== by 0x8062D4E: main (nginx.c:382)
==21040== If you believe this happened as a result of a stack
==21040== overflow in your program's main thread (unlikely but
==21040== possible), you can try to increase the size of the
==21040== main thread stack using the --main-stacksize= flag.
==21040== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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)
058-tcp-socket.t TEST 56: setkeepalive on socket already shutdown - Can't connect to 127.0.0.1:1984: Connection refused ==21045== Invalid read of size 4
==21045== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21045== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21045== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21045== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21045== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21045== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21045== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21045== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21045== by 0x8062D4E: main (nginx.c:382)
==21045== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21045==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 56: setkeepalive on socket already shutdown - Can't connect to 127.0.0.1:1984: Connection refused ==21045==
==21045== Process terminating with default action of signal 11 (SIGSEGV)
==21045== Access not within mapped region at address 0x0
==21045== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21045== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21045== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21045== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21045== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21045== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21045== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21045== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21045== by 0x8062D4E: main (nginx.c:382)
==21045== If you believe this happened as a result of a stack
==21045== overflow in your program's main thread (unlikely but
==21045== possible), you can try to increase the size of the
==21045== main thread stack using the --main-stacksize= flag.
==21045== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 56: setkeepalive on socket already shutdown - pattern "stream lua shutdown socket write direction" should match a line in error.log (req 1)
058-tcp-socket.t TEST 56: setkeepalive on socket already shutdown - pattern "failed to setkeepalive: closed" should match a line in error.log (req 1)
058-tcp-socket.t TEST 52: kill a thread with a connecting socket - Can't connect to 127.0.0.1:1984: Connection refused ==21047== Invalid read of size 4
==21047== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21047== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21047== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21047== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21047== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21047== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21047== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21047== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21047== by 0x8062D4E: main (nginx.c:382)
==21047== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21047==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 52: kill a thread with a connecting socket - Can't connect to 127.0.0.1:1984: Connection refused ==21047==
==21047== Process terminating with default action of signal 11 (SIGSEGV)
==21047== Access not within mapped region at address 0x0
==21047== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21047== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21047== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21047== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21047== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21047== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21047== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21047== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21047== by 0x8062D4E: main (nginx.c:382)
==21047== If you believe this happened as a result of a stack
==21047== overflow in your program's main thread (unlikely but
==21047== possible), you can try to increase the size of the
==21047== main thread stack using the --main-stacksize= flag.
==21047== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 52: kill a thread with a connecting socket - pattern "stream lua tcp socket connect timeout: 100" should match a line in error.log (req 1)
058-tcp-socket.t TEST 48: cosocket resolving aborted by coroutine yielding failures (xpcall err) - Can't connect to 127.0.0.1:1984: Connection refused ==21049== Invalid read of size 4
==21049== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21049== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21049== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21049== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21049== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21049== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21049== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21049== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21049== by 0x8062D4E: main (nginx.c:382)
==21049== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21049==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 48: cosocket resolving aborted by coroutine yielding failures (xpcall err) - Can't connect to 127.0.0.1:1984: Connection refused ==21049==
==21049== Process terminating with default action of signal 11 (SIGSEGV)
==21049== Access not within mapped region at address 0x0
==21049== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21049== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21049== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21049== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21049== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21049== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21049== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21049== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21049== by 0x8062D4E: main (nginx.c:382)
==21049== If you believe this happened as a result of a stack
==21049== overflow in your program's main thread (unlikely but
==21049== possible), you can try to increase the size of the
==21049== main thread stack using the --main-stacksize= flag.
==21049== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "resolve name done" should match a line in error.log (req 1)
058-tcp-socket.t TEST 23: connect again immediately - Can't connect to 127.0.0.1:1984: Connection refused ==21051== Invalid read of size 4
==21051== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21051== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21051== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21051== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21051== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21051== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21051== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21051== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21051== by 0x8062D4E: main (nginx.c:382)
==21051== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21051==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 23: connect again immediately - Can't connect to 127.0.0.1:1984: Connection refused ==21051==
==21051== Process terminating with default action of signal 11 (SIGSEGV)
==21051== Access not within mapped region at address 0x0
==21051== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21051== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21051== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21051== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21051== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21051== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21051== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21051== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21051== by 0x8062D4E: main (nginx.c:382)
==21051== If you believe this happened as a result of a stack
==21051== overflow in your program's main thread (unlikely but
==21051== possible), you can try to increase the size of the
==21051== main thread stack using the --main-stacksize= flag.
==21051== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 23: connect again immediately - pattern "lua reuse socket upstream" should match a line in error.log (req 1)
058-tcp-socket.t TEST 23: connect again immediately - pattern "lua tcp socket reconnect without shutting down" should match a line in error.log (req 1)
058-tcp-socket.t TEST 66: receiveany with limited, max is smaller than data - Can't connect to 127.0.0.1:1984: Connection refused ==21053== Invalid read of size 4
==21053== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21053== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21053== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21053== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21053== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21053== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21053== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21053== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21053== by 0x8062D4E: main (nginx.c:382)
==21053== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21053==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 66: receiveany with limited, max is smaller than data - Can't connect to 127.0.0.1:1984: Connection refused ==21053==
==21053== Process terminating with default action of signal 11 (SIGSEGV)
==21053== Access not within mapped region at address 0x0
==21053== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21053== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21053== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21053== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21053== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21053== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21053== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21053== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21053== by 0x8062D4E: main (nginx.c:382)
==21053== If you believe this happened as a result of a stack
==21053== overflow in your program's main thread (unlikely but
==21053== possible), you can try to increase the size of the
==21053== main thread stack using the --main-stacksize= flag.
==21053== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 66: receiveany with limited, max is smaller than data - pattern "lua tcp socket calling receiveany() method to read at most 7 bytes" should match a line in error.log (req 1)
058-tcp-socket.t TEST 40: u->coctx left over bug - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21055== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 40: u->coctx left over bug - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21055== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 65: receiveany with limited, max is larger than data - Can't connect to 127.0.0.1:1984: Connection refused ==21057== Invalid read of size 4
==21057== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21057== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21057== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21057== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21057== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21057== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21057== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21057== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21057== by 0x8062D4E: main (nginx.c:382)
==21057== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21057==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 65: receiveany with limited, max is larger than data - Can't connect to 127.0.0.1:1984: Connection refused ==21057==
==21057== Process terminating with default action of signal 11 (SIGSEGV)
==21057== Access not within mapped region at address 0x0
==21057== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21057== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21057== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21057== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21057== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21057== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21057== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21057== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21057== by 0x8062D4E: main (nginx.c:382)
==21057== If you believe this happened as a result of a stack
==21057== overflow in your program's main thread (unlikely but
==21057== possible), you can try to increase the size of the
==21057== main thread stack using the --main-stacksize= flag.
==21057== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 65: receiveany with limited, max is larger than data - pattern "lua tcp socket calling receiveany() method to read at most 128 bytes" should match a line in error.log (req 1)
058-tcp-socket.t TEST 27: send tables of string fragments (bad type "boolean") - Can't connect to 127.0.0.1:1984: Connection refused ==21059== Invalid read of size 4
==21059== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21059== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21059== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21059== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21059== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21059== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21059== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21059== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21059== by 0x8062D4E: main (nginx.c:382)
==21059== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21059==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 27: send tables of string fragments (bad type "boolean") - Can't connect to 127.0.0.1:1984: Connection refused ==21059==
==21059== Process terminating with default action of signal 11 (SIGSEGV)
==21059== Access not within mapped region at address 0x0
==21059== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21059== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21059== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21059== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21059== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21059== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21059== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21059== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21059== by 0x8062D4E: main (nginx.c:382)
==21059== If you believe this happened as a result of a stack
==21059== overflow in your program's main thread (unlikely but
==21059== possible), you can try to increase the size of the
==21059== main thread stack using the --main-stacksize= flag.
==21059== 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") - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 27: send tables of string fragments (bad type "boolean") - pattern "bad argument \#1 to 'send' (bad data type boolean found)" should match a line in error.log (req 1)
058-tcp-socket.t TEST 62: receiveany method in cosocket - Can't connect to 127.0.0.1:1984: Connection refused ==21061== Invalid read of size 4
==21061== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21061== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21061== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21061== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21061== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21061== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21061== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21061== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21061== by 0x8062D4E: main (nginx.c:382)
==21061== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21061==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 62: receiveany method in cosocket - Can't connect to 127.0.0.1:1984: Connection refused ==21061==
==21061== Process terminating with default action of signal 11 (SIGSEGV)
==21061== Access not within mapped region at address 0x0
==21061== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21061== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21061== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21061== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21061== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21061== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21061== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21061== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21061== by 0x8062D4E: main (nginx.c:382)
==21061== If you believe this happened as a result of a stack
==21061== overflow in your program's main thread (unlikely but
==21061== possible), you can try to increase the size of the
==21061== main thread stack using the --main-stacksize= flag.
==21061== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 62: receiveany method in cosocket - pattern "lua tcp socket read any" should match a line in error.log (req 1)
058-tcp-socket.t TEST 39: empty options table - Can't connect to 127.0.0.1:1984: Connection refused ==21063== Invalid read of size 4
==21063== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21063== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21063== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21063== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21063== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21063== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21063== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21063== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21063== by 0x8062D4E: main (nginx.c:382)
==21063== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21063==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 39: empty options table - Can't connect to 127.0.0.1:1984: Connection refused ==21063==
==21063== Process terminating with default action of signal 11 (SIGSEGV)
==21063== Access not within mapped region at address 0x0
==21063== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21063== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21063== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21063== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21063== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21063== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21063== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21063== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21063== by 0x8062D4E: main (nginx.c:382)
==21063== If you believe this happened as a result of a stack
==21063== overflow in your program's main thread (unlikely but
==21063== possible), you can try to increase the size of the
==21063== main thread stack using the --main-stacksize= flag.
==21063== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 9: resolver error (timeout) - Can't connect to 127.0.0.1:1984: Connection refused ==21065== Invalid read of size 4
==21065== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21065== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21065== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21065== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21065== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21065== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21065== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21065== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21065== by 0x8062D4E: main (nginx.c:382)
==21065== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21065==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 9: resolver error (timeout) - Can't connect to 127.0.0.1:1984: Connection refused ==21065==
==21065== Process terminating with default action of signal 11 (SIGSEGV)
==21065== Access not within mapped region at address 0x0
==21065== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21065== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21065== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21065== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21065== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21065== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21065== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21065== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21065== by 0x8062D4E: main (nginx.c:382)
==21065== If you believe this happened as a result of a stack
==21065== overflow in your program's main thread (unlikely but
==21065== possible), you can try to increase the size of the
==21065== main thread stack using the --main-stacksize= flag.
==21065== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - pattern "attempt to send data on a closed socket" should match a line in error.log (req 1)
058-tcp-socket.t TEST 15: line reading (very small buffer) - Can't connect to 127.0.0.1:1984: Connection refused ==21067== Invalid read of size 4
==21067== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21067== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21067== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21067== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21067== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21067== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21067== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21067== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21067== by 0x8062D4E: main (nginx.c:382)
==21067== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21067==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 15: line reading (very small buffer) - Can't connect to 127.0.0.1:1984: Connection refused ==21067==
==21067== Process terminating with default action of signal 11 (SIGSEGV)
==21067== Access not within mapped region at address 0x0
==21067== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21067== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21067== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21067== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21067== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21067== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21067== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21067== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21067== by 0x8062D4E: main (nginx.c:382)
==21067== If you believe this happened as a result of a stack
==21067== overflow in your program's main thread (unlikely but
==21067== possible), you can try to increase the size of the
==21067== main thread stack using the --main-stacksize= flag.
==21067== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 20: cannot survive across request boundary (receive) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21069== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 20: cannot survive across request boundary (receive) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21069== by 0x8062D4E: main (nginx.c:382)
==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.

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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 57: options_table is nil - Can't connect to 127.0.0.1:1984: Connection refused ==21071== Invalid read of size 4
==21071== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21071== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21071== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21071== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21071== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21071== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21071== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21071== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21071== by 0x8062D4E: main (nginx.c:382)
==21071== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21071==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 57: options_table is nil - Can't connect to 127.0.0.1:1984: Connection refused ==21071==
==21071== Process terminating with default action of signal 11 (SIGSEGV)
==21071== Access not within mapped region at address 0x0
==21071== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21071== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21071== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21071== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21071== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21071== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21071== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21071== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21071== by 0x8062D4E: main (nginx.c:382)
==21071== If you believe this happened as a result of a stack
==21071== overflow in your program's main thread (unlikely but
==21071== possible), you can try to increase the size of the
==21071== main thread stack using the --main-stacksize= flag.
==21071== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 19: cannot survive across request boundary (send) - Can't connect to 127.0.0.1:1984: Connection refused ==21073== Invalid read of size 4
==21073== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21073== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21073== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21073== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21073== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21073== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21073== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21073== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21073== by 0x8062D4E: main (nginx.c:382)
==21073== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21073==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 19: cannot survive across request boundary (send) - Can't connect to 127.0.0.1:1984: Connection refused ==21073==
==21073== Process terminating with default action of signal 11 (SIGSEGV)
==21073== Access not within mapped region at address 0x0
==21073== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21073== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21073== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21073== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21073== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21073== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21073== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21073== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21073== by 0x8062D4E: main (nginx.c:382)
==21073== If you believe this happened as a result of a stack
==21073== overflow in your program's main thread (unlikely but
==21073== possible), you can try to increase the size of the
==21073== main thread stack using the --main-stacksize= flag.
==21073== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 63: receiveany send data after read side closed - Can't connect to 127.0.0.1:1984: Connection refused ==21075== Invalid read of size 4
==21075== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21075== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21075== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21075== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21075== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21075== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21075== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21075== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21075== by 0x8062D4E: main (nginx.c:382)
==21075== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21075==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 63: receiveany send data after read side closed - Can't connect to 127.0.0.1:1984: Connection refused ==21075==
==21075== Process terminating with default action of signal 11 (SIGSEGV)
==21075== Access not within mapped region at address 0x0
==21075== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21075== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21075== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21075== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21075== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21075== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21075== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21075== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21075== by 0x8062D4E: main (nginx.c:382)
==21075== If you believe this happened as a result of a stack
==21075== overflow in your program's main thread (unlikely but
==21075== possible), you can try to increase the size of the
==21075== main thread stack using the --main-stacksize= flag.
==21075== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - tcp_query ok got: ''
expected: 'send data after read side closed'
058-tcp-socket.t TEST 63: receiveany send data after read side closed - TCP query length ok got: '0'
expected: '32'
058-tcp-socket.t TEST 6: connection timeout (tcp) - Can't connect to 127.0.0.1:1984: Connection refused ==21080== Invalid read of size 4
==21080== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21080== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21080== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21080== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21080== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21080== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21080== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21080== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21080== by 0x8062D4E: main (nginx.c:382)
==21080== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21080==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 6: connection timeout (tcp) - Can't connect to 127.0.0.1:1984: Connection refused ==21080==
==21080== Process terminating with default action of signal 11 (SIGSEGV)
==21080== Access not within mapped region at address 0x0
==21080== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21080== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21080== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21080== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21080== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21080== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21080== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21080== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21080== by 0x8062D4E: main (nginx.c:382)
==21080== If you believe this happened as a result of a stack
==21080== overflow in your program's main thread (unlikely but
==21080== possible), you can try to increase the size of the
==21080== main thread stack using the --main-stacksize= flag.
==21080== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 6: connection timeout (tcp) - pattern "lua tcp socket connect timed out, when connecting to 127.0.0.2:12345" should match a line in error.log (req 1)
058-tcp-socket.t TEST 44: bad request tries to close - Can't connect to 127.0.0.1:1984: Connection refused ==21082== Invalid read of size 4
==21082== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21082== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21082== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21082== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21082== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21082== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21082== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21082== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21082== by 0x8062D4E: main (nginx.c:382)
==21082== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21082==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 44: bad request tries to close - Can't connect to 127.0.0.1:1984: Connection refused ==21082==
==21082== Process terminating with default action of signal 11 (SIGSEGV)
==21082== Access not within mapped region at address 0x0
==21082== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21082== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21082== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21082== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21082== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21082== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21082== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21082== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21082== by 0x8062D4E: main (nginx.c:382)
==21082== If you believe this happened as a result of a stack
==21082== overflow in your program's main thread (unlikely but
==21082== possible), you can try to increase the size of the
==21082== main thread stack using the --main-stacksize= flag.
==21082== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "(?^:runtime error: content_by_lua\(nginx\.conf:\d+\):12: bad request)" should match a line in error.log (req 1)
058-tcp-socket.t TEST 51: IPv6 - Can't connect to 127.0.0.1:1984: Connection refused ==21086== Invalid read of size 4
==21086== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21086== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21086== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21086== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21086== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21086== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21086== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21086== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21086== by 0x8062D4E: main (nginx.c:382)
==21086== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21086==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 51: IPv6 - Can't connect to 127.0.0.1:1984: Connection refused ==21086==
==21086== Process terminating with default action of signal 11 (SIGSEGV)
==21086== Access not within mapped region at address 0x0
==21086== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21086== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21086== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21086== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21086== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21086== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21086== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21086== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21086== by 0x8062D4E: main (nginx.c:382)
==21086== If you believe this happened as a result of a stack
==21086== overflow in your program's main thread (unlikely but
==21086== possible), you can try to increase the size of the
==21086== main thread stack using the --main-stacksize= flag.
==21086== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 26: send tables of string fragments (bad type "nil") - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21088== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 26: send tables of string fragments (bad type "nil") - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21088== by 0x8062D4E: main (nginx.c:382)
==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.

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") - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 26: send tables of string fragments (bad type "nil") - pattern "bad argument \#1 to 'send' (bad data type nil found)" should match a line in error.log (req 1)
058-tcp-socket.t TEST 3: no resolver defined - Can't connect to 127.0.0.1:1984: Connection refused ==21090== Invalid read of size 4
==21090== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21090== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21090== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21090== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21090== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21090== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21090== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21090== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21090== by 0x8062D4E: main (nginx.c:382)
==21090== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21090==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 3: no resolver defined - Can't connect to 127.0.0.1:1984: Connection refused ==21090==
==21090== Process terminating with default action of signal 11 (SIGSEGV)
==21090== Access not within mapped region at address 0x0
==21090== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21090== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21090== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21090== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21090== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21090== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21090== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21090== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21090== by 0x8062D4E: main (nginx.c:382)
==21090== If you believe this happened as a result of a stack
==21090== overflow in your program's main thread (unlikely but
==21090== possible), you can try to increase the size of the
==21090== main thread stack using the --main-stacksize= flag.
==21090== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 3: no resolver defined - pattern "attempt to send data on a closed socket:" should match a line in error.log (req 1)
058-tcp-socket.t TEST 49: tcp_nodelay on - Can't connect to 127.0.0.1:1984: Connection refused ==21092== Invalid read of size 4
==21092== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21092== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21092== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21092== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21092== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21092== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21092== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21092== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21092== by 0x8062D4E: main (nginx.c:382)
==21092== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21092==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 49: tcp_nodelay on - Can't connect to 127.0.0.1:1984: Connection refused ==21092==
==21092== Process terminating with default action of signal 11 (SIGSEGV)
==21092== Access not within mapped region at address 0x0
==21092== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21092== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21092== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21092== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21092== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21092== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21092== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21092== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21092== by 0x8062D4E: main (nginx.c:382)
==21092== If you believe this happened as a result of a stack
==21092== overflow in your program's main thread (unlikely but
==21092== possible), you can try to increase the size of the
==21092== main thread stack using the --main-stacksize= flag.
==21092== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 49: tcp_nodelay on - pattern "stream lua socket tcp_nodelay" should match a line in error.log (req 1)
058-tcp-socket.t TEST 16: ngx.socket.connect (working) - Can't connect to 127.0.0.1:1984: Connection refused ==21094== Invalid read of size 4
==21094== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21094== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21094== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21094== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21094== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21094== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21094== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21094== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21094== by 0x8062D4E: main (nginx.c:382)
==21094== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21094==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 16: ngx.socket.connect (working) - Can't connect to 127.0.0.1:1984: Connection refused ==21094==
==21094== Process terminating with default action of signal 11 (SIGSEGV)
==21094== Access not within mapped region at address 0x0
==21094== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21094== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21094== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21094== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21094== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21094== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21094== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21094== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21094== by 0x8062D4E: main (nginx.c:382)
==21094== If you believe this happened as a result of a stack
==21094== overflow in your program's main thread (unlikely but
==21094== possible), you can try to increase the size of the
==21094== main thread stack using the --main-stacksize= flag.
==21094== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 41: bad request tries to connect - Can't connect to 127.0.0.1:1984: Connection refused ==21096== Invalid read of size 4
==21096== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21096== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21096== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21096== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21096== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21096== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21096== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21096== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21096== by 0x8062D4E: main (nginx.c:382)
==21096== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21096==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 41: bad request tries to connect - Can't connect to 127.0.0.1:1984: Connection refused ==21096==
==21096== Process terminating with default action of signal 11 (SIGSEGV)
==21096== Access not within mapped region at address 0x0
==21096== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21096== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21096== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21096== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21096== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21096== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21096== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21096== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21096== by 0x8062D4E: main (nginx.c:382)
==21096== If you believe this happened as a result of a stack
==21096== overflow in your program's main thread (unlikely but
==21096== possible), you can try to increase the size of the
==21096== main thread stack using the --main-stacksize= flag.
==21096== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "(?^:runtime error: content_by_lua\(nginx\.conf:\d+\):14: bad request)" should match a line in error.log (req 1)
058-tcp-socket.t TEST 10: explicit *l pattern for receive - Can't connect to 127.0.0.1:1984: Connection refused ==21098== Invalid read of size 4
==21098== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21098== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21098== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21098== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21098== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21098== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21098== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21098== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21098== by 0x8062D4E: main (nginx.c:382)
==21098== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21098==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 10: explicit *l pattern for receive - Can't connect to 127.0.0.1:1984: Connection refused ==21098==
==21098== Process terminating with default action of signal 11 (SIGSEGV)
==21098== Access not within mapped region at address 0x0
==21098== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21098== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21098== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21098== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21098== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21098== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21098== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21098== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21098== by 0x8062D4E: main (nginx.c:382)
==21098== If you believe this happened as a result of a stack
==21098== overflow in your program's main thread (unlikely but
==21098== possible), you can try to increase the size of the
==21098== main thread stack using the --main-stacksize= flag.
==21098== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 64: receiveany with limited, max <= 0 - Can't connect to 127.0.0.1:1984: Connection refused ==21100== Invalid read of size 4
==21100== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21100== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21100== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21100== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21100== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21100== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21100== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21100== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21100== by 0x8062D4E: main (nginx.c:382)
==21100== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21100==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 64: receiveany with limited, max <= 0 - Can't connect to 127.0.0.1:1984: Connection refused ==21100==
==21100== Process terminating with default action of signal 11 (SIGSEGV)
==21100== Access not within mapped region at address 0x0
==21100== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21100== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21100== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21100== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21100== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21100== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21100== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21100== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21100== by 0x8062D4E: main (nginx.c:382)
==21100== If you believe this happened as a result of a stack
==21100== overflow in your program's main thread (unlikely but
==21100== possible), you can try to increase the size of the
==21100== main thread stack using the --main-stacksize= flag.
==21100== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 30: receive(0) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21102== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 30: receive(0) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21102== by 0x8062D4E: main (nginx.c:382)
==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.

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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 21: cannot survive across request boundary (close) - Can't connect to 127.0.0.1:1984: Connection refused ==21104== Invalid read of size 4
==21104== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21104== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21104== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21104== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21104== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21104== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21104== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21104== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21104== by 0x8062D4E: main (nginx.c:382)
==21104== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21104==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 21: cannot survive across request boundary (close) - Can't connect to 127.0.0.1:1984: Connection refused ==21104==
==21104== Process terminating with default action of signal 11 (SIGSEGV)
==21104== Access not within mapped region at address 0x0
==21104== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21104== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21104== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21104== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21104== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21104== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21104== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21104== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21104== by 0x8062D4E: main (nginx.c:382)
==21104== If you believe this happened as a result of a stack
==21104== overflow in your program's main thread (unlikely but
==21104== possible), you can try to increase the size of the
==21104== main thread stack using the --main-stacksize= flag.
==21104== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 58: resolver send query failing immediately in connect() - Can't connect to 127.0.0.1:1984: Connection refused ==21106== Invalid read of size 4
==21106== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21106== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21106== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21106== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21106== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21106== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21106== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21106== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21106== by 0x8062D4E: main (nginx.c:382)
==21106== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21106==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 58: resolver send query failing immediately in connect() - Can't connect to 127.0.0.1:1984: Connection refused ==21106==
==21106== Process terminating with default action of signal 11 (SIGSEGV)
==21106== Access not within mapped region at address 0x0
==21106== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21106== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21106== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21106== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21106== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21106== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21106== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21106== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21106== by 0x8062D4E: main (nginx.c:382)
==21106== If you believe this happened as a result of a stack
==21106== overflow in your program's main thread (unlikely but
==21106== possible), you can try to increase the size of the
==21106== main thread stack using the --main-stacksize= flag.
==21106== 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() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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() - pattern "(?^:\[alert\] .*? send\(\) failed \(\d+: Operation not permitted\) while resolving)" should match a line in error.log (req 1)
058-tcp-socket.t TEST 43: bad request tries to send - Can't connect to 127.0.0.1:1984: Connection refused ==21108== Invalid read of size 4
==21108== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21108== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21108== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21108== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21108== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21108== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21108== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21108== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21108== by 0x8062D4E: main (nginx.c:382)
==21108== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21108==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 43: bad request tries to send - Can't connect to 127.0.0.1:1984: Connection refused ==21108==
==21108== Process terminating with default action of signal 11 (SIGSEGV)
==21108== Access not within mapped region at address 0x0
==21108== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21108== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21108== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21108== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21108== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21108== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21108== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21108== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21108== by 0x8062D4E: main (nginx.c:382)
==21108== If you believe this happened as a result of a stack
==21108== overflow in your program's main thread (unlikely but
==21108== possible), you can try to increase the size of the
==21108== main thread stack using the --main-stacksize= flag.
==21108== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "(?^:runtime error: content_by_lua\(nginx\.conf:\d+\):12: bad request)" should match a line in error.log (req 1)
058-tcp-socket.t TEST 11: *a pattern for receive - Can't connect to 127.0.0.1:1984: Connection refused ==21110== Invalid read of size 4
==21110== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21110== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21110== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21110== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21110== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21110== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21110== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21110== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21110== by 0x8062D4E: main (nginx.c:382)
==21110== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21110==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 11: *a pattern for receive - Can't connect to 127.0.0.1:1984: Connection refused ==21110==
==21110== Process terminating with default action of signal 11 (SIGSEGV)
==21110== Access not within mapped region at address 0x0
==21110== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21110== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21110== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21110== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21110== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21110== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21110== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21110== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21110== by 0x8062D4E: main (nginx.c:382)
==21110== If you believe this happened as a result of a stack
==21110== overflow in your program's main thread (unlikely but
==21110== possible), you can try to increase the size of the
==21110== main thread stack using the --main-stacksize= flag.
==21110== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 7: not closed manually - Can't connect to 127.0.0.1:1984: Connection refused ==21112== Invalid read of size 4
==21112== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21112== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21112== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21112== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21112== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21112== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21112== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21112== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21112== by 0x8062D4E: main (nginx.c:382)
==21112== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21112==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 7: not closed manually - Can't connect to 127.0.0.1:1984: Connection refused ==21112==
==21112== Process terminating with default action of signal 11 (SIGSEGV)
==21112== Access not within mapped region at address 0x0
==21112== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21112== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21112== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21112== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21112== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21112== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21112== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21112== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21112== by 0x8062D4E: main (nginx.c:382)
==21112== If you believe this happened as a result of a stack
==21112== overflow in your program's main thread (unlikely but
==21112== possible), you can try to increase the size of the
==21112== main thread stack using the --main-stacksize= flag.
==21112== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 50: tcp_nodelay off - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21114== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 50: tcp_nodelay off - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21114== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 54: reuse cleanup in ngx.timer (fake_request) - Can't connect to 127.0.0.1:1984: Connection refused ==21116== Invalid read of size 4
==21116== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21116== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21116== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21116== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21116== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21116== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21116== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21116== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21116== by 0x8062D4E: main (nginx.c:382)
==21116== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21116==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 54: reuse cleanup in ngx.timer (fake_request) - Can't connect to 127.0.0.1:1984: Connection refused ==21116==
==21116== Process terminating with default action of signal 11 (SIGSEGV)
==21116== Access not within mapped region at address 0x0
==21116== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21116== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21116== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21116== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21116== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21116== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21116== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21116== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21116== by 0x8062D4E: main (nginx.c:382)
==21116== If you believe this happened as a result of a stack
==21116== overflow in your program's main thread (unlikely but
==21116== possible), you can try to increase the size of the
==21116== main thread stack using the --main-stacksize= flag.
==21116== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 54: reuse cleanup in ngx.timer (fake_request) - pattern "lua stream cleanup reuse" should match a line in error.log (req 1)
058-tcp-socket.t TEST 35: successful reread after a read time out happen (receive -> receiveuntil) - Can't connect to 127.0.0.1:1984: Connection refused ==21118== Invalid read of size 4
==21118== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21118== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21118== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21118== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21118== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21118== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21118== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21118== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21118== by 0x8062D4E: main (nginx.c:382)
==21118== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21118==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 35: successful reread after a read time out happen (receive -> receiveuntil) - Can't connect to 127.0.0.1:1984: Connection refused ==21118==
==21118== Process terminating with default action of signal 11 (SIGSEGV)
==21118== Access not within mapped region at address 0x0
==21118== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21118== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21118== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21118== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21118== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21118== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21118== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21118== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21118== by 0x8062D4E: main (nginx.c:382)
==21118== If you believe this happened as a result of a stack
==21118== overflow in your program's main thread (unlikely but
==21118== possible), you can try to increase the size of the
==21118== main thread stack using the --main-stacksize= flag.
==21118== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua tcp socket read timed out" should match a line in error.log (req 1)
058-tcp-socket.t TEST 17: ngx.socket.connect() shortcut (connection refused) - Can't connect to 127.0.0.1:1984: Connection refused ==21120== Invalid read of size 4
==21120== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21120== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21120== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21120== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21120== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21120== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21120== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21120== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21120== by 0x8062D4E: main (nginx.c:382)
==21120== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21120==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 17: ngx.socket.connect() shortcut (connection refused) - Can't connect to 127.0.0.1:1984: Connection refused ==21120==
==21120== Process terminating with default action of signal 11 (SIGSEGV)
==21120== Access not within mapped region at address 0x0
==21120== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21120== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21120== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21120== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21120== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21120== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21120== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21120== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21120== by 0x8062D4E: main (nginx.c:382)
==21120== If you believe this happened as a result of a stack
==21120== overflow in your program's main thread (unlikely but
==21120== possible), you can try to increase the size of the
==21120== main thread stack using the --main-stacksize= flag.
==21120== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 17: ngx.socket.connect() shortcut (connection refused) - pattern "(?^:connect\(\) failed \(\d+: Connection refused\))" should match a line in error.log (req 1)
058-tcp-socket.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==21122== Invalid read of size 4
==21122== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21122== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21122== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21122== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21122== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21122== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21122== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21122== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21122== by 0x8062D4E: main (nginx.c:382)
==21122== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21122==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==21122==
==21122== Process terminating with default action of signal 11 (SIGSEGV)
==21122== Access not within mapped region at address 0x0
==21122== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21122== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21122== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21122== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21122== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21122== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21122== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21122== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21122== by 0x8062D4E: main (nginx.c:382)
==21122== If you believe this happened as a result of a stack
==21122== overflow in your program's main thread (unlikely but
==21122== possible), you can try to increase the size of the
==21122== main thread stack using the --main-stacksize= flag.
==21122== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 47: cosocket resolving aborted by coroutine yielding failures (require) - Can't connect to 127.0.0.1:1984: Connection refused ==21124== Invalid read of size 4
==21124== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21124== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21124== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21124== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21124== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21124== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21124== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21124== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21124== by 0x8062D4E: main (nginx.c:382)
==21124== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21124==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 47: cosocket resolving aborted by coroutine yielding failures (require) - Can't connect to 127.0.0.1:1984: Connection refused ==21124==
==21124== Process terminating with default action of signal 11 (SIGSEGV)
==21124== Access not within mapped region at address 0x0
==21124== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21124== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21124== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21124== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21124== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21124== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21124== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21124== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21124== by 0x8062D4E: main (nginx.c:382)
==21124== If you believe this happened as a result of a stack
==21124== overflow in your program's main thread (unlikely but
==21124== possible), you can try to increase the size of the
==21124== main thread stack using the --main-stacksize= flag.
==21124== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "resolve name done" should match a line in error.log (req 1)
058-tcp-socket.t TEST 47: cosocket resolving aborted by coroutine yielding failures (require) - pattern "runtime error: attempt to yield across C-call boundary" should match a line in error.log (req 1)
058-tcp-socket.t TEST 34: successful reread after a read time out happen (receive -> receive) - Can't connect to 127.0.0.1:1984: Connection refused ==21126== Invalid read of size 4
==21126== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21126== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21126== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21126== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21126== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21126== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21126== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21126== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21126== by 0x8062D4E: main (nginx.c:382)
==21126== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21126==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 34: successful reread after a read time out happen (receive -> receive) - Can't connect to 127.0.0.1:1984: Connection refused ==21126==
==21126== Process terminating with default action of signal 11 (SIGSEGV)
==21126== Access not within mapped region at address 0x0
==21126== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21126== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21126== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21126== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21126== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21126== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21126== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21126== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21126== by 0x8062D4E: main (nginx.c:382)
==21126== If you believe this happened as a result of a stack
==21126== overflow in your program's main thread (unlikely but
==21126== possible), you can try to increase the size of the
==21126== main thread stack using the --main-stacksize= flag.
==21126== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua tcp socket read timed out" should match a line in error.log (req 1)
058-tcp-socket.t TEST 38: receive(0) - Can't connect to 127.0.0.1:1984: Connection refused ==21128== Invalid read of size 4
==21128== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21128== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21128== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21128== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21128== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21128== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21128== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21128== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21128== by 0x8062D4E: main (nginx.c:382)
==21128== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21128==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 38: receive(0) - Can't connect to 127.0.0.1:1984: Connection refused ==21128==
==21128== Process terminating with default action of signal 11 (SIGSEGV)
==21128== Access not within mapped region at address 0x0
==21128== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21128== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21128== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21128== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21128== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21128== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21128== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21128== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21128== by 0x8062D4E: main (nginx.c:382)
==21128== If you believe this happened as a result of a stack
==21128== overflow in your program's main thread (unlikely but
==21128== possible), you can try to increase the size of the
==21128== main thread stack using the --main-stacksize= flag.
==21128== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 4: with resolver - Can't connect to 127.0.0.1:1984: Connection refused ==21130== Invalid read of size 4
==21130== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21130== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21130== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21130== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21130== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21130== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21130== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21130== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21130== by 0x8062D4E: main (nginx.c:382)
==21130== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21130==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 4: with resolver - Can't connect to 127.0.0.1:1984: Connection refused ==21130==
==21130== Process terminating with default action of signal 11 (SIGSEGV)
==21130== Access not within mapped region at address 0x0
==21130== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21130== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21130== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21130== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21130== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21130== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21130== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21130== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21130== by 0x8062D4E: main (nginx.c:382)
==21130== If you believe this happened as a result of a stack
==21130== overflow in your program's main thread (unlikely but
==21130== possible), you can try to increase the size of the
==21130== main thread stack using the --main-stacksize= flag.
==21130== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 33: reread after a read time out happen (receive -> receive) - Can't connect to 127.0.0.1:1984: Connection refused ==21132== Invalid read of size 4
==21132== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21132== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21132== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21132== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21132== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21132== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21132== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21132== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21132== by 0x8062D4E: main (nginx.c:382)
==21132== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21132==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 33: reread after a read time out happen (receive -> receive) - Can't connect to 127.0.0.1:1984: Connection refused ==21132==
==21132== Process terminating with default action of signal 11 (SIGSEGV)
==21132== Access not within mapped region at address 0x0
==21132== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21132== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21132== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21132== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21132== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21132== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21132== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21132== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21132== by 0x8062D4E: main (nginx.c:382)
==21132== If you believe this happened as a result of a stack
==21132== overflow in your program's main thread (unlikely but
==21132== possible), you can try to increase the size of the
==21132== main thread stack using the --main-stacksize= flag.
==21132== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 timeout: 100" should match a line in error.log (req 1)
058-tcp-socket.t TEST 33: reread after a read time out happen (receive -> receive) - pattern "lua tcp socket connect timeout: 60000" should match a line in error.log (req 1)
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 14: receive by chunks (very small buffer) - Can't connect to 127.0.0.1:1984: Connection refused ==21134== Invalid read of size 4
==21134== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21134== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21134== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21134== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21134== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21134== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21134== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21134== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21134== by 0x8062D4E: main (nginx.c:382)
==21134== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21134==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 14: receive by chunks (very small buffer) - Can't connect to 127.0.0.1:1984: Connection refused ==21134==
==21134== Process terminating with default action of signal 11 (SIGSEGV)
==21134== Access not within mapped region at address 0x0
==21134== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21134== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21134== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21134== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21134== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21134== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21134== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21134== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21134== by 0x8062D4E: main (nginx.c:382)
==21134== If you believe this happened as a result of a stack
==21134== overflow in your program's main thread (unlikely but
==21134== possible), you can try to increase the size of the
==21134== main thread stack using the --main-stacksize= flag.
==21134== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 24: two sockets mix together - Can't connect to 127.0.0.1:1984: Connection refused ==21136== Invalid read of size 4
==21136== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21136== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21136== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21136== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21136== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21136== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21136== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21136== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21136== by 0x8062D4E: main (nginx.c:382)
==21136== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21136==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 24: two sockets mix together - Can't connect to 127.0.0.1:1984: Connection refused ==21136==
==21136== Process terminating with default action of signal 11 (SIGSEGV)
==21136== Access not within mapped region at address 0x0
==21136== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21136== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21136== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21136== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21136== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21136== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21136== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21136== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21136== by 0x8062D4E: main (nginx.c:382)
==21136== If you believe this happened as a result of a stack
==21136== overflow in your program's main thread (unlikely but
==21136== possible), you can try to increase the size of the
==21136== main thread stack using the --main-stacksize= flag.
==21136== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 60: send boolean and nil - Can't connect to 127.0.0.1:1984: Connection refused ==21138== Invalid read of size 4
==21138== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21138== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21138== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21138== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21138== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21138== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21138== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21138== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21138== by 0x8062D4E: main (nginx.c:382)
==21138== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21138==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 60: send boolean and nil - Can't connect to 127.0.0.1:1984: Connection refused ==21138==
==21138== Process terminating with default action of signal 11 (SIGSEGV)
==21138== Access not within mapped region at address 0x0
==21138== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21138== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21138== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21138== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21138== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21138== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21138== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21138== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21138== by 0x8062D4E: main (nginx.c:382)
==21138== If you believe this happened as a result of a stack
==21138== overflow in your program's main thread (unlikely but
==21138== possible), you can try to increase the size of the
==21138== main thread stack using the --main-stacksize= flag.
==21138== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 55: free cleanup in ngx.timer (without sock:close) - Can't connect to 127.0.0.1:1984: Connection refused ==21140== Invalid read of size 4
==21140== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21140== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21140== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21140== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21140== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21140== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21140== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21140== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21140== by 0x8062D4E: main (nginx.c:382)
==21140== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21140==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 55: free cleanup in ngx.timer (without sock:close) - Can't connect to 127.0.0.1:1984: Connection refused ==21140==
==21140== Process terminating with default action of signal 11 (SIGSEGV)
==21140== Access not within mapped region at address 0x0
==21140== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21140== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21140== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21140== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21140== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21140== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21140== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21140== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21140== by 0x8062D4E: main (nginx.c:382)
==21140== If you believe this happened as a result of a stack
==21140== overflow in your program's main thread (unlikely but
==21140== possible), you can try to increase the size of the
==21140== main thread stack using the --main-stacksize= flag.
==21140== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 46: bad request tries to receiveuntil - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21142== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 46: bad request tries to receiveuntil - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21142== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "(?^:runtime error: content_by_lua\(nginx\.conf:\d+\):14: bad request)" should match a line in error.log (req 1)
058-tcp-socket.t TEST 28: send tables of string fragments (bad type ngx.null) - Can't connect to 127.0.0.1:1984: Connection refused ==21144== Invalid read of size 4
==21144== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21144== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21144== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21144== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21144== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21144== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21144== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21144== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21144== by 0x8062D4E: main (nginx.c:382)
==21144== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21144==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 28: send tables of string fragments (bad type ngx.null) - Can't connect to 127.0.0.1:1984: Connection refused ==21144==
==21144== Process terminating with default action of signal 11 (SIGSEGV)
==21144== Access not within mapped region at address 0x0
==21144== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21144== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21144== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21144== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21144== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21144== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21144== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21144== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21144== by 0x8062D4E: main (nginx.c:382)
==21144== If you believe this happened as a result of a stack
==21144== overflow in your program's main thread (unlikely but
==21144== possible), you can try to increase the size of the
==21144== main thread stack using the --main-stacksize= flag.
==21144== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 28: send tables of string fragments (bad type ngx.null) - pattern "bad argument \#1 to 'send' (bad data type userdata found)" should match a line in error.log (req 1)
058-tcp-socket.t TEST 59: the upper bound of port range should be 2^16 - 1 - Can't connect to 127.0.0.1:1984: Connection refused ==21146== Invalid read of size 4
==21146== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21146== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21146== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21146== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21146== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21146== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21146== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21146== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21146== by 0x8062D4E: main (nginx.c:382)
==21146== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21146==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 59: the upper bound of port range should be 2^16 - 1 - Can't connect to 127.0.0.1:1984: Connection refused ==21146==
==21146== Process terminating with default action of signal 11 (SIGSEGV)
==21146== Access not within mapped region at address 0x0
==21146== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21146== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21146== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21146== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21146== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21146== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21146== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21146== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21146== by 0x8062D4E: main (nginx.c:382)
==21146== If you believe this happened as a result of a stack
==21146== overflow in your program's main thread (unlikely but
==21146== possible), you can try to increase the size of the
==21146== main thread stack using the --main-stacksize= flag.
==21146== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 5: connection refused (tcp) - Can't connect to 127.0.0.1:1984: Connection refused ==21148== Invalid read of size 4
==21148== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21148== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21148== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21148== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21148== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21148== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21148== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21148== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21148== by 0x8062D4E: main (nginx.c:382)
==21148== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21148==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 5: connection refused (tcp) - Can't connect to 127.0.0.1:1984: Connection refused ==21148==
==21148== Process terminating with default action of signal 11 (SIGSEGV)
==21148== Access not within mapped region at address 0x0
==21148== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21148== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21148== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21148== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21148== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21148== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21148== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21148== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21148== by 0x8062D4E: main (nginx.c:382)
==21148== If you believe this happened as a result of a stack
==21148== overflow in your program's main thread (unlikely but
==21148== possible), you can try to increase the size of the
==21148== main thread stack using the --main-stacksize= flag.
==21148== 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 (aborted) '
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 5: connection refused (tcp) - pattern "(?^:connect\(\) failed \(\d+: Connection refused\))" should match a line in error.log (req 1)
058-tcp-socket.t TEST 36: successful reread after a read time out happen (receiveuntil -> receiveuntil) - Can't connect to 127.0.0.1:1984: Connection refused ==21150== Invalid read of size 4
==21150== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21150== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21150== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21150== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21150== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21150== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21150== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21150== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21150== by 0x8062D4E: main (nginx.c:382)
==21150== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21150==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 36: successful reread after a read time out happen (receiveuntil -> receiveuntil) - Can't connect to 127.0.0.1:1984: Connection refused ==21150==
==21150== Process terminating with default action of signal 11 (SIGSEGV)
==21150== Access not within mapped region at address 0x0
==21150== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21150== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21150== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21150== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21150== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21150== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21150== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21150== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21150== by 0x8062D4E: main (nginx.c:382)
==21150== If you believe this happened as a result of a stack
==21150== overflow in your program's main thread (unlikely but
==21150== possible), you can try to increase the size of the
==21150== main thread stack using the --main-stacksize= flag.
==21150== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua tcp socket read timed out" should match a line in error.log (req 1)
058-tcp-socket.t TEST 37: successful reread after a read time out happen (receiveuntil -> receive) - Can't connect to 127.0.0.1:1984: Connection refused ==21152== Invalid read of size 4
==21152== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21152== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21152== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21152== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21152== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21152== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21152== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21152== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21152== by 0x8062D4E: main (nginx.c:382)
==21152== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21152==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 37: successful reread after a read time out happen (receiveuntil -> receive) - Can't connect to 127.0.0.1:1984: Connection refused ==21152==
==21152== Process terminating with default action of signal 11 (SIGSEGV)
==21152== Access not within mapped region at address 0x0
==21152== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21152== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21152== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21152== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21152== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21152== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21152== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21152== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21152== by 0x8062D4E: main (nginx.c:382)
==21152== If you believe this happened as a result of a stack
==21152== overflow in your program's main thread (unlikely but
==21152== possible), you can try to increase the size of the
==21152== main thread stack using the --main-stacksize= flag.
==21152== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua tcp socket read timed out" should match a line in error.log (req 1)
058-tcp-socket.t TEST 42: bad request tries to receive - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21154== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 42: bad request tries to receive - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21154== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "(?^:runtime error: content_by_lua\(nginx\.conf:\d+\):13: bad request)" should match a line in error.log (req 1)
058-tcp-socket.t TEST 45: bad request tries to set keepalive - Can't connect to 127.0.0.1:1984: Connection refused ==21156== Invalid read of size 4
==21156== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21156== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21156== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21156== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21156== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21156== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21156== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21156== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21156== by 0x8062D4E: main (nginx.c:382)
==21156== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21156==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 45: bad request tries to set keepalive - Can't connect to 127.0.0.1:1984: Connection refused ==21156==
==21156== Process terminating with default action of signal 11 (SIGSEGV)
==21156== Access not within mapped region at address 0x0
==21156== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21156== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21156== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21156== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21156== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21156== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21156== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21156== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21156== by 0x8062D4E: main (nginx.c:382)
==21156== If you believe this happened as a result of a stack
==21156== overflow in your program's main thread (unlikely but
==21156== possible), you can try to increase the size of the
==21156== main thread stack using the --main-stacksize= flag.
==21156== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "(?^:runtime error: content_by_lua\(nginx\.conf:\d+\):12: bad request)" should match a line in error.log (req 1)
058-tcp-socket.t TEST 12: mixing *a and *l patterns for receive - Can't connect to 127.0.0.1:1984: Connection refused ==21158== Invalid read of size 4
==21158== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21158== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21158== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21158== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21158== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21158== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21158== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21158== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21158== by 0x8062D4E: main (nginx.c:382)
==21158== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21158==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 12: mixing *a and *l patterns for receive - Can't connect to 127.0.0.1:1984: Connection refused ==21158==
==21158== Process terminating with default action of signal 11 (SIGSEGV)
==21158== Access not within mapped region at address 0x0
==21158== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21158== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21158== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21158== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21158== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21158== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21158== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21158== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21158== by 0x8062D4E: main (nginx.c:382)
==21158== If you believe this happened as a result of a stack
==21158== overflow in your program's main thread (unlikely but
==21158== possible), you can try to increase the size of the
==21158== main thread stack using the --main-stacksize= flag.
==21158== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 2: no trailing newline - Can't connect to 127.0.0.1:1984: Connection refused ==21160== Invalid read of size 4
==21160== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21160== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21160== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21160== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21160== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21160== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21160== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21160== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21160== by 0x8062D4E: main (nginx.c:382)
==21160== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21160==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 2: no trailing newline - Can't connect to 127.0.0.1:1984: Connection refused ==21160==
==21160== Process terminating with default action of signal 11 (SIGSEGV)
==21160== Access not within mapped region at address 0x0
==21160== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21160== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21160== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21160== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21160== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21160== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21160== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21160== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21160== by 0x8062D4E: main (nginx.c:382)
==21160== If you believe this happened as a result of a stack
==21160== overflow in your program's main thread (unlikely but
==21160== possible), you can try to increase the size of the
==21160== main thread stack using the --main-stacksize= flag.
==21160== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 8: resolver error (host not found) - Can't connect to 127.0.0.1:1984: Connection refused ==21162== Invalid read of size 4
==21162== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21162== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21162== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21162== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21162== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21162== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21162== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21162== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21162== by 0x8062D4E: main (nginx.c:382)
==21162== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21162==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 8: resolver error (host not found) - Can't connect to 127.0.0.1:1984: Connection refused ==21162==
==21162== Process terminating with default action of signal 11 (SIGSEGV)
==21162== Access not within mapped region at address 0x0
==21162== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21162== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21162== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21162== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21162== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21162== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21162== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21162== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21162== by 0x8062D4E: main (nginx.c:382)
==21162== If you believe this happened as a result of a stack
==21162== overflow in your program's main thread (unlikely but
==21162== possible), you can try to increase the size of the
==21162== main thread stack using the --main-stacksize= flag.
==21162== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - pattern "attempt to send data on a closed socket" should match a line in error.log (req 1)
058-tcp-socket.t TEST 18: receive by chunks (stringified size) - Can't connect to 127.0.0.1:1984: Connection refused ==21164== Invalid read of size 4
==21164== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21164== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21164== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21164== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21164== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21164== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21164== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21164== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21164== by 0x8062D4E: main (nginx.c:382)
==21164== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21164==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 18: receive by chunks (stringified size) - Can't connect to 127.0.0.1:1984: Connection refused ==21164==
==21164== Process terminating with default action of signal 11 (SIGSEGV)
==21164== Access not within mapped region at address 0x0
==21164== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21164== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21164== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21164== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21164== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21164== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21164== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21164== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21164== by 0x8062D4E: main (nginx.c:382)
==21164== If you believe this happened as a result of a stack
==21164== overflow in your program's main thread (unlikely but
==21164== possible), you can try to increase the size of the
==21164== main thread stack using the --main-stacksize= flag.
==21164== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 25: send tables of string fragments - Can't connect to 127.0.0.1:1984: Connection refused ==21166== Invalid read of size 4
==21166== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21166== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21166== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21166== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21166== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21166== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21166== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21166== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21166== by 0x8062D4E: main (nginx.c:382)
==21166== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21166==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 25: send tables of string fragments - Can't connect to 127.0.0.1:1984: Connection refused ==21166==
==21166== Process terminating with default action of signal 11 (SIGSEGV)
==21166== Access not within mapped region at address 0x0
==21166== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21166== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21166== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21166== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21166== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21166== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21166== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21166== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21166== by 0x8062D4E: main (nginx.c:382)
==21166== If you believe this happened as a result of a stack
==21166== overflow in your program's main thread (unlikely but
==21166== possible), you can try to increase the size of the
==21166== main thread stack using the --main-stacksize= flag.
==21166== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
058-tcp-socket.t TEST 61: TCP socket GC'ed in preread phase without Lua content phase - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21168== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 61: TCP socket GC'ed in preread phase without Lua content phase - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21168== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 61: TCP socket GC'ed in preread phase without Lua content phase - pattern "cleanup lua tcp socket request" should match a line in error.log (req 1)
058-tcp-socket.t TEST 61: TCP socket GC'ed in preread phase without Lua content phase - pattern "GC cycle done" should match a line in error.log (req 1)
058-tcp-socket.t TEST 53: reuse cleanup - Can't connect to 127.0.0.1:1984: Connection refused ==21170== Invalid read of size 4
==21170== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21170== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21170== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21170== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21170== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21170== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21170== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21170== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21170== by 0x8062D4E: main (nginx.c:382)
==21170== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21170==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 53: reuse cleanup - Can't connect to 127.0.0.1:1984: Connection refused ==21170==
==21170== Process terminating with default action of signal 11 (SIGSEGV)
==21170== Access not within mapped region at address 0x0
==21170== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21170== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21170== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21170== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21170== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21170== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21170== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21170== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21170== by 0x8062D4E: main (nginx.c:382)
==21170== If you believe this happened as a result of a stack
==21170== overflow in your program's main thread (unlikely but
==21170== possible), you can try to increase the size of the
==21170== main thread stack using the --main-stacksize= flag.
==21170== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 13: receive by chunks - Can't connect to 127.0.0.1:1984: Connection refused ==21172== Invalid read of size 4
==21172== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21172== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21172== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21172== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21172== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21172== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21172== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21172== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21172== by 0x8062D4E: main (nginx.c:382)
==21172== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21172==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 13: receive by chunks - Can't connect to 127.0.0.1:1984: Connection refused ==21172==
==21172== Process terminating with default action of signal 11 (SIGSEGV)
==21172== Access not within mapped region at address 0x0
==21172== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21172== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21172== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21172== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21172== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21172== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21172== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21172== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21172== by 0x8062D4E: main (nginx.c:382)
==21172== If you believe this happened as a result of a stack
==21172== overflow in your program's main thread (unlikely but
==21172== possible), you can try to increase the size of the
==21172== main thread stack using the --main-stacksize= flag.
==21172== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 31: send("") - Can't connect to 127.0.0.1:1984: Connection refused ==21174== Invalid read of size 4
==21174== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21174== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21174== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21174== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21174== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21174== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21174== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21174== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21174== by 0x8062D4E: main (nginx.c:382)
==21174== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21174==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 31: send("") - Can't connect to 127.0.0.1:1984: Connection refused ==21174==
==21174== Process terminating with default action of signal 11 (SIGSEGV)
==21174== Access not within mapped region at address 0x0
==21174== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21174== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21174== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21174== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21174== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21174== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21174== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21174== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21174== by 0x8062D4E: main (nginx.c:382)
==21174== If you believe this happened as a result of a stack
==21174== overflow in your program's main thread (unlikely but
==21174== possible), you can try to increase the size of the
==21174== main thread stack using the --main-stacksize= flag.
==21174== 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("") - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 32: connection refused (tcp) - lua_socket_log_errors off - Can't connect to 127.0.0.1:1984: Connection refused ==21176== Invalid read of size 4
==21176== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21176== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21176== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21176== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21176== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21176== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21176== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21176== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21176== by 0x8062D4E: main (nginx.c:382)
==21176== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21176==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
058-tcp-socket.t TEST 32: connection refused (tcp) - lua_socket_log_errors off - Can't connect to 127.0.0.1:1984: Connection refused ==21176==
==21176== Process terminating with default action of signal 11 (SIGSEGV)
==21176== Access not within mapped region at address 0x0
==21176== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21176== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21176== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21176== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21176== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21176== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21176== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21176== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21176== by 0x8062D4E: main (nginx.c:382)
==21176== If you believe this happened as a result of a stack
==21176== overflow in your program's main thread (unlikely but
==21176== possible), you can try to increase the size of the
==21176== main thread stack using the --main-stacksize= flag.
==21176== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
059-unix-socket.t TEST 2: invalid host argument - Can't connect to 127.0.0.1:1984: Connection refused ==21181== Invalid read of size 4
==21181== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21181== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21181== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21181== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21181== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21181== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21181== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21181== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21181== by 0x8062D4E: main (nginx.c:382)
==21181== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21181==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
059-unix-socket.t TEST 2: invalid host argument - Can't connect to 127.0.0.1:1984: Connection refused ==21181==
==21181== Process terminating with default action of signal 11 (SIGSEGV)
==21181== Access not within mapped region at address 0x0
==21181== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21181== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21181== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21181== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21181== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21181== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21181== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21181== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21181== by 0x8062D4E: main (nginx.c:382)
==21181== If you believe this happened as a result of a stack
==21181== overflow in your program's main thread (unlikely but
==21181== possible), you can try to increase the size of the
==21181== main thread stack using the --main-stacksize= flag.
==21181== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: connection refused (unix domain socket) - Can't connect to 127.0.0.1:1984: Connection refused ==21183== Invalid read of size 4
==21183== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21183== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21183== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21183== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21183== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21183== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21183== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21183== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21183== by 0x8062D4E: main (nginx.c:382)
==21183== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21183==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==21183==
==21183== Process terminating with default action of signal 11 (SIGSEGV)
==21183== Access not within mapped region at address 0x0
==21183== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21183== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21183== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21183== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21183== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21183== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21183== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21183== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21183== by 0x8062D4E: main (nginx.c:382)
==21183== If you believe this happened as a result of a stack
==21183== overflow in your program's main thread (unlikely but
==21183== possible), you can try to increase the size of the
==21183== main thread stack using the --main-stacksize= flag.
==21183== 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 (aborted) '
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 1: connection refused (unix domain socket) - pattern "(?^:\[crit\] .*? connect\(\) to unix:/tmp/nosuchfile\.sock failed)" should match a line in error.log (req 1)
059-unix-socket.t TEST 3: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==21185== Invalid read of size 4
==21185== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21185== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21185== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21185== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21185== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21185== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21185== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21185== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21185== by 0x8062D4E: main (nginx.c:382)
==21185== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21185==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
059-unix-socket.t TEST 3: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==21185==
==21185== Process terminating with default action of signal 11 (SIGSEGV)
==21185== Access not within mapped region at address 0x0
==21185== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21185== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21185== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21185== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21185== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21185== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21185== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21185== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21185== by 0x8062D4E: main (nginx.c:382)
==21185== If you believe this happened as a result of a stack
==21185== overflow in your program's main thread (unlikely but
==21185== possible), you can try to increase the size of the
==21185== main thread stack using the --main-stacksize= flag.
==21185== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 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
'
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)
061-lua-redis.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==21197== Invalid read of size 4
==21197== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21197== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21197== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21197== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21197== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21197== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21197== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21197== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21197== by 0x8062D4E: main (nginx.c:382)
==21197== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21197==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
061-lua-redis.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==21197==
==21197== Process terminating with default action of signal 11 (SIGSEGV)
==21197== Access not within mapped region at address 0x0
==21197== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21197== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21197== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21197== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21197== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21197== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21197== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21197== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21197== by 0x8062D4E: main (nginx.c:382)
==21197== If you believe this happened as a result of a stack
==21197== overflow in your program's main thread (unlikely but
==21197== possible), you can try to increase the size of the
==21197== main thread stack using the --main-stacksize= flag.
==21197== The main thread stack size used in this run was 8388608.
==21197== 512 bytes in 1 blocks are definitely lost in loss record 2,888 of 3,151
==21197== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==21197== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==21197== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21197== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21197== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==21197== by 0x408AB9F: ir_nextk (lj_ir.c:175)
==21197== by 0x408AB9F: lj_ir_kslot (lj_ir.c:370)
==21197== by 0x409BD8D: rec_idx_key (lj_record.c:1378)
==21197== by 0x409BD8D: lj_record_idx (lj_record.c:1455)
==21197== by 0x409F552: lj_record_ins (lj_record.c:2339)
==21197== by 0x40BB16A: trace_state (lj_trace.c:680)
==21197== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21197== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21197== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21197== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21197== by 0x40D5DFD: lj_cf_package_require (lib_package.c:464)
==21197== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21197== by 0x407FA29: lua_resume (lj_api.c:1296)
==21197== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21197== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21197== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21197== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21197== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21197== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21197== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21197== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21197== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21197== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21197== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21197== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21197== by 0x8062D4E: main (nginx.c:382)
==21197==
{
<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_single_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:25:33 [error] 21197\#0: *3 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/27 04:25:33 [debug] 21197\#0: *3 stream lua tcp socket handle connect error
2020/10/27 04:25:33 [debug] 21197\#0: *3 stream lua finalize socket
2020/10/27 04:25:33 [debug] 21197\#0: *3 lua stream cleanup free: 04BE01D0
2020/10/27 04:25:33 [debug] 21197\#0: *3 lua close socket connection
2020/10/27 04:25:33 [debug] 21197\#0: *3 reusable connection: 0
2020/10/27 04:25:33 [debug] 21197\#0: *3 stream lua tcp socket waking up the current request
2020/10/27 04:25:33 [debug] 21197\#0: *3 lua ngx_stream_lua_content_wev_handler
2020/10/27 04:25:33 [debug] 21197\#0: *3 stream lua tcp operation done, resuming lua thread
2020/10/27 04:25:33 [debug] 21197\#0: *3 stream lua tcp socket calling prepare retvals handler 081677D0, u:04BDFE38
'
061-lua-redis.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2020/10/27 04:25:33 [error] 21197\#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:25:33 [debug] 21197\#0: *3 lua request cleanup: forcible=0
2020/10/27 04:25:33 [debug] 21197\#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 (aborted) '
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 2: coroutine-based pub/sub - Can't connect to 127.0.0.1:1984: Connection refused ==21199== Invalid read of size 4
==21199== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21199== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21199== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21199== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21199== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21199== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21199== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21199== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21199== by 0x8062D4E: main (nginx.c:382)
==21199== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21199==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
061-lua-redis.t TEST 2: coroutine-based pub/sub - Can't connect to 127.0.0.1:1984: Connection refused ==21199==
==21199== Process terminating with default action of signal 11 (SIGSEGV)
==21199== Access not within mapped region at address 0x0
==21199== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21199== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21199== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21199== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21199== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21199== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21199== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21199== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21199== by 0x8062D4E: main (nginx.c:382)
==21199== If you believe this happened as a result of a stack
==21199== overflow in your program's main thread (unlikely but
==21199== possible), you can try to increase the size of the
==21199== main thread stack using the --main-stacksize= flag.
==21199== The main thread stack size used in this run was 8388608.
==21199== 512 bytes in 1 blocks are definitely lost in loss record 2,932 of 3,203
==21199== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==21199== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==21199== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21199== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21199== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==21199== by 0x408AB9F: ir_nextk (lj_ir.c:175)
==21199== by 0x408AB9F: lj_ir_kslot (lj_ir.c:370)
==21199== by 0x409BD8D: rec_idx_key (lj_record.c:1378)
==21199== by 0x409BD8D: lj_record_idx (lj_record.c:1455)
==21199== by 0x409F552: lj_record_ins (lj_record.c:2339)
==21199== by 0x40BB16A: trace_state (lj_trace.c:680)
==21199== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21199== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21199== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21199== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21199== by 0x40D5DFD: lj_cf_package_require (lib_package.c:464)
==21199== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21199== by 0x407FA29: lua_resume (lj_api.c:1296)
==21199== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21199== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21199== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21199== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21199== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21199== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21199== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21199== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21199== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21199== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21199== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21199== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21199== by 0x8062D4E: main (nginx.c:382)
==21199==
{
<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_single_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:25:37 [error] 21199\#0: *3 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/27 04:25:37 [debug] 21199\#0: *3 stream lua tcp socket handle connect error
2020/10/27 04:25:37 [debug] 21199\#0: *3 stream lua finalize socket
2020/10/27 04:25:37 [debug] 21199\#0: *3 lua stream cleanup free: 04BE7FA8
2020/10/27 04:25:37 [debug] 21199\#0: *3 lua close socket connection
2020/10/27 04:25:37 [debug] 21199\#0: *3 reusable connection: 0
2020/10/27 04:25:37 [debug] 21199\#0: *3 stream lua tcp socket waking up the current request
2020/10/27 04:25:37 [debug] 21199\#0: *3 lua ngx_stream_lua_content_wev_handler
2020/10/27 04:25:37 [debug] 21199\#0: *3 stream lua tcp operation done, resuming lua thread
2020/10/27 04:25:37 [debug] 21199\#0: *3 stream lua tcp socket calling prepare retvals handler 081677D0, u:04BE7C10
'
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:25:37 [error] 21199\#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:56):7: in main chunk, client: 127.0.0.1, server: 0.0.0.0:1985
2020/10/27 04:25:37 [debug] 21199\#0: *3 lua request cleanup: forcible=0
2020/10/27 04:25:37 [debug] 21199\#0: *3 stream lua run thread returned 500
'
061-lua-redis.t TEST 2: coroutine-based pub/sub - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
062-count.t TEST 2: entries under ngx.req (content by lua) - Can't connect to 127.0.0.1:1984: Connection refused ==21204== Invalid read of size 4
==21204== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21204== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21204== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21204== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21204== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21204== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21204== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21204== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21204== by 0x8062D4E: main (nginx.c:382)
==21204== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21204==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
062-count.t TEST 2: entries under ngx.req (content by lua) - Can't connect to 127.0.0.1:1984: Connection refused ==21204==
==21204== Process terminating with default action of signal 11 (SIGSEGV)
==21204== Access not within mapped region at address 0x0
==21204== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21204== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21204== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21204== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21204== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21204== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21204== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21204== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21204== by 0x8062D4E: main (nginx.c:382)
==21204== If you believe this happened as a result of a stack
==21204== overflow in your program's main thread (unlikely but
==21204== possible), you can try to increase the size of the
==21204== main thread stack using the --main-stacksize= flag.
==21204== 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 13: entries under the metatable of tcp sockets - Can't connect to 127.0.0.1:1984: Connection refused ==21205== Invalid read of size 4
==21205== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21205== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21205== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21205== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21205== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21205== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21205== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21205== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21205== by 0x8062D4E: main (nginx.c:382)
==21205== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21205==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
062-count.t TEST 13: entries under the metatable of tcp sockets - Can't connect to 127.0.0.1:1984: Connection refused ==21205==
==21205== Process terminating with default action of signal 11 (SIGSEGV)
==21205== Access not within mapped region at address 0x0
==21205== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21205== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21205== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21205== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21205== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21205== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21205== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21205== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21205== by 0x8062D4E: main (nginx.c:382)
==21205== If you believe this happened as a result of a stack
==21205== overflow in your program's main thread (unlikely but
==21205== possible), you can try to increase the size of the
==21205== main thread stack using the --main-stacksize= flag.
==21205== 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 5: entries under the metatable of req sockets - Can't connect to 127.0.0.1:1984: Connection refused ==21206== Invalid read of size 4
==21206== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21206== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21206== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21206== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21206== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21206== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21206== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21206== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21206== by 0x8062D4E: main (nginx.c:382)
==21206== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21206==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
062-count.t TEST 5: entries under the metatable of req sockets - Can't connect to 127.0.0.1:1984: Connection refused ==21206==
==21206== Process terminating with default action of signal 11 (SIGSEGV)
==21206== Access not within mapped region at address 0x0
==21206== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21206== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21206== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21206== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21206== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21206== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21206== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21206== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21206== by 0x8062D4E: main (nginx.c:382)
==21206== If you believe this happened as a result of a stack
==21206== overflow in your program's main thread (unlikely but
==21206== possible), you can try to increase the size of the
==21206== main thread stack using the --main-stacksize= flag.
==21206== 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 7: entries under ngx.timer - Can't connect to 127.0.0.1:1984: Connection refused ==21207== Invalid read of size 4
==21207== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21207== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21207== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21207== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21207== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21207== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21207== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21207== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21207== by 0x8062D4E: main (nginx.c:382)
==21207== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21207==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
062-count.t TEST 7: entries under ngx.timer - Can't connect to 127.0.0.1:1984: Connection refused ==21207==
==21207== Process terminating with default action of signal 11 (SIGSEGV)
==21207== Access not within mapped region at address 0x0
==21207== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21207== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21207== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21207== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21207== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21207== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21207== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21207== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21207== by 0x8062D4E: main (nginx.c:382)
==21207== If you believe this happened as a result of a stack
==21207== overflow in your program's main thread (unlikely but
==21207== possible), you can try to increase the size of the
==21207== main thread stack using the --main-stacksize= flag.
==21207== 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 6: shdict metatable - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21208== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
062-count.t TEST 6: shdict metatable - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21208== by 0x8062D4E: main (nginx.c:382)
==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.

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 3: entries under ngx.socket - Can't connect to 127.0.0.1:1984: Connection refused ==21209== Invalid read of size 4
==21209== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21209== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21209== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21209== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21209== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21209== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21209== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21209== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21209== by 0x8062D4E: main (nginx.c:382)
==21209== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21209==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
062-count.t TEST 3: entries under ngx.socket - Can't connect to 127.0.0.1:1984: Connection refused ==21209==
==21209== Process terminating with default action of signal 11 (SIGSEGV)
==21209== Access not within mapped region at address 0x0
==21209== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21209== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21209== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21209== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21209== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21209== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21209== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21209== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21209== by 0x8062D4E: main (nginx.c:382)
==21209== If you believe this happened as a result of a stack
==21209== overflow in your program's main thread (unlikely but
==21209== possible), you can try to increase the size of the
==21209== main thread stack using the --main-stacksize= flag.
==21209== 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
'
062-count.t TEST 10: entries under coroutine. (content by lua) - Can't connect to 127.0.0.1:1984: Connection refused ==21210== Invalid read of size 4
==21210== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21210== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21210== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21210== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21210== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21210== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21210== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21210== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21210== by 0x8062D4E: main (nginx.c:382)
==21210== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21210==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
062-count.t TEST 10: entries under coroutine. (content by lua) - Can't connect to 127.0.0.1:1984: Connection refused ==21210==
==21210== Process terminating with default action of signal 11 (SIGSEGV)
==21210== Access not within mapped region at address 0x0
==21210== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21210== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21210== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21210== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21210== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21210== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21210== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21210== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21210== by 0x8062D4E: main (nginx.c:382)
==21210== If you believe this happened as a result of a stack
==21210== overflow in your program's main thread (unlikely but
==21210== possible), you can try to increase the size of the
==21210== main thread stack using the --main-stacksize= flag.
==21210== 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 12: entries under ngx.worker - Can't connect to 127.0.0.1:1984: Connection refused ==21211== Invalid read of size 4
==21211== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21211== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21211== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21211== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21211== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21211== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21211== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21211== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21211== by 0x8062D4E: main (nginx.c:382)
==21211== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21211==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
062-count.t TEST 12: entries under ngx.worker - Can't connect to 127.0.0.1:1984: Connection refused ==21211==
==21211== Process terminating with default action of signal 11 (SIGSEGV)
==21211== Access not within mapped region at address 0x0
==21211== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21211== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21211== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21211== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21211== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21211== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21211== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21211== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21211== by 0x8062D4E: main (nginx.c:382)
==21211== If you believe this happened as a result of a stack
==21211== overflow in your program's main thread (unlikely but
==21211== possible), you can try to increase the size of the
==21211== main thread stack using the --main-stacksize= flag.
==21211== 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 15: entries under the metatable of req raw sockets - Can't connect to 127.0.0.1:1984: Connection refused ==21212== Invalid read of size 4
==21212== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21212== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21212== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21212== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21212== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21212== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21212== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21212== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21212== by 0x8062D4E: main (nginx.c:382)
==21212== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21212==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
062-count.t TEST 15: entries under the metatable of req raw sockets - Can't connect to 127.0.0.1:1984: Connection refused ==21212==
==21212== Process terminating with default action of signal 11 (SIGSEGV)
==21212== Access not within mapped region at address 0x0
==21212== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21212== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21212== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21212== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21212== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21212== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21212== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21212== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21212== by 0x8062D4E: main (nginx.c:382)
==21212== If you believe this happened as a result of a stack
==21212== overflow in your program's main thread (unlikely but
==21212== possible), you can try to increase the size of the
==21212== main thread stack using the --main-stacksize= flag.
==21212== 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 1: entries under ngx. (content by lua) - Can't connect to 127.0.0.1:1984: Connection refused ==21213== Invalid read of size 4
==21213== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21213== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21213== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21213== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21213== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21213== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21213== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21213== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21213== by 0x8062D4E: main (nginx.c:382)
==21213== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21213==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==21213==
==21213== Process terminating with default action of signal 11 (SIGSEGV)
==21213== Access not within mapped region at address 0x0
==21213== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21213== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21213== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21213== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21213== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21213== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21213== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21213== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21213== by 0x8062D4E: main (nginx.c:382)
==21213== If you believe this happened as a result of a stack
==21213== overflow in your program's main thread (unlikely but
==21213== possible), you can try to increase the size of the
==21213== main thread stack using the --main-stacksize= flag.
==21213== 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 11: entries under ngx.thread. (content by lua) - Can't connect to 127.0.0.1:1984: Connection refused ==21214== Invalid read of size 4
==21214== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21214== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21214== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21214== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21214== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21214== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21214== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21214== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21214== by 0x8062D4E: main (nginx.c:382)
==21214== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21214==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
062-count.t TEST 11: entries under ngx.thread. (content by lua) - Can't connect to 127.0.0.1:1984: Connection refused ==21214==
==21214== Process terminating with default action of signal 11 (SIGSEGV)
==21214== Access not within mapped region at address 0x0
==21214== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21214== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21214== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21214== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21214== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21214== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21214== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21214== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21214== by 0x8062D4E: main (nginx.c:382)
==21214== If you believe this happened as a result of a stack
==21214== overflow in your program's main thread (unlikely but
==21214== possible), you can try to increase the size of the
==21214== main thread stack using the --main-stacksize= flag.
==21214== 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 9: entries under ngx.re - Can't connect to 127.0.0.1:1984: Connection refused ==21215== Invalid read of size 4
==21215== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21215== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21215== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21215== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21215== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21215== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21215== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21215== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21215== by 0x8062D4E: main (nginx.c:382)
==21215== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21215==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
062-count.t TEST 9: entries under ngx.re - Can't connect to 127.0.0.1:1984: Connection refused ==21215==
==21215== Process terminating with default action of signal 11 (SIGSEGV)
==21215== Access not within mapped region at address 0x0
==21215== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21215== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21215== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21215== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21215== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21215== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21215== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21215== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21215== by 0x8062D4E: main (nginx.c:382)
==21215== If you believe this happened as a result of a stack
==21215== overflow in your program's main thread (unlikely but
==21215== possible), you can try to increase the size of the
==21215== main thread stack using the --main-stacksize= flag.
==21215== 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 8: entries under ngx.config - Can't connect to 127.0.0.1:1984: Connection refused ==21216== Invalid read of size 4
==21216== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21216== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21216== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21216== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21216== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21216== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21216== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21216== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21216== by 0x8062D4E: main (nginx.c:382)
==21216== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21216==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
062-count.t TEST 8: entries under ngx.config - Can't connect to 127.0.0.1:1984: Connection refused ==21216==
==21216== Process terminating with default action of signal 11 (SIGSEGV)
==21216== Access not within mapped region at address 0x0
==21216== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21216== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21216== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21216== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21216== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21216== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21216== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21216== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21216== by 0x8062D4E: main (nginx.c:382)
==21216== If you believe this happened as a result of a stack
==21216== overflow in your program's main thread (unlikely but
==21216== possible), you can try to increase the size of the
==21216== main thread stack using the --main-stacksize= flag.
==21216== 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 14: entries under the metatable of udp sockets - Can't connect to 127.0.0.1:1984: Connection refused ==21217== Invalid read of size 4
==21217== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21217== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21217== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21217== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21217== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21217== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21217== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21217== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21217== by 0x8062D4E: main (nginx.c:382)
==21217== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21217==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
062-count.t TEST 14: entries under the metatable of udp sockets - Can't connect to 127.0.0.1:1984: Connection refused ==21217==
==21217== Process terminating with default action of signal 11 (SIGSEGV)
==21217== Access not within mapped region at address 0x0
==21217== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21217== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21217== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21217== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21217== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21217== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21217== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21217== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21217== by 0x8062D4E: main (nginx.c:382)
==21217== If you believe this happened as a result of a stack
==21217== overflow in your program's main thread (unlikely but
==21217== possible), you can try to increase the size of the
==21217== main thread stack using the --main-stacksize= flag.
==21217== 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
'
064-pcall.t TEST 1: pcall works - Can't connect to 127.0.0.1:1984: Connection refused ==21221== Invalid read of size 4
==21221== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21221== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21221== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21221== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21221== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21221== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21221== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21221== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21221== by 0x8062D4E: main (nginx.c:382)
==21221== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21221==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
064-pcall.t TEST 1: pcall works - Can't connect to 127.0.0.1:1984: Connection refused ==21221==
==21221== Process terminating with default action of signal 11 (SIGSEGV)
==21221== Access not within mapped region at address 0x0
==21221== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21221== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21221== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21221== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21221== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21221== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21221== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21221== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21221== by 0x8062D4E: main (nginx.c:382)
==21221== If you believe this happened as a result of a stack
==21221== overflow in your program's main thread (unlikely but
==21221== possible), you can try to increase the size of the
==21221== main thread stack using the --main-stacksize= flag.
==21221== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
$)'
064-pcall.t TEST 2: xpcall works - Can't connect to 127.0.0.1:1984: Connection refused ==21223== Invalid read of size 4
==21223== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21223== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21223== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21223== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21223== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21223== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21223== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21223== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21223== by 0x8062D4E: main (nginx.c:382)
==21223== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21223==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
064-pcall.t TEST 2: xpcall works - Can't connect to 127.0.0.1:1984: Connection refused ==21223==
==21223== Process terminating with default action of signal 11 (SIGSEGV)
==21223== Access not within mapped region at address 0x0
==21223== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21223== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21223== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21223== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21223== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21223== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21223== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21223== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21223== by 0x8062D4E: main (nginx.c:382)
==21223== If you believe this happened as a result of a stack
==21223== overflow in your program's main thread (unlikely but
==21223== possible), you can try to increase the size of the
==21223== main thread stack using the --main-stacksize= flag.
==21223== 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 (aborted) '
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
$)'
065-tcp-socket-timeout.t TEST 5: -1 is bad timeout value - Can't connect to 127.0.0.1:1984: Connection refused ==21228== Invalid read of size 4
==21228== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21228== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21228== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21228== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21228== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21228== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21228== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21228== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21228== by 0x8062D4E: main (nginx.c:382)
==21228== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21228==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 5: -1 is bad timeout value - Can't connect to 127.0.0.1:1984: Connection refused ==21228==
==21228== Process terminating with default action of signal 11 (SIGSEGV)
==21228== Access not within mapped region at address 0x0
==21228== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21228== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21228== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21228== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21228== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21228== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21228== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21228== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21228== by 0x8062D4E: main (nginx.c:382)
==21228== If you believe this happened as a result of a stack
==21228== overflow in your program's main thread (unlikely but
==21228== possible), you can try to increase the size of the
==21228== main thread stack using the --main-stacksize= flag.
==21228== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - pattern "bad timeout value" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 5: -1 is bad timeout value - pattern "finalize stream request: 500" 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 - Can't connect to 127.0.0.1:1984: Connection refused ==21230== Invalid read of size 4
==21230== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21230== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21230== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21230== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21230== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21230== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21230== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21230== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21230== by 0x8062D4E: main (nginx.c:382)
==21230== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21230==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 4: sock:settimeout(0) does not override lua_socket_connect_timeout - Can't connect to 127.0.0.1:1984: Connection refused ==21230==
==21230== Process terminating with default action of signal 11 (SIGSEGV)
==21230== Access not within mapped region at address 0x0
==21230== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21230== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21230== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21230== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21230== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21230== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21230== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21230== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21230== by 0x8062D4E: main (nginx.c:382)
==21230== If you believe this happened as a result of a stack
==21230== overflow in your program's main thread (unlikely but
==21230== possible), you can try to increase the size of the
==21230== main thread stack using the --main-stacksize= flag.
==21230== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 4: sock:settimeout(0) does not override lua_socket_connect_timeout - pattern "lua tcp socket connect timeout: 102" 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 - pattern "stream lua tcp socket connect timed out, when connecting to 127.0.0.2:12345" should match a line in error.log (req 1)
065-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 ==21232== Invalid read of size 4
==21232== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21232== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21232== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21232== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21232== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21232== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21232== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21232== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21232== by 0x8062D4E: main (nginx.c:382)
==21232== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21232==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_process_cycle
fun:main
}
065-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 ==21232==
==21232== Process terminating with default action of signal 11 (SIGSEGV)
==21232== Access not within mapped region at address 0x0
==21232== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21232== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21232== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21232== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21232== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21232== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21232== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21232== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21232== by 0x8062D4E: main (nginx.c:382)
==21232== If you believe this happened as a result of a stack
==21232== overflow in your program's main thread (unlikely but
==21232== possible), you can try to increase the size of the
==21232== main thread stack using the --main-stacksize= flag.
==21232== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 3: sock:settimeout(nil) does not override lua_socket_connect_timeout - pattern "lua tcp socket connect timeout: 102" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 3: sock:settimeout(nil) does not override lua_socket_connect_timeout - pattern "stream lua tcp socket connect timed out, when connecting to 127.0.0.2:12345" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 2: sock:settimeout() overrides lua_socket_connect_timeout - Can't connect to 127.0.0.1:1984: Connection refused ==21234== Invalid read of size 4
==21234== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21234== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21234== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21234== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21234== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21234== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21234== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21234== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21234== by 0x8062D4E: main (nginx.c:382)
==21234== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21234==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 2: sock:settimeout() overrides lua_socket_connect_timeout - Can't connect to 127.0.0.1:1984: Connection refused ==21234==
==21234== Process terminating with default action of signal 11 (SIGSEGV)
==21234== Access not within mapped region at address 0x0
==21234== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21234== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21234== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21234== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21234== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21234== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21234== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21234== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21234== by 0x8062D4E: main (nginx.c:382)
==21234== If you believe this happened as a result of a stack
==21234== overflow in your program's main thread (unlikely but
==21234== possible), you can try to increase the size of the
==21234== main thread stack using the --main-stacksize= flag.
==21234== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 2: sock:settimeout() overrides lua_socket_connect_timeout - pattern "lua tcp socket connect timeout: 150" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 2: sock:settimeout() overrides lua_socket_connect_timeout - pattern "stream lua tcp socket connect timed out, when connecting to 127.0.0.2:12345" 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 - Can't connect to 127.0.0.1:1984: Connection refused ==21236== Invalid read of size 4
==21236== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21236== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21236== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21236== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21236== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21236== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21236== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21236== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21236== by 0x8062D4E: main (nginx.c:382)
==21236== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21236==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 18: re-send on the same object after a send timeout happens - Can't connect to 127.0.0.1:1984: Connection refused ==21236==
==21236== Process terminating with default action of signal 11 (SIGSEGV)
==21236== Access not within mapped region at address 0x0
==21236== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21236== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21236== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21236== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21236== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21236== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21236== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21236== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21236== by 0x8062D4E: main (nginx.c:382)
==21236== If you believe this happened as a result of a stack
==21236== overflow in your program's main thread (unlikely but
==21236== possible), you can try to increase the size of the
==21236== main thread stack using the --main-stacksize= flag.
==21236== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 send timeout: 100" 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 - pattern "lua tcp socket connect timeout: 60000" 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 - pattern "lua tcp socket write timed out" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 13: sock:settimeout(nil) does not override lua_socket_send_timeout - Can't connect to 127.0.0.1:1984: Connection refused ==21238== Invalid read of size 4
==21238== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21238== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21238== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21238== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21238== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21238== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21238== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21238== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21238== by 0x8062D4E: main (nginx.c:382)
==21238== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21238==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 13: sock:settimeout(nil) does not override lua_socket_send_timeout - Can't connect to 127.0.0.1:1984: Connection refused ==21238==
==21238== Process terminating with default action of signal 11 (SIGSEGV)
==21238== Access not within mapped region at address 0x0
==21238== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21238== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21238== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21238== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21238== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21238== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21238== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21238== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21238== by 0x8062D4E: main (nginx.c:382)
==21238== If you believe this happened as a result of a stack
==21238== overflow in your program's main thread (unlikely but
==21238== possible), you can try to increase the size of the
==21238== main thread stack using the --main-stacksize= flag.
==21238== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 connect timeout: 60000" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 13: sock:settimeout(nil) does not override lua_socket_send_timeout - pattern "lua tcp socket send timeout: 102" should match a line in error.log (req 1)
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 22: concurrent operations while writing - Can't connect to 127.0.0.1:1984: Connection refused ==21259== Invalid read of size 4
==21259== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21259== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21259== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21259== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21259== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21259== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21259== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21259== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21259== by 0x8062D4E: main (nginx.c:382)
==21259== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21259==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 22: concurrent operations while writing - Can't connect to 127.0.0.1:1984: Connection refused ==21259==
==21259== Process terminating with default action of signal 11 (SIGSEGV)
==21259== Access not within mapped region at address 0x0
==21259== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21259== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21259== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21259== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21259== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21259== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21259== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21259== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21259== by 0x8062D4E: main (nginx.c:382)
==21259== If you believe this happened as a result of a stack
==21259== overflow in your program's main thread (unlikely but
==21259== possible), you can try to increase the size of the
==21259== main thread stack using the --main-stacksize= flag.
==21259== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 10: -1 is bad timeout value - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21485== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21485== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21485== by 0x8062D4E: main (nginx.c:382)
==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_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 10: -1 is bad timeout value - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21485== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21485== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21485== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - pattern "bad timeout value" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 10: -1 is bad timeout value - pattern "finalize stream request: 500" 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 - Can't connect to 127.0.0.1:1984: Connection refused ==21557== Invalid read of size 4
==21557== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21557== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21557== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21557== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21557== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21557== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21557== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21557== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21557== by 0x8062D4E: main (nginx.c:382)
==21557== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21557==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 8: sock:settimeout(nil) does not override lua_socket_read_timeout - Can't connect to 127.0.0.1:1984: Connection refused ==21557==
==21557== Process terminating with default action of signal 11 (SIGSEGV)
==21557== Access not within mapped region at address 0x0
==21557== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21557== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21557== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21557== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21557== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21557== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21557== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21557== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21557== by 0x8062D4E: main (nginx.c:382)
==21557== If you believe this happened as a result of a stack
==21557== overflow in your program's main thread (unlikely but
==21557== possible), you can try to increase the size of the
==21557== main thread stack using the --main-stacksize= flag.
==21557== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 connect timeout: 60000" 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 - pattern "lua tcp socket read timeout: 102" 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 - pattern "lua tcp socket read timed out" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 21: read timeout on receive(N) - Can't connect to 127.0.0.1:1984: Connection refused ==21559== Invalid read of size 4
==21559== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21559== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21559== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21559== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21559== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21559== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21559== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21559== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21559== by 0x8062D4E: main (nginx.c:382)
==21559== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21559==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 21: read timeout on receive(N) - Can't connect to 127.0.0.1:1984: Connection refused ==21559==
==21559== Process terminating with default action of signal 11 (SIGSEGV)
==21559== Access not within mapped region at address 0x0
==21559== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21559== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21559== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21559== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21559== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21559== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21559== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21559== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21559== by 0x8062D4E: main (nginx.c:382)
==21559== If you believe this happened as a result of a stack
==21559== overflow in your program's main thread (unlikely but
==21559== possible), you can try to increase the size of the
==21559== main thread stack using the --main-stacksize= flag.
==21559== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 21: read timeout on receive(N) - pattern "lua tcp socket read timeout: 10" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 21: read timeout on receive(N) - pattern "lua tcp socket connect timeout: 60000" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 21: read timeout on receive(N) - pattern "lua tcp socket read timed out" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 11: lua_socket_send_timeout only - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21561== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21561== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21561== by 0x8062D4E: main (nginx.c:382)
==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_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 11: lua_socket_send_timeout only - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21561== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21561== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21561== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 send timeout: 100" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 11: lua_socket_send_timeout only - pattern "lua tcp socket connect timeout: 60000" should match a line in error.log (req 1)
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 6: lua_socket_read_timeout only - Can't connect to 127.0.0.1:1984: Connection refused ==21563== Invalid read of size 4
==21563== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21563== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21563== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21563== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21563== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21563== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21563== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21563== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21563== by 0x8062D4E: main (nginx.c:382)
==21563== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21563==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 6: lua_socket_read_timeout only - Can't connect to 127.0.0.1:1984: Connection refused ==21563==
==21563== Process terminating with default action of signal 11 (SIGSEGV)
==21563== Access not within mapped region at address 0x0
==21563== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21563== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21563== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21563== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21563== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21563== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21563== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21563== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21563== by 0x8062D4E: main (nginx.c:382)
==21563== If you believe this happened as a result of a stack
==21563== overflow in your program's main thread (unlikely but
==21563== possible), you can try to increase the size of the
==21563== main thread stack using the --main-stacksize= flag.
==21563== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 timeout: 100" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 6: lua_socket_read_timeout only - pattern "lua tcp socket connect timeout: 60000" should match a line in error.log (req 1)
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 12: sock:settimeout() overrides lua_socket_send_timeout - Can't connect to 127.0.0.1:1984: Connection refused ==21565== Invalid read of size 4
==21565== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21565== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21565== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21565== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21565== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21565== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21565== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21565== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21565== by 0x8062D4E: main (nginx.c:382)
==21565== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21565==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 12: sock:settimeout() overrides lua_socket_send_timeout - Can't connect to 127.0.0.1:1984: Connection refused ==21565==
==21565== Process terminating with default action of signal 11 (SIGSEGV)
==21565== Access not within mapped region at address 0x0
==21565== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21565== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21565== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21565== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21565== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21565== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21565== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21565== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21565== by 0x8062D4E: main (nginx.c:382)
==21565== If you believe this happened as a result of a stack
==21565== overflow in your program's main thread (unlikely but
==21565== possible), you can try to increase the size of the
==21565== main thread stack using the --main-stacksize= flag.
==21565== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 connect timeout: 60000" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 12: sock:settimeout() overrides lua_socket_send_timeout - pattern "lua tcp socket send timeout: 150" should match a line in error.log (req 1)
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 20: abort when downstream socket pending on writes - Can't connect to 127.0.0.1:1984: Connection refused ==21567== Invalid read of size 4
==21567== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21567== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21567== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21567== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21567== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21567== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21567== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21567== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21567== by 0x8062D4E: main (nginx.c:382)
==21567== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21567==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_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 ==21567==
==21567== Process terminating with default action of signal 11 (SIGSEGV)
==21567== Access not within mapped region at address 0x0
==21567== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21567== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21567== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21567== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21567== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21567== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21567== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21567== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21567== by 0x8062D4E: main (nginx.c:382)
==21567== If you believe this happened as a result of a stack
==21567== overflow in your program's main thread (unlikely but
==21567== possible), you can try to increase the size of the
==21567== main thread stack using the --main-stacksize= flag.
==21567== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "stream lua tcp socket send timeout: 100" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 20: abort when downstream socket pending on writes - pattern "quitting request now" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 14: sock:settimeout(0) does not override lua_socket_send_timeout - Can't connect to 127.0.0.1:1984: Connection refused ==21569== Invalid read of size 4
==21569== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21569== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21569== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21569== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21569== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21569== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21569== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21569== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21569== by 0x8062D4E: main (nginx.c:382)
==21569== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21569==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 14: sock:settimeout(0) does not override lua_socket_send_timeout - Can't connect to 127.0.0.1:1984: Connection refused ==21569==
==21569== Process terminating with default action of signal 11 (SIGSEGV)
==21569== Access not within mapped region at address 0x0
==21569== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21569== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21569== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21569== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21569== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21569== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21569== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21569== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21569== by 0x8062D4E: main (nginx.c:382)
==21569== If you believe this happened as a result of a stack
==21569== overflow in your program's main thread (unlikely but
==21569== possible), you can try to increase the size of the
==21569== main thread stack using the --main-stacksize= flag.
==21569== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 connect timeout: 60000" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 14: sock:settimeout(0) does not override lua_socket_send_timeout - pattern "lua tcp socket send timeout: 102" should match a line in error.log (req 1)
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 17: re-connect after timed out - Can't connect to 127.0.0.1:1984: Connection refused ==21571== Invalid read of size 4
==21571== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21571== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21571== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21571== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21571== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21571== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21571== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21571== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21571== by 0x8062D4E: main (nginx.c:382)
==21571== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21571==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 17: re-connect after timed out - Can't connect to 127.0.0.1:1984: Connection refused ==21571==
==21571== Process terminating with default action of signal 11 (SIGSEGV)
==21571== Access not within mapped region at address 0x0
==21571== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21571== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21571== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21571== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21571== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21571== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21571== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21571== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21571== by 0x8062D4E: main (nginx.c:382)
==21571== If you believe this happened as a result of a stack
==21571== overflow in your program's main thread (unlikely but
==21571== possible), you can try to increase the size of the
==21571== main thread stack using the --main-stacksize= flag.
==21571== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 17: re-connect after timed out - pattern "lua tcp socket connect timeout: 100" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 17: re-connect after timed out - pattern "stream lua tcp socket connect timed out, when connecting to 127.0.0.2:12345" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 16: exit in user thread (entry thread is still pending on tcpsock:send) - Can't connect to 127.0.0.1:1984: Connection refused ==21573== Invalid read of size 4
==21573== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21573== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21573== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21573== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21573== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21573== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21573== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21573== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21573== by 0x8062D4E: main (nginx.c:382)
==21573== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21573==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 16: exit in user thread (entry thread is still pending on tcpsock:send) - Can't connect to 127.0.0.1:1984: Connection refused ==21573==
==21573== Process terminating with default action of signal 11 (SIGSEGV)
==21573== Access not within mapped region at address 0x0
==21573== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21573== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21573== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21573== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21573== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21573== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21573== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21573== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21573== by 0x8062D4E: main (nginx.c:382)
==21573== If you believe this happened as a result of a stack
==21573== overflow in your program's main thread (unlikely but
==21573== possible), you can try to increase the size of the
==21573== main thread stack using the --main-stacksize= flag.
==21573== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
065-tcp-socket-timeout.t TEST 15: sock:settimeout(-1) does not override lua_socket_send_timeout - Can't connect to 127.0.0.1:1984: Connection refused ==21575== Invalid read of size 4
==21575== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21575== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21575== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21575== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21575== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21575== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21575== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21575== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21575== by 0x8062D4E: main (nginx.c:382)
==21575== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21575==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 15: sock:settimeout(-1) does not override lua_socket_send_timeout - Can't connect to 127.0.0.1:1984: Connection refused ==21575==
==21575== Process terminating with default action of signal 11 (SIGSEGV)
==21575== Access not within mapped region at address 0x0
==21575== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21575== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21575== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21575== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21575== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21575== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21575== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21575== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21575== by 0x8062D4E: main (nginx.c:382)
==21575== If you believe this happened as a result of a stack
==21575== overflow in your program's main thread (unlikely but
==21575== possible), you can try to increase the size of the
==21575== main thread stack using the --main-stacksize= flag.
==21575== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - pattern "bad timeout value" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 15: sock:settimeout(-1) does not override lua_socket_send_timeout - pattern "finalize stream request: 500" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 1: lua_socket_connect_timeout only - Can't connect to 127.0.0.1:1984: Connection refused ==21577== Invalid read of size 4
==21577== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21577== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21577== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21577== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21577== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21577== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21577== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21577== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21577== by 0x8062D4E: main (nginx.c:382)
==21577== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21577==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 1: lua_socket_connect_timeout only - Can't connect to 127.0.0.1:1984: Connection refused ==21577==
==21577== Process terminating with default action of signal 11 (SIGSEGV)
==21577== Access not within mapped region at address 0x0
==21577== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21577== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21577== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21577== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21577== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21577== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21577== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21577== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21577== by 0x8062D4E: main (nginx.c:382)
==21577== If you believe this happened as a result of a stack
==21577== overflow in your program's main thread (unlikely but
==21577== possible), you can try to increase the size of the
==21577== main thread stack using the --main-stacksize= flag.
==21577== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: lua_socket_connect_timeout only - pattern "lua tcp socket connect timeout: 100" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 1: lua_socket_connect_timeout only - pattern "stream lua tcp socket connect timed out, when connecting to 127.0.0.2:12345" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout - Can't connect to 127.0.0.1:1984: Connection refused ==21579== Invalid read of size 4
==21579== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21579== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21579== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21579== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21579== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21579== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21579== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21579== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21579== by 0x8062D4E: main (nginx.c:382)
==21579== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21579==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout - Can't connect to 127.0.0.1:1984: Connection refused ==21579==
==21579== Process terminating with default action of signal 11 (SIGSEGV)
==21579== Access not within mapped region at address 0x0
==21579== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21579== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21579== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21579== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21579== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21579== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21579== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21579== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21579== by 0x8062D4E: main (nginx.c:382)
==21579== If you believe this happened as a result of a stack
==21579== overflow in your program's main thread (unlikely but
==21579== possible), you can try to increase the size of the
==21579== main thread stack using the --main-stacksize= flag.
==21579== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 connect timeout: 60000" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 7: sock:settimeout() overrides lua_socket_read_timeout - pattern "lua tcp socket read timeout: 150" should match a line in error.log (req 1)
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 9: sock:settimeout(0) does not override lua_socket_read_timeout - Can't connect to 127.0.0.1:1984: Connection refused ==21581== Invalid read of size 4
==21581== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21581== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21581== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21581== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21581== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21581== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21581== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21581== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21581== by 0x8062D4E: main (nginx.c:382)
==21581== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21581==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 9: sock:settimeout(0) does not override lua_socket_read_timeout - Can't connect to 127.0.0.1:1984: Connection refused ==21581==
==21581== Process terminating with default action of signal 11 (SIGSEGV)
==21581== Access not within mapped region at address 0x0
==21581== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21581== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21581== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21581== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21581== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21581== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21581== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21581== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21581== by 0x8062D4E: main (nginx.c:382)
==21581== If you believe this happened as a result of a stack
==21581== overflow in your program's main thread (unlikely but
==21581== possible), you can try to increase the size of the
==21581== main thread stack using the --main-stacksize= flag.
==21581== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 connect timeout: 60000" 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 - pattern "lua tcp socket read timeout: 102" 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 - pattern "lua tcp socket read 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 - Can't connect to 127.0.0.1:1984: Connection refused ==21583== Invalid read of size 4
==21583== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21583== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21583== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21583== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21583== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21583== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21583== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21583== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21583== by 0x8062D4E: main (nginx.c:382)
==21583== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21583==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_process_cycle
fun:main
}
065-tcp-socket-timeout.t TEST 19: abort when upstream sockets pending on writes - Can't connect to 127.0.0.1:1984: Connection refused ==21583==
==21583== Process terminating with default action of signal 11 (SIGSEGV)
==21583== Access not within mapped region at address 0x0
==21583== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21583== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21583== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21583== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21583== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21583== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==21583== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==21583== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21583== by 0x8062D4E: main (nginx.c:382)
==21583== If you believe this happened as a result of a stack
==21583== overflow in your program's main thread (unlikely but
==21583== possible), you can try to increase the size of the
==21583== main thread stack using the --main-stacksize= flag.
==21583== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 19: abort when upstream sockets pending on writes - pattern "lua tcp socket send timeout: 100" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 19: abort when upstream sockets pending on writes - pattern "lua tcp socket connect timeout: 60000" should match a line in error.log (req 1)
066-socket-receiveuntil.t TEST 13: ambiguous boundary patterns (abcabdabcabe 4) - Can't connect to 127.0.0.1:1984: Connection refused ==21588== Invalid read of size 4
==21588== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21588== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21588== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21588== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21588== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21588== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21588== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21588== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21588== by 0x8062D4E: main (nginx.c:382)
==21588== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21588==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 13: ambiguous boundary patterns (abcabdabcabe 4) - Can't connect to 127.0.0.1:1984: Connection refused ==21588==
==21588== Process terminating with default action of signal 11 (SIGSEGV)
==21588== Access not within mapped region at address 0x0
==21588== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21588== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21588== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21588== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21588== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21588== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21588== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21588== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21588== by 0x8062D4E: main (nginx.c:382)
==21588== If you believe this happened as a result of a stack
==21588== overflow in your program's main thread (unlikely but
==21588== possible), you can try to increase the size of the
==21588== main thread stack using the --main-stacksize= flag.
==21588== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 5: ambiguous boundary patterns (aa) - Can't connect to 127.0.0.1:1984: Connection refused ==21590== Invalid read of size 4
==21590== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21590== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21590== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21590== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21590== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21590== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21590== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21590== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21590== by 0x8062D4E: main (nginx.c:382)
==21590== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21590==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 5: ambiguous boundary patterns (aa) - Can't connect to 127.0.0.1:1984: Connection refused ==21590==
==21590== Process terminating with default action of signal 11 (SIGSEGV)
==21590== Access not within mapped region at address 0x0
==21590== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21590== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21590== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21590== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21590== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21590== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21590== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21590== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21590== by 0x8062D4E: main (nginx.c:382)
==21590== If you believe this happened as a result of a stack
==21590== overflow in your program's main thread (unlikely but
==21590== possible), you can try to increase the size of the
==21590== main thread stack using the --main-stacksize= flag.
==21590== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 8: ambiguous boundary patterns (aaaaad), small buffer, 2 bytes - Can't connect to 127.0.0.1:1984: Connection refused ==21592== Invalid read of size 4
==21592== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21592== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21592== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21592== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21592== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21592== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21592== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21592== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21592== by 0x8062D4E: main (nginx.c:382)
==21592== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21592==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 8: ambiguous boundary patterns (aaaaad), small buffer, 2 bytes - Can't connect to 127.0.0.1:1984: Connection refused ==21592==
==21592== Process terminating with default action of signal 11 (SIGSEGV)
==21592== Access not within mapped region at address 0x0
==21592== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21592== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21592== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21592== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21592== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21592== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21592== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21592== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21592== by 0x8062D4E: main (nginx.c:382)
==21592== If you believe this happened as a result of a stack
==21592== overflow in your program's main thread (unlikely but
==21592== possible), you can try to increase the size of the
==21592== main thread stack using the --main-stacksize= flag.
==21592== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 12: ambiguous boundary patterns (abcabdabcabe 3) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21594== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 12: ambiguous boundary patterns (abcabdabcabe 3) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21594== by 0x8062D4E: main (nginx.c:382)
==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.

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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 14: ambiguous boundary patterns (--abc) - Can't connect to 127.0.0.1:1984: Connection refused ==21596== Invalid read of size 4
==21596== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21596== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21596== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21596== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21596== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21596== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21596== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21596== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21596== by 0x8062D4E: main (nginx.c:382)
==21596== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21596==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 14: ambiguous boundary patterns (--abc) - Can't connect to 127.0.0.1:1984: Connection refused ==21596==
==21596== Process terminating with default action of signal 11 (SIGSEGV)
==21596== Access not within mapped region at address 0x0
==21596== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21596== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21596== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21596== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21596== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21596== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21596== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21596== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21596== by 0x8062D4E: main (nginx.c:382)
==21596== If you believe this happened as a result of a stack
==21596== overflow in your program's main thread (unlikely but
==21596== possible), you can try to increase the size of the
==21596== main thread stack using the --main-stacksize= flag.
==21596== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 2: http read lines - Can't connect to 127.0.0.1:1984: Connection refused ==21598== Invalid read of size 4
==21598== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21598== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21598== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21598== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21598== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21598== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21598== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21598== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21598== by 0x8062D4E: main (nginx.c:382)
==21598== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21598==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 2: http read lines - Can't connect to 127.0.0.1:1984: Connection refused ==21598==
==21598== Process terminating with default action of signal 11 (SIGSEGV)
==21598== Access not within mapped region at address 0x0
==21598== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21598== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21598== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21598== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21598== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21598== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21598== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21598== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21598== by 0x8062D4E: main (nginx.c:382)
==21598== If you believe this happened as a result of a stack
==21598== overflow in your program's main thread (unlikely but
==21598== possible), you can try to increase the size of the
==21598== main thread stack using the --main-stacksize= flag.
==21598== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
066-socket-receiveuntil.t TEST 7: ambiguous boundary patterns (aaaaad) - Can't connect to 127.0.0.1:1984: Connection refused ==21600== Invalid read of size 4
==21600== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21600== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21600== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21600== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21600== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21600== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21600== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21600== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21600== by 0x8062D4E: main (nginx.c:382)
==21600== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21600==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 7: ambiguous boundary patterns (aaaaad) - Can't connect to 127.0.0.1:1984: Connection refused ==21600==
==21600== Process terminating with default action of signal 11 (SIGSEGV)
==21600== Access not within mapped region at address 0x0
==21600== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21600== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21600== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21600== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21600== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21600== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21600== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21600== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21600== by 0x8062D4E: main (nginx.c:382)
==21600== If you believe this happened as a result of a stack
==21600== overflow in your program's main thread (unlikely but
==21600== possible), you can try to increase the size of the
==21600== main thread stack using the --main-stacksize= flag.
==21600== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 11: ambiguous boundary patterns (abcabdabcabe 2) - Can't connect to 127.0.0.1:1984: Connection refused ==21602== Invalid read of size 4
==21602== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21602== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21602== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21602== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21602== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21602== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21602== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21602== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21602== by 0x8062D4E: main (nginx.c:382)
==21602== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21602==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==21602==
==21602== Process terminating with default action of signal 11 (SIGSEGV)
==21602== Access not within mapped region at address 0x0
==21602== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21602== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21602== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21602== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21602== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21602== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21602== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21602== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21602== by 0x8062D4E: main (nginx.c:382)
==21602== If you believe this happened as a result of a stack
==21602== overflow in your program's main thread (unlikely but
==21602== possible), you can try to increase the size of the
==21602== main thread stack using the --main-stacksize= flag.
==21602== 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 (aborted) '
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 3: http read all the headers in a single run - Can't connect to 127.0.0.1:1984: Connection refused ==21604== Invalid read of size 4
==21604== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21604== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21604== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21604== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21604== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21604== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21604== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21604== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21604== by 0x8062D4E: main (nginx.c:382)
==21604== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21604==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 3: http read all the headers in a single run - Can't connect to 127.0.0.1:1984: Connection refused ==21604==
==21604== Process terminating with default action of signal 11 (SIGSEGV)
==21604== Access not within mapped region at address 0x0
==21604== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21604== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21604== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21604== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21604== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21604== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21604== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21604== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21604== by 0x8062D4E: main (nginx.c:382)
==21604== If you believe this happened as a result of a stack
==21604== overflow in your program's main thread (unlikely but
==21604== possible), you can try to increase the size of the
==21604== main thread stack using the --main-stacksize= flag.
==21604== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 19: long patterns - Can't connect to 127.0.0.1:1984: Connection refused ==21606== Invalid read of size 4
==21606== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21606== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21606== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21606== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21606== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21606== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21606== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21606== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21606== by 0x8062D4E: main (nginx.c:382)
==21606== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21606==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 19: long patterns - Can't connect to 127.0.0.1:1984: Connection refused ==21606==
==21606== Process terminating with default action of signal 11 (SIGSEGV)
==21606== Access not within mapped region at address 0x0
==21606== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21606== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21606== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21606== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21606== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21606== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21606== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21606== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21606== by 0x8062D4E: main (nginx.c:382)
==21606== If you believe this happened as a result of a stack
==21606== overflow in your program's main thread (unlikely but
==21606== possible), you can try to increase the size of the
==21606== main thread stack using the --main-stacksize= flag.
==21606== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==21608== Invalid read of size 4
==21608== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21608== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21608== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21608== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21608== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21608== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21608== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21608== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21608== by 0x8062D4E: main (nginx.c:382)
==21608== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21608==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 18: ambiguous boundary patterns (abcabd), small buffer - Can't connect to 127.0.0.1:1984: Connection refused ==21608==
==21608== Process terminating with default action of signal 11 (SIGSEGV)
==21608== Access not within mapped region at address 0x0
==21608== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21608== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21608== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21608== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21608== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21608== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21608== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21608== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21608== by 0x8062D4E: main (nginx.c:382)
==21608== If you believe this happened as a result of a stack
==21608== overflow in your program's main thread (unlikely but
==21608== possible), you can try to increase the size of the
==21608== main thread stack using the --main-stacksize= flag.
==21608== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 15: ambiguous boundary patterns (--abc) - Can't connect to 127.0.0.1:1984: Connection refused ==21610== Invalid read of size 4
==21610== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21610== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21610== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21610== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21610== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21610== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21610== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21610== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21610== by 0x8062D4E: main (nginx.c:382)
==21610== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21610==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 15: ambiguous boundary patterns (--abc) - Can't connect to 127.0.0.1:1984: Connection refused ==21610==
==21610== Process terminating with default action of signal 11 (SIGSEGV)
==21610== Access not within mapped region at address 0x0
==21610== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21610== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21610== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21610== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21610== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21610== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21610== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21610== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21610== by 0x8062D4E: main (nginx.c:382)
==21610== If you believe this happened as a result of a stack
==21610== overflow in your program's main thread (unlikely but
==21610== possible), you can try to increase the size of the
==21610== main thread stack using the --main-stacksize= flag.
==21610== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 17: ambiguous boundary patterns (--abc), small buffer, mixed by other reading calls - Can't connect to 127.0.0.1:1984: Connection refused ==21612== Invalid read of size 4
==21612== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21612== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21612== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21612== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21612== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21612== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21612== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21612== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21612== by 0x8062D4E: main (nginx.c:382)
==21612== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21612==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 17: ambiguous boundary patterns (--abc), small buffer, mixed by other reading calls - Can't connect to 127.0.0.1:1984: Connection refused ==21612==
==21612== Process terminating with default action of signal 11 (SIGSEGV)
==21612== Access not within mapped region at address 0x0
==21612== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21612== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21612== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21612== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21612== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21612== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21612== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21612== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21612== by 0x8062D4E: main (nginx.c:382)
==21612== If you believe this happened as a result of a stack
==21612== overflow in your program's main thread (unlikely but
==21612== possible), you can try to increase the size of the
==21612== main thread stack using the --main-stacksize= flag.
==21612== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 16: ambiguous boundary patterns (--abc), small buffer - Can't connect to 127.0.0.1:1984: Connection refused ==21614== Invalid read of size 4
==21614== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21614== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21614== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21614== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21614== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21614== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21614== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21614== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21614== by 0x8062D4E: main (nginx.c:382)
==21614== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21614==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 16: ambiguous boundary patterns (--abc), small buffer - Can't connect to 127.0.0.1:1984: Connection refused ==21614==
==21614== Process terminating with default action of signal 11 (SIGSEGV)
==21614== Access not within mapped region at address 0x0
==21614== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21614== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21614== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21614== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21614== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21614== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21614== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21614== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21614== by 0x8062D4E: main (nginx.c:382)
==21614== If you believe this happened as a result of a stack
==21614== overflow in your program's main thread (unlikely but
==21614== possible), you can try to increase the size of the
==21614== main thread stack using the --main-stacksize= flag.
==21614== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 9: ambiguous boundary patterns (aaaaad), small buffer, 1 byte - Can't connect to 127.0.0.1:1984: Connection refused ==21616== Invalid read of size 4
==21616== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21616== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21616== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21616== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21616== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21616== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21616== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21616== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21616== by 0x8062D4E: main (nginx.c:382)
==21616== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21616==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 9: ambiguous boundary patterns (aaaaad), small buffer, 1 byte - Can't connect to 127.0.0.1:1984: Connection refused ==21616==
==21616== Process terminating with default action of signal 11 (SIGSEGV)
==21616== Access not within mapped region at address 0x0
==21616== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21616== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21616== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21616== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21616== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21616== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21616== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21616== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21616== by 0x8062D4E: main (nginx.c:382)
==21616== If you believe this happened as a result of a stack
==21616== overflow in your program's main thread (unlikely but
==21616== possible), you can try to increase the size of the
==21616== main thread stack using the --main-stacksize= flag.
==21616== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 10: ambiguous boundary patterns (abcabdabcabe) - Can't connect to 127.0.0.1:1984: Connection refused ==21618== Invalid read of size 4
==21618== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21618== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21618== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21618== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21618== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21618== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21618== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21618== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21618== by 0x8062D4E: main (nginx.c:382)
==21618== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21618==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 10: ambiguous boundary patterns (abcabdabcabe) - Can't connect to 127.0.0.1:1984: Connection refused ==21618==
==21618== Process terminating with default action of signal 11 (SIGSEGV)
==21618== Access not within mapped region at address 0x0
==21618== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21618== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21618== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21618== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21618== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21618== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21618== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21618== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21618== by 0x8062D4E: main (nginx.c:382)
==21618== If you believe this happened as a result of a stack
==21618== overflow in your program's main thread (unlikely but
==21618== possible), you can try to increase the size of the
==21618== main thread stack using the --main-stacksize= flag.
==21618== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 4: ambiguous boundary patterns (abcabd) - Can't connect to 127.0.0.1:1984: Connection refused ==21620== Invalid read of size 4
==21620== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21620== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21620== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21620== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21620== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21620== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21620== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21620== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21620== by 0x8062D4E: main (nginx.c:382)
==21620== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21620==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 4: ambiguous boundary patterns (abcabd) - Can't connect to 127.0.0.1:1984: Connection refused ==21620==
==21620== Process terminating with default action of signal 11 (SIGSEGV)
==21620== Access not within mapped region at address 0x0
==21620== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21620== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21620== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21620== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21620== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21620== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21620== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21620== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21620== by 0x8062D4E: main (nginx.c:382)
==21620== If you believe this happened as a result of a stack
==21620== overflow in your program's main thread (unlikely but
==21620== possible), you can try to increase the size of the
==21620== main thread stack using the --main-stacksize= flag.
==21620== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: memcached read lines - Can't connect to 127.0.0.1:1984: Connection refused ==21622== Invalid read of size 4
==21622== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21622== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21622== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21622== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21622== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21622== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21622== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21622== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21622== by 0x8062D4E: main (nginx.c:382)
==21622== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21622==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 1: memcached read lines - Can't connect to 127.0.0.1:1984: Connection refused ==21622==
==21622== Process terminating with default action of signal 11 (SIGSEGV)
==21622== Access not within mapped region at address 0x0
==21622== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21622== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21622== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21622== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21622== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21622== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21622== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21622== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21622== by 0x8062D4E: main (nginx.c:382)
==21622== If you believe this happened as a result of a stack
==21622== overflow in your program's main thread (unlikely but
==21622== possible), you can try to increase the size of the
==21622== main thread stack using the --main-stacksize= flag.
==21622== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 6: ambiguous boundary patterns (aaa) - Can't connect to 127.0.0.1:1984: Connection refused ==21624== Invalid read of size 4
==21624== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21624== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21624== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21624== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21624== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21624== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21624== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21624== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21624== by 0x8062D4E: main (nginx.c:382)
==21624== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21624==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
066-socket-receiveuntil.t TEST 6: ambiguous boundary patterns (aaa) - Can't connect to 127.0.0.1:1984: Connection refused ==21624==
==21624== Process terminating with default action of signal 11 (SIGSEGV)
==21624== Access not within mapped region at address 0x0
==21624== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21624== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21624== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21624== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21624== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21624== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21624== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21624== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21624== by 0x8062D4E: main (nginx.c:382)
==21624== If you believe this happened as a result of a stack
==21624== overflow in your program's main thread (unlikely but
==21624== possible), you can try to increase the size of the
==21624== main thread stack using the --main-stacksize= flag.
==21624== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
067-req-socket.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==21629== Invalid read of size 4
==21629== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21629== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21629== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21629== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21629== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21629== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21629== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21629== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21629== by 0x8062D4E: main (nginx.c:382)
==21629== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21629==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
067-req-socket.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==21629==
==21629== Process terminating with default action of signal 11 (SIGSEGV)
==21629== Access not within mapped region at address 0x0
==21629== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21629== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21629== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21629== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21629== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21629== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21629== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21629== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21629== by 0x8062D4E: main (nginx.c:382)
==21629== If you believe this happened as a result of a stack
==21629== overflow in your program's main thread (unlikely but
==21629== possible), you can try to increase the size of the
==21629== main thread stack using the --main-stacksize= flag.
==21629== 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 (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused ==21631== Invalid read of size 4
==21631== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21631== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21631== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21631== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21631== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21631== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21631== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21631== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21631== by 0x8062D4E: main (nginx.c:382)
==21631== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21631==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
067-req-socket.t TEST 2: multipart rfc sample (just partial streaming) - Can't connect to 127.0.0.1:1984: Connection refused ==21631==
==21631== Process terminating with default action of signal 11 (SIGSEGV)
==21631== Access not within mapped region at address 0x0
==21631== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21631== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21631== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21631== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21631== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21631== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21631== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21631== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21631== by 0x8062D4E: main (nginx.c:382)
==21631== If you believe this happened as a result of a stack
==21631== overflow in your program's main thread (unlikely but
==21631== possible), you can try to increase the size of the
==21631== main thread stack using the --main-stacksize= flag.
==21631== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused ==21633== Invalid read of size 4
==21633== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21633== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21633== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21633== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21633== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21633== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21633== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21633== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21633== by 0x8062D4E: main (nginx.c:382)
==21633== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21633==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
067-req-socket.t TEST 3: multipart rfc sample (completely streaming) - Can't connect to 127.0.0.1:1984: Connection refused ==21633==
==21633== Process terminating with default action of signal 11 (SIGSEGV)
==21633== Access not within mapped region at address 0x0
==21633== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21633== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21633== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21633== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21633== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21633== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21633== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21633== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21633== by 0x8062D4E: main (nginx.c:382)
==21633== If you believe this happened as a result of a stack
==21633== overflow in your program's main thread (unlikely but
==21633== possible), you can try to increase the size of the
==21633== main thread stack using the --main-stacksize= flag.
==21633== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==21635== Invalid read of size 4
==21635== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21635== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21635== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21635== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21635== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21635== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21635== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21635== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21635== by 0x8062D4E: main (nginx.c:382)
==21635== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21635==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
067-req-socket.t TEST 4: attempt to use the req socket across request boundary - Can't connect to 127.0.0.1:1984: Connection refused ==21635==
==21635== Process terminating with default action of signal 11 (SIGSEGV)
==21635== Access not within mapped region at address 0x0
==21635== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21635== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21635== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21635== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21635== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21635== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21635== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21635== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21635== by 0x8062D4E: main (nginx.c:382)
==21635== If you believe this happened as a result of a stack
==21635== overflow in your program's main thread (unlikely but
==21635== possible), you can try to increase the size of the
==21635== main thread stack using the --main-stacksize= flag.
==21635== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 5: receive until on request_body - receiveuntil(1) on the last byte of the body - Can't connect to 127.0.0.1:1984: Connection refused ==21637== Invalid read of size 4
==21637== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21637== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21637== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21637== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21637== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21637== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21637== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21637== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21637== by 0x8062D4E: main (nginx.c:382)
==21637== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21637==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
067-req-socket.t TEST 5: receive until on request_body - receiveuntil(1) on the last byte of the body - Can't connect to 127.0.0.1:1984: Connection refused ==21637==
==21637== Process terminating with default action of signal 11 (SIGSEGV)
==21637== Access not within mapped region at address 0x0
==21637== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21637== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21637== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21637== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21637== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21637== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21637== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21637== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21637== by 0x8062D4E: main (nginx.c:382)
==21637== If you believe this happened as a result of a stack
==21637== overflow in your program's main thread (unlikely but
==21637== possible), you can try to increase the size of the
==21637== main thread stack using the --main-stacksize= flag.
==21637== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==21639== Invalid read of size 4
==21639== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21639== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21639== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21639== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21639== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21639== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21639== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21639== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21639== by 0x8062D4E: main (nginx.c:382)
==21639== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21639==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
067-req-socket.t TEST 6: pipelined POST requests - Can't connect to 127.0.0.1:1984: Connection refused ==21639==
==21639== Process terminating with default action of signal 11 (SIGSEGV)
==21639== Access not within mapped region at address 0x0
==21639== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21639== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21639== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21639== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21639== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21639== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21639== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21639== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21639== by 0x8062D4E: main (nginx.c:382)
==21639== If you believe this happened as a result of a stack
==21639== overflow in your program's main thread (unlikely but
==21639== possible), you can try to increase the size of the
==21639== main thread stack using the --main-stacksize= flag.
==21639== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==21641== Invalid read of size 4
==21641== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21641== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21641== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21641== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21641== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21641== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21641== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21641== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21641== by 0x8062D4E: main (nginx.c:382)
==21641== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21641==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
067-req-socket.t TEST 7: pipelined requests, big buffer, small steps - Can't connect to 127.0.0.1:1984: Connection refused ==21641==
==21641== Process terminating with default action of signal 11 (SIGSEGV)
==21641== Access not within mapped region at address 0x0
==21641== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21641== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21641== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21641== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21641== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21641== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21641== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21641== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21641== by 0x8062D4E: main (nginx.c:382)
==21641== If you believe this happened as a result of a stack
==21641== overflow in your program's main thread (unlikely but
==21641== possible), you can try to increase the size of the
==21641== main thread stack using the --main-stacksize= flag.
==21641== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==21643== Invalid read of size 4
==21643== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21643== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21643== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21643== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21643== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21643== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21643== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21643== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21643== by 0x8062D4E: main (nginx.c:382)
==21643== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21643==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
067-req-socket.t TEST 8: failing reread after reading timeout happens - Can't connect to 127.0.0.1:1984: Connection refused ==21643==
==21643== Process terminating with default action of signal 11 (SIGSEGV)
==21643== Access not within mapped region at address 0x0
==21643== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21643== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21643== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21643== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21643== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21643== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21643== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21643== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21643== by 0x8062D4E: main (nginx.c:382)
==21643== If you believe this happened as a result of a stack
==21643== overflow in your program's main thread (unlikely but
==21643== possible), you can try to increase the size of the
==21643== main thread stack using the --main-stacksize= flag.
==21643== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 8: failing reread after reading timeout happens - pattern "stream lua tcp socket read timed out" should match a line in error.log (req 1)
067-req-socket.t TEST 9: successful reread after reading timeout happens (receive -> receive) - Can't connect to 127.0.0.1:1984: Connection refused ==21645== Invalid read of size 4
==21645== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21645== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21645== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21645== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21645== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21645== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21645== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21645== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21645== by 0x8062D4E: main (nginx.c:382)
==21645== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21645==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
067-req-socket.t TEST 9: successful reread after reading timeout happens (receive -> receive) - Can't connect to 127.0.0.1:1984: Connection refused ==21645==
==21645== Process terminating with default action of signal 11 (SIGSEGV)
==21645== Access not within mapped region at address 0x0
==21645== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21645== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21645== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21645== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21645== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21645== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21645== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21645== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21645== by 0x8062D4E: main (nginx.c:382)
==21645== If you believe this happened as a result of a stack
==21645== overflow in your program's main thread (unlikely but
==21645== possible), you can try to increase the size of the
==21645== main thread stack using the --main-stacksize= flag.
==21645== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused ==21647== Invalid read of size 4
==21647== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21647== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21647== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21647== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21647== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21647== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21647== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21647== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21647== by 0x8062D4E: main (nginx.c:382)
==21647== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21647==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
067-req-socket.t TEST 10: successful reread after reading timeout happens (receive -> receiveuntil) - Can't connect to 127.0.0.1:1984: Connection refused ==21647==
==21647== Process terminating with default action of signal 11 (SIGSEGV)
==21647== Access not within mapped region at address 0x0
==21647== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21647== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21647== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21647== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21647== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21647== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21647== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21647== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21647== by 0x8062D4E: main (nginx.c:382)
==21647== If you believe this happened as a result of a stack
==21647== overflow in your program's main thread (unlikely but
==21647== possible), you can try to increase the size of the
==21647== main thread stack using the --main-stacksize= flag.
==21647== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused ==21649== Invalid read of size 4
==21649== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21649== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21649== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21649== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21649== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21649== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21649== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21649== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21649== by 0x8062D4E: main (nginx.c:382)
==21649== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21649==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
067-req-socket.t TEST 11: successful reread after reading timeout happens (receiveuntil -> receive) - Can't connect to 127.0.0.1:1984: Connection refused ==21649==
==21649== Process terminating with default action of signal 11 (SIGSEGV)
==21649== Access not within mapped region at address 0x0
==21649== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21649== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21649== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21649== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21649== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21649== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21649== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21649== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21649== by 0x8062D4E: main (nginx.c:382)
==21649== If you believe this happened as a result of a stack
==21649== overflow in your program's main thread (unlikely but
==21649== possible), you can try to increase the size of the
==21649== main thread stack using the --main-stacksize= flag.
==21649== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==21651== Invalid read of size 4
==21651== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21651== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21651== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21651== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21651== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21651== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21651== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21651== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21651== by 0x8062D4E: main (nginx.c:382)
==21651== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21651==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
067-req-socket.t TEST 12: req socket GC'd - Can't connect to 127.0.0.1:1984: Connection refused ==21651==
==21651== Process terminating with default action of signal 11 (SIGSEGV)
==21651== Access not within mapped region at address 0x0
==21651== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21651== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21651== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21651== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21651== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21651== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21651== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21651== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21651== by 0x8062D4E: main (nginx.c:382)
==21651== If you believe this happened as a result of a stack
==21651== overflow in your program's main thread (unlikely but
==21651== possible), you can try to increase the size of the
==21651== main thread stack using the --main-stacksize= flag.
==21651== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 12: req socket GC'd - grep_error_log_out (req 1) @@ -1,2 +0,0 @@
-stream lua finalize socket
-GC cycle done
'
067-req-socket.t TEST 13: sanity of raw req socket receive any - Can't connect to 127.0.0.1:1984: Connection refused ==21653== Invalid read of size 4
==21653== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21653== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21653== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21653== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21653== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21653== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21653== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21653== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21653== by 0x8062D4E: main (nginx.c:382)
==21653== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21653==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
067-req-socket.t TEST 13: sanity of raw req socket receive any - Can't connect to 127.0.0.1:1984: Connection refused ==21653==
==21653== Process terminating with default action of signal 11 (SIGSEGV)
==21653== Access not within mapped region at address 0x0
==21653== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21653== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21653== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21653== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21653== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21653== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21653== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21653== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21653== by 0x8062D4E: main (nginx.c:382)
==21653== If you believe this happened as a result of a stack
==21653== overflow in your program's main thread (unlikely but
==21653== possible), you can try to increase the size of the
==21653== main thread stack using the --main-stacksize= flag.
==21653== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 13: sanity of raw req socket receive any - pattern "Got raw req socket" should match a line in error.log (req 1)
067-req-socket.t TEST 13: sanity of raw req socket receive any - pattern "Got: 5 bytes" should match a line in error.log (req 1)
067-req-socket.t TEST 14: receiveany small block size for a big size block - Can't connect to 127.0.0.1:1984: Connection refused ==21655== Invalid read of size 4
==21655== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21655== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21655== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21655== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21655== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21655== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21655== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21655== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21655== by 0x8062D4E: main (nginx.c:382)
==21655== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21655==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
067-req-socket.t TEST 14: receiveany small block size for a big size block - Can't connect to 127.0.0.1:1984: Connection refused ==21655==
==21655== Process terminating with default action of signal 11 (SIGSEGV)
==21655== Access not within mapped region at address 0x0
==21655== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21655== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21655== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21655== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21655== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21655== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21655== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21655== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21655== by 0x8062D4E: main (nginx.c:382)
==21655== If you believe this happened as a result of a stack
==21655== overflow in your program's main thread (unlikely but
==21655== possible), you can try to increase the size of the
==21655== main thread stack using the --main-stacksize= flag.
==21655== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==21657== Invalid read of size 4
==21657== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21657== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21657== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21657== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21657== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21657== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21657== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21657== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21657== by 0x8062D4E: main (nginx.c:382)
==21657== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21657==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
067-req-socket.t TEST 15: receiveany with limited, max <= 0 - Can't connect to 127.0.0.1:1984: Connection refused ==21657==
==21657== Process terminating with default action of signal 11 (SIGSEGV)
==21657== Access not within mapped region at address 0x0
==21657== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21657== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21657== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21657== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21657== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21657== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21657== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21657== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21657== by 0x8062D4E: main (nginx.c:382)
==21657== If you believe this happened as a result of a stack
==21657== overflow in your program's main thread (unlikely but
==21657== possible), you can try to increase the size of the
==21657== main thread stack using the --main-stacksize= flag.
==21657== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - pattern "bad argument \#2 to '?' (bad max argument)" should match a line in error.log (req 1)
067-req-socket.t TEST 15: receiveany with limited, max <= 0 - pattern "bad argument \#2 to '?' (bad max argument)" should match a line in error.log (req 1)
067-req-socket.t TEST 15: receiveany with limited, max <= 0 - pattern "expecting 2 arguments (including the object), but got 3" should match a line in error.log (req 1)
067-req-socket.t TEST 15: receiveany with limited, max <= 0 - pattern "expecting 2 arguments (including the object), but got 1" should match a line in error.log (req 1)
067-req-socket.t TEST 15: receiveany with limited, max <= 0 - pattern "bad argument \#2 to '?' (bad max argument)" should match a line in error.log (req 1)
067-req-socket.t TEST 16: receiveany send data after read side timeout - Can't connect to 127.0.0.1:1984: Connection refused ==21659== Invalid read of size 4
==21659== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21659== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21659== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21659== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21659== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21659== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21659== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21659== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21659== by 0x8062D4E: main (nginx.c:382)
==21659== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21659==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
067-req-socket.t TEST 16: receiveany send data after read side timeout - Can't connect to 127.0.0.1:1984: Connection refused ==21659==
==21659== Process terminating with default action of signal 11 (SIGSEGV)
==21659== Access not within mapped region at address 0x0
==21659== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21659== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21659== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21659== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21659== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21659== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21659== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21659== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21659== by 0x8062D4E: main (nginx.c:382)
==21659== If you believe this happened as a result of a stack
==21659== overflow in your program's main thread (unlikely but
==21659== possible), you can try to increase the size of the
==21659== main thread stack using the --main-stacksize= flag.
==21659== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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'
067-req-socket.t TEST 16: receiveany send data after read side timeout - pattern "receiveany unexpected err: timeout" should match a line in error.log (req 1)
068-socket-keepalive.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==21664== Invalid read of size 4
==21664== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21664== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21664== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21664== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21664== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21664== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21664== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21664== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21664== by 0x8062D4E: main (nginx.c:382)
==21664== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21664==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==21664==
==21664== Process terminating with default action of signal 11 (SIGSEGV)
==21664== Access not within mapped region at address 0x0
==21664== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21664== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21664== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21664== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21664== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21664== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21664== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21664== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21664== by 0x8062D4E: main (nginx.c:382)
==21664== If you believe this happened as a result of a stack
==21664== overflow in your program's main thread (unlikely but
==21664== possible), you can try to increase the size of the
==21664== main thread stack using the --main-stacksize= flag.
==21664== 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 - Can't connect to 127.0.0.1:1984: Connection refused ==21665== Invalid read of size 4
==21665== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21665== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21665== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21665== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21665== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21665== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21665== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21665== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21665== by 0x8062D4E: main (nginx.c:382)
==21665== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21665==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 2: free up the whole connection pool if no active connections - Can't connect to 127.0.0.1:1984: Connection refused ==21665==
==21665== Process terminating with default action of signal 11 (SIGSEGV)
==21665== Access not within mapped region at address 0x0
==21665== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21665== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21665== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21665== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21665== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21665== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21665== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21665== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21665== by 0x8062D4E: main (nginx.c:382)
==21665== If you believe this happened as a result of a stack
==21665== overflow in your program's main thread (unlikely but
==21665== possible), you can try to increase the size of the
==21665== main thread stack using the --main-stacksize= flag.
==21665== 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 - Can't connect to 127.0.0.1:1984: Connection refused ==21666== Invalid read of size 4
==21666== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21666== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21666== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21666== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21666== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21666== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21666== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21666== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21666== by 0x8062D4E: main (nginx.c:382)
==21666== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21666==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 3: upstream sockets close prematurely - Can't connect to 127.0.0.1:1984: Connection refused ==21666==
==21666== Process terminating with default action of signal 11 (SIGSEGV)
==21666== Access not within mapped region at address 0x0
==21666== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21666== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21666== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21666== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21666== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21666== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21666== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21666== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21666== by 0x8062D4E: main (nginx.c:382)
==21666== If you believe this happened as a result of a stack
==21666== overflow in your program's main thread (unlikely but
==21666== possible), you can try to increase the size of the
==21666== main thread stack using the --main-stacksize= flag.
==21666== 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 - Can't connect to 127.0.0.1:1984: Connection refused ==21667== Invalid read of size 4
==21667== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21667== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21667== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21667== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21667== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21667== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21667== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21667== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21667== by 0x8062D4E: main (nginx.c:382)
==21667== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21667==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 4: http keepalive - Can't connect to 127.0.0.1:1984: Connection refused ==21667==
==21667== Process terminating with default action of signal 11 (SIGSEGV)
==21667== Access not within mapped region at address 0x0
==21667== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21667== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21667== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21667== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21667== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21667== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21667== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21667== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21667== by 0x8062D4E: main (nginx.c:382)
==21667== If you believe this happened as a result of a stack
==21667== overflow in your program's main thread (unlikely but
==21667== possible), you can try to increase the size of the
==21667== main thread stack using the --main-stacksize= flag.
==21667== 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 - Can't connect to 127.0.0.1:1984: Connection refused ==21668== Invalid read of size 4
==21668== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21668== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21668== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21668== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21668== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21668== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21668== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21668== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21668== by 0x8062D4E: main (nginx.c:382)
==21668== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21668==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 5: lua_socket_keepalive_timeout - Can't connect to 127.0.0.1:1984: Connection refused ==21668==
==21668== Process terminating with default action of signal 11 (SIGSEGV)
==21668== Access not within mapped region at address 0x0
==21668== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21668== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21668== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21668== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21668== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21668== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21668== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21668== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21668== by 0x8062D4E: main (nginx.c:382)
==21668== If you believe this happened as a result of a stack
==21668== overflow in your program's main thread (unlikely but
==21668== possible), you can try to increase the size of the
==21668== main thread stack using the --main-stacksize= flag.
==21668== 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 - Can't connect to 127.0.0.1:1984: Connection refused ==21669== Invalid read of size 4
==21669== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21669== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21669== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21669== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21669== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21669== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21669== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21669== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21669== by 0x8062D4E: main (nginx.c:382)
==21669== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21669==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 6: lua_socket_pool_size - Can't connect to 127.0.0.1:1984: Connection refused ==21669==
==21669== Process terminating with default action of signal 11 (SIGSEGV)
==21669== Access not within mapped region at address 0x0
==21669== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21669== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21669== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21669== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21669== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21669== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21669== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21669== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21669== by 0x8062D4E: main (nginx.c:382)
==21669== If you believe this happened as a result of a stack
==21669== overflow in your program's main thread (unlikely but
==21669== possible), you can try to increase the size of the
==21669== main thread stack using the --main-stacksize= flag.
==21669== 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 - Can't connect to 127.0.0.1:1984: Connection refused ==21670== Invalid read of size 4
==21670== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21670== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21670== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21670== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21670== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21670== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21670== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21670== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21670== by 0x8062D4E: main (nginx.c:382)
==21670== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21670==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 7: "lua_socket_keepalive_timeout 0" means unlimited - Can't connect to 127.0.0.1:1984: Connection refused ==21670==
==21670== Process terminating with default action of signal 11 (SIGSEGV)
==21670== Access not within mapped region at address 0x0
==21670== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21670== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21670== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21670== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21670== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21670== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21670== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21670== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21670== by 0x8062D4E: main (nginx.c:382)
==21670== If you believe this happened as a result of a stack
==21670== overflow in your program's main thread (unlikely but
==21670== possible), you can try to increase the size of the
==21670== main thread stack using the --main-stacksize= flag.
==21670== 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 - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21671== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 8: setkeepalive(timeout) overrides lua_socket_keepalive_timeout - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21671== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused ==21672== Invalid read of size 4
==21672== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21672== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21672== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21672== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21672== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21672== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21672== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21672== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21672== by 0x8062D4E: main (nginx.c:382)
==21672== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21672==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 9: sock:setkeepalive(timeout, size) overrides lua_socket_pool_size - Can't connect to 127.0.0.1:1984: Connection refused ==21672==
==21672== Process terminating with default action of signal 11 (SIGSEGV)
==21672== Access not within mapped region at address 0x0
==21672== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21672== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21672== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21672== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21672== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21672== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21672== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21672== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21672== by 0x8062D4E: main (nginx.c:382)
==21672== If you believe this happened as a result of a stack
==21672== overflow in your program's main thread (unlikely but
==21672== possible), you can try to increase the size of the
==21672== main thread stack using the --main-stacksize= flag.
==21672== 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 - Can't connect to 127.0.0.1:1984: Connection refused ==21673== Invalid read of size 4
==21673== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21673== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21673== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21673== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21673== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21673== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21673== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21673== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21673== by 0x8062D4E: main (nginx.c:382)
==21673== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21673==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 10: setkeepalive() 'pool_size' should be greater than zero - Can't connect to 127.0.0.1:1984: Connection refused ==21673==
==21673== Process terminating with default action of signal 11 (SIGSEGV)
==21673== Access not within mapped region at address 0x0
==21673== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21673== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21673== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21673== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21673== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21673== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21673== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21673== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21673== by 0x8062D4E: main (nginx.c:382)
==21673== If you believe this happened as a result of a stack
==21673== overflow in your program's main thread (unlikely but
==21673== possible), you can try to increase the size of the
==21673== main thread stack using the --main-stacksize= flag.
==21673== 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 - Can't connect to 127.0.0.1:1984: Connection refused ==21674== Invalid read of size 4
==21674== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21674== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21674== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21674== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21674== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21674== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21674== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21674== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21674== by 0x8062D4E: main (nginx.c:382)
==21674== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21674==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 11: sock:keepalive_timeout(0) means unlimited - Can't connect to 127.0.0.1:1984: Connection refused ==21674==
==21674== Process terminating with default action of signal 11 (SIGSEGV)
==21674== Access not within mapped region at address 0x0
==21674== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21674== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21674== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21674== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21674== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21674== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21674== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21674== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21674== by 0x8062D4E: main (nginx.c:382)
==21674== If you believe this happened as a result of a stack
==21674== overflow in your program's main thread (unlikely but
==21674== possible), you can try to increase the size of the
==21674== main thread stack using the --main-stacksize= flag.
==21674== 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) - Can't connect to 127.0.0.1:1984: Connection refused ==21675== Invalid read of size 4
==21675== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21675== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21675== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21675== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21675== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21675== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21675== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21675== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21675== by 0x8062D4E: main (nginx.c:382)
==21675== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21675==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 12: sanity (uds) - Can't connect to 127.0.0.1:1984: Connection refused ==21675==
==21675== Process terminating with default action of signal 11 (SIGSEGV)
==21675== Access not within mapped region at address 0x0
==21675== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21675== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21675== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21675== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21675== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21675== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21675== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21675== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21675== by 0x8062D4E: main (nginx.c:382)
==21675== If you believe this happened as a result of a stack
==21675== overflow in your program's main thread (unlikely but
==21675== possible), you can try to increase the size of the
==21675== main thread stack using the --main-stacksize= flag.
==21675== 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 - Can't connect to 127.0.0.1:1984: Connection refused ==21676== Invalid read of size 4
==21676== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21676== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21676== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21676== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21676== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21676== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21676== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21676== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21676== by 0x8062D4E: main (nginx.c:382)
==21676== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21676==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 15: custom pools (different pool for the same host:port) - tcp - Can't connect to 127.0.0.1:1984: Connection refused ==21676==
==21676== Process terminating with default action of signal 11 (SIGSEGV)
==21676== Access not within mapped region at address 0x0
==21676== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21676== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21676== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21676== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21676== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21676== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21676== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21676== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21676== by 0x8062D4E: main (nginx.c:382)
==21676== If you believe this happened as a result of a stack
==21676== overflow in your program's main thread (unlikely but
==21676== possible), you can try to increase the size of the
==21676== main thread stack using the --main-stacksize= flag.
==21676== 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 - Can't connect to 127.0.0.1:1984: Connection refused ==21677== Invalid read of size 4
==21677== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21677== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21677== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21677== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21677== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21677== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21677== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21677== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21677== by 0x8062D4E: main (nginx.c:382)
==21677== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21677==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 16: custom pools (same pool for different host:port) - tcp - Can't connect to 127.0.0.1:1984: Connection refused ==21677==
==21677== Process terminating with default action of signal 11 (SIGSEGV)
==21677== Access not within mapped region at address 0x0
==21677== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21677== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21677== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21677== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21677== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21677== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21677== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21677== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21677== by 0x8062D4E: main (nginx.c:382)
==21677== If you believe this happened as a result of a stack
==21677== overflow in your program's main thread (unlikely but
==21677== possible), you can try to increase the size of the
==21677== main thread stack using the --main-stacksize= flag.
==21677== 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 - Can't connect to 127.0.0.1:1984: Connection refused ==21678== Invalid read of size 4
==21678== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21678== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21678== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21678== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21678== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21678== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21678== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21678== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21678== by 0x8062D4E: main (nginx.c:382)
==21678== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21678==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 17: custom pools (different pool for the same host:port) - unix - Can't connect to 127.0.0.1:1984: Connection refused ==21678==
==21678== Process terminating with default action of signal 11 (SIGSEGV)
==21678== Access not within mapped region at address 0x0
==21678== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21678== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21678== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21678== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21678== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21678== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21678== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21678== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21678== by 0x8062D4E: main (nginx.c:382)
==21678== If you believe this happened as a result of a stack
==21678== overflow in your program's main thread (unlikely but
==21678== possible), you can try to increase the size of the
==21678== main thread stack using the --main-stacksize= flag.
==21678== 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 - Can't connect to 127.0.0.1:1984: Connection refused ==21679== Invalid read of size 4
==21679== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21679== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21679== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21679== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21679== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21679== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21679== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21679== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21679== by 0x8062D4E: main (nginx.c:382)
==21679== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21679==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 18: custom pools (same pool for the same path) - unix - Can't connect to 127.0.0.1:1984: Connection refused ==21679==
==21679== Process terminating with default action of signal 11 (SIGSEGV)
==21679== Access not within mapped region at address 0x0
==21679== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21679== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21679== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21679== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21679== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21679== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21679== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21679== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21679== by 0x8062D4E: main (nginx.c:382)
==21679== If you believe this happened as a result of a stack
==21679== overflow in your program's main thread (unlikely but
==21679== possible), you can try to increase the size of the
==21679== main thread stack using the --main-stacksize= flag.
==21679== 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 - 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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21680== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 19: numeric pool option value - 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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21680== by 0x8062D4E: main (nginx.c:382)
==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.

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 - 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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21681== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 20: nil pool option value - 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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21681== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused ==21682== Invalid read of size 4
==21682== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21682== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21682== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21682== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21682== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21682== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21682== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21682== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21682== by 0x8062D4E: main (nginx.c:382)
==21682== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21682==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 21: (bad) table pool option value - Can't connect to 127.0.0.1:1984: Connection refused ==21682==
==21682== Process terminating with default action of signal 11 (SIGSEGV)
==21682== Access not within mapped region at address 0x0
==21682== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21682== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21682== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21682== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21682== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21682== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21682== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21682== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21682== by 0x8062D4E: main (nginx.c:382)
==21682== If you believe this happened as a result of a stack
==21682== overflow in your program's main thread (unlikely but
==21682== possible), you can try to increase the size of the
==21682== main thread stack using the --main-stacksize= flag.
==21682== 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 - Can't connect to 127.0.0.1:1984: Connection refused ==21683== Invalid read of size 4
==21683== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21683== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21683== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21683== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21683== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21683== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21683== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21683== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21683== by 0x8062D4E: main (nginx.c:382)
==21683== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21683==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 22: (bad) boolean pool option value - Can't connect to 127.0.0.1:1984: Connection refused ==21683==
==21683== Process terminating with default action of signal 11 (SIGSEGV)
==21683== Access not within mapped region at address 0x0
==21683== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21683== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21683== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21683== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21683== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21683== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21683== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21683== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21683== by 0x8062D4E: main (nginx.c:382)
==21683== If you believe this happened as a result of a stack
==21683== overflow in your program's main thread (unlikely but
==21683== possible), you can try to increase the size of the
==21683== main thread stack using the --main-stacksize= flag.
==21683== 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 - Can't connect to 127.0.0.1:1984: Connection refused ==21684== Invalid read of size 4
==21684== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21684== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21684== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21684== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21684== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21684== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21684== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21684== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21684== by 0x8062D4E: main (nginx.c:382)
==21684== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21684==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 25: setkeepalive() with explicit nil args - Can't connect to 127.0.0.1:1984: Connection refused ==21684==
==21684== Process terminating with default action of signal 11 (SIGSEGV)
==21684== Access not within mapped region at address 0x0
==21684== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21684== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21684== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21684== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21684== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21684== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21684== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21684== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21684== by 0x8062D4E: main (nginx.c:382)
==21684== If you believe this happened as a result of a stack
==21684== overflow in your program's main thread (unlikely but
==21684== possible), you can try to increase the size of the
==21684== main thread stack using the --main-stacksize= flag.
==21684== 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 - Can't connect to 127.0.0.1:1984: Connection refused ==21685== Invalid read of size 4
==21685== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21685== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21685== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21685== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21685== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21685== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21685== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21685== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21685== by 0x8062D4E: main (nginx.c:382)
==21685== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21685==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 26: conn queuing: connect() verifies the options for connection pool - Can't connect to 127.0.0.1:1984: Connection refused ==21685==
==21685== Process terminating with default action of signal 11 (SIGSEGV)
==21685== Access not within mapped region at address 0x0
==21685== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21685== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21685== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21685== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21685== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21685== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21685== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21685== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21685== by 0x8062D4E: main (nginx.c:382)
==21685== If you believe this happened as a result of a stack
==21685== overflow in your program's main thread (unlikely but
==21685== possible), you can try to increase the size of the
==21685== main thread stack using the --main-stacksize= flag.
==21685== 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() - Can't connect to 127.0.0.1:1984: Connection refused ==21686== Invalid read of size 4
==21686== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21686== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21686== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21686== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21686== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21686== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21686== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21686== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21686== by 0x8062D4E: main (nginx.c:382)
==21686== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21686==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 27: conn queuing: connect() can specify 'pool_size' which overrides setkeepalive() - Can't connect to 127.0.0.1:1984: Connection refused ==21686==
==21686== Process terminating with default action of signal 11 (SIGSEGV)
==21686== Access not within mapped region at address 0x0
==21686== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21686== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21686== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21686== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21686== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21686== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21686== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21686== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21686== by 0x8062D4E: main (nginx.c:382)
==21686== If you believe this happened as a result of a stack
==21686== overflow in your program's main thread (unlikely but
==21686== possible), you can try to increase the size of the
==21686== main thread stack using the --main-stacksize= flag.
==21686== 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 - Can't connect to 127.0.0.1:1984: Connection refused ==21687== Invalid read of size 4
==21687== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21687== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21687== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21687== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21687== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21687== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21687== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21687== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21687== by 0x8062D4E: main (nginx.c:382)
==21687== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21687==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 28: conn queuing: connect() can specify 'pool_size' for unix domain socket - Can't connect to 127.0.0.1:1984: Connection refused ==21687==
==21687== Process terminating with default action of signal 11 (SIGSEGV)
==21687== Access not within mapped region at address 0x0
==21687== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21687== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21687== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21687== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21687== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21687== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21687== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21687== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21687== by 0x8062D4E: main (nginx.c:382)
==21687== If you believe this happened as a result of a stack
==21687== overflow in your program's main thread (unlikely but
==21687== possible), you can try to increase the size of the
==21687== main thread stack using the --main-stacksize= flag.
==21687== 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 - Can't connect to 127.0.0.1:1984: Connection refused ==21688== Invalid read of size 4
==21688== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21688== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21688== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21688== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21688== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21688== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21688== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21688== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21688== by 0x8062D4E: main (nginx.c:382)
==21688== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21688==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 29: conn queuing: connect() can specify 'pool_size' for custom pool - Can't connect to 127.0.0.1:1984: Connection refused ==21688==
==21688== Process terminating with default action of signal 11 (SIGSEGV)
==21688== Access not within mapped region at address 0x0
==21688== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21688== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21688== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21688== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21688== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21688== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21688== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21688== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21688== by 0x8062D4E: main (nginx.c:382)
==21688== If you believe this happened as a result of a stack
==21688== overflow in your program's main thread (unlikely but
==21688== possible), you can try to increase the size of the
==21688== main thread stack using the --main-stacksize= flag.
==21688== 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 - Can't connect to 127.0.0.1:1984: Connection refused ==21689== Invalid read of size 4
==21689== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21689== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21689== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21689== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21689== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21689== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21689== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21689== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21689== by 0x8062D4E: main (nginx.c:382)
==21689== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21689==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 30: conn queuing: connect() uses lua_socket_pool_size as default if 'backlog' is given - Can't connect to 127.0.0.1:1984: Connection refused ==21689==
==21689== Process terminating with default action of signal 11 (SIGSEGV)
==21689== Access not within mapped region at address 0x0
==21689== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21689== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21689== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21689== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21689== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21689== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21689== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21689== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21689== by 0x8062D4E: main (nginx.c:382)
==21689== If you believe this happened as a result of a stack
==21689== overflow in your program's main thread (unlikely but
==21689== possible), you can try to increase the size of the
==21689== main thread stack using the --main-stacksize= flag.
==21689== 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 - Can't connect to 127.0.0.1:1984: Connection refused ==21690== Invalid read of size 4
==21690== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21690== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21690== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21690== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21690== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21690== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21690== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21690== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21690== by 0x8062D4E: main (nginx.c:382)
==21690== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21690==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 31: conn queuing: more connect operations than 'backlog' size - Can't connect to 127.0.0.1:1984: Connection refused ==21690==
==21690== Process terminating with default action of signal 11 (SIGSEGV)
==21690== Access not within mapped region at address 0x0
==21690== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21690== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21690== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21690== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21690== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21690== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21690== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21690== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21690== by 0x8062D4E: main (nginx.c:382)
==21690== If you believe this happened as a result of a stack
==21690== overflow in your program's main thread (unlikely but
==21690== possible), you can try to increase the size of the
==21690== main thread stack using the --main-stacksize= flag.
==21690== 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' - Can't connect to 127.0.0.1:1984: Connection refused ==21691== Invalid read of size 4
==21691== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21691== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21691== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21691== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21691== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21691== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21691== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21691== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21691== by 0x8062D4E: main (nginx.c:382)
==21691== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21691==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 32: conn queuing: once 'pool_size' is reached and pool has 'backlog' - Can't connect to 127.0.0.1:1984: Connection refused ==21691==
==21691== Process terminating with default action of signal 11 (SIGSEGV)
==21691== Access not within mapped region at address 0x0
==21691== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21691== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21691== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21691== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21691== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21691== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21691== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21691== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21691== by 0x8062D4E: main (nginx.c:382)
==21691== If you believe this happened as a result of a stack
==21691== overflow in your program's main thread (unlikely but
==21691== possible), you can try to increase the size of the
==21691== main thread stack using the --main-stacksize= flag.
==21691== 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 - Can't connect to 127.0.0.1:1984: Connection refused ==21692== Invalid read of size 4
==21692== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21692== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21692== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21692== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21692== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21692== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21692== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21692== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21692== by 0x8062D4E: main (nginx.c:382)
==21692== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21692==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 33: conn queuing: do not count failed connect operations - Can't connect to 127.0.0.1:1984: Connection refused ==21692==
==21692== Process terminating with default action of signal 11 (SIGSEGV)
==21692== Access not within mapped region at address 0x0
==21692== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21692== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21692== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21692== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21692== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21692== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21692== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21692== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21692== by 0x8062D4E: main (nginx.c:382)
==21692== If you believe this happened as a result of a stack
==21692== overflow in your program's main thread (unlikely but
==21692== possible), you can try to increase the size of the
==21692== main thread stack using the --main-stacksize= flag.
==21692== 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 - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21693== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 34: conn queuing: connect until backlog is reached - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21693== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused ==21694== Invalid read of size 4
==21694== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21694== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21694== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21694== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21694== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21694== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21694== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21694== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21694== by 0x8062D4E: main (nginx.c:382)
==21694== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21694==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 35: conn queuing: memory reuse for host in queueing connect operation ctx - Can't connect to 127.0.0.1:1984: Connection refused ==21694==
==21694== Process terminating with default action of signal 11 (SIGSEGV)
==21694== Access not within mapped region at address 0x0
==21694== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21694== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21694== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21694== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21694== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21694== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21694== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21694== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21694== by 0x8062D4E: main (nginx.c:382)
==21694== If you believe this happened as a result of a stack
==21694== overflow in your program's main thread (unlikely but
==21694== possible), you can try to increase the size of the
==21694== main thread stack using the --main-stacksize= flag.
==21694== 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 - Can't connect to 127.0.0.1:1984: Connection refused ==21695== Invalid read of size 4
==21695== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21695== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21695== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21695== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21695== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21695== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21695== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21695== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21695== by 0x8062D4E: main (nginx.c:382)
==21695== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21695==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 36: conn queuing: connect() returns error after connect operation resumed - Can't connect to 127.0.0.1:1984: Connection refused ==21695==
==21695== Process terminating with default action of signal 11 (SIGSEGV)
==21695== Access not within mapped region at address 0x0
==21695== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21695== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21695== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21695== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21695== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21695== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21695== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21695== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21695== by 0x8062D4E: main (nginx.c:382)
==21695== If you believe this happened as a result of a stack
==21695== overflow in your program's main thread (unlikely but
==21695== possible), you can try to increase the size of the
==21695== main thread stack using the --main-stacksize= flag.
==21695== 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 - Can't connect to 127.0.0.1:1984: Connection refused ==21696== Invalid read of size 4
==21696== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21696== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21696== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21696== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21696== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21696== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21696== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21696== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21696== by 0x8062D4E: main (nginx.c:382)
==21696== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21696==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 37: conn queuing: in uthread - Can't connect to 127.0.0.1:1984: Connection refused ==21696==
==21696== Process terminating with default action of signal 11 (SIGSEGV)
==21696== Access not within mapped region at address 0x0
==21696== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21696== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21696== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21696== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21696== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21696== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21696== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21696== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21696== by 0x8062D4E: main (nginx.c:382)
==21696== If you believe this happened as a result of a stack
==21696== overflow in your program's main thread (unlikely but
==21696== possible), you can try to increase the size of the
==21696== main thread stack using the --main-stacksize= flag.
==21696== 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 - Can't connect to 127.0.0.1:1984: Connection refused ==21697== Invalid read of size 4
==21697== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21697== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21697== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21697== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21697== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21697== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21697== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21697== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21697== by 0x8062D4E: main (nginx.c:382)
==21697== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21697==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 41: conn queuing: timeouts when 'connect_timeout' is reached - Can't connect to 127.0.0.1:1984: Connection refused ==21697==
==21697== Process terminating with default action of signal 11 (SIGSEGV)
==21697== Access not within mapped region at address 0x0
==21697== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21697== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21697== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21697== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21697== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21697== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21697== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21697== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21697== by 0x8062D4E: main (nginx.c:382)
==21697== If you believe this happened as a result of a stack
==21697== overflow in your program's main thread (unlikely but
==21697== possible), you can try to increase the size of the
==21697== main thread stack using the --main-stacksize= flag.
==21697== 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 - Can't connect to 127.0.0.1:1984: Connection refused ==21698== Invalid read of size 4
==21698== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21698== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21698== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21698== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21698== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21698== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21698== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21698== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21698== by 0x8062D4E: main (nginx.c:382)
==21698== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21698==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 42: conn queuing: set timeout via lua_socket_connect_timeout - Can't connect to 127.0.0.1:1984: Connection refused ==21698==
==21698== Process terminating with default action of signal 11 (SIGSEGV)
==21698== Access not within mapped region at address 0x0
==21698== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21698== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21698== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21698== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21698== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21698== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21698== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21698== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21698== by 0x8062D4E: main (nginx.c:382)
==21698== If you believe this happened as a result of a stack
==21698== overflow in your program's main thread (unlikely but
==21698== possible), you can try to increase the size of the
==21698== main thread stack using the --main-stacksize= flag.
==21698== 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 - Can't connect to 127.0.0.1:1984: Connection refused ==21700== Invalid read of size 4
==21700== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21700== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21700== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21700== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21700== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21700== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21700== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21700== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21700== by 0x8062D4E: main (nginx.c:382)
==21700== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21700==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 44: conn queuing: resume next connect operation if resumed connect failed immediately - Can't connect to 127.0.0.1:1984: Connection refused ==21700==
==21700== Process terminating with default action of signal 11 (SIGSEGV)
==21700== Access not within mapped region at address 0x0
==21700== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21700== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21700== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21700== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21700== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21700== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21700== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21700== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21700== by 0x8062D4E: main (nginx.c:382)
==21700== If you believe this happened as a result of a stack
==21700== overflow in your program's main thread (unlikely but
==21700== possible), you can try to increase the size of the
==21700== main thread stack using the --main-stacksize= flag.
==21700== 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 45: conn queuing: resume connect operation if resumed connect failed (timeout) - Can't connect to 127.0.0.1:1984: Connection refused ==21701== Invalid read of size 4
==21701== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21701== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21701== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21701== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21701== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21701== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21701== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21701== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21701== by 0x8062D4E: main (nginx.c:382)
==21701== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21701==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 45: conn queuing: resume connect operation if resumed connect failed (timeout) - Can't connect to 127.0.0.1:1984: Connection refused ==21701==
==21701== Process terminating with default action of signal 11 (SIGSEGV)
==21701== Access not within mapped region at address 0x0
==21701== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21701== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21701== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21701== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21701== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21701== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21701== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21701== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21701== by 0x8062D4E: main (nginx.c:382)
==21701== If you believe this happened as a result of a stack
==21701== overflow in your program's main thread (unlikely but
==21701== possible), you can try to increase the size of the
==21701== main thread stack using the --main-stacksize= flag.
==21701== 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) - Can't connect to 127.0.0.1:1984: Connection refused ==21702== Invalid read of size 4
==21702== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21702== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21702== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21702== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21702== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21702== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21702== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21702== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21702== by 0x8062D4E: main (nginx.c:382)
==21702== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21702==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 46: conn queuing: resume connect operation if resumed connect failed (could not be resolved) - Can't connect to 127.0.0.1:1984: Connection refused ==21702==
==21702== Process terminating with default action of signal 11 (SIGSEGV)
==21702== Access not within mapped region at address 0x0
==21702== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21702== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21702== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21702== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21702== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21702== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21702== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21702== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21702== by 0x8062D4E: main (nginx.c:382)
==21702== If you believe this happened as a result of a stack
==21702== overflow in your program's main thread (unlikely but
==21702== possible), you can try to increase the size of the
==21702== main thread stack using the --main-stacksize= flag.
==21702== 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) - Can't connect to 127.0.0.1:1984: Connection refused ==21703== Invalid read of size 4
==21703== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21703== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21703== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21703== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21703== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21703== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21703== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21703== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21703== by 0x8062D4E: main (nginx.c:382)
==21703== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21703==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 47: conn queuing: resume connect operation if resumed connect failed (connection refused) - Can't connect to 127.0.0.1:1984: Connection refused ==21703==
==21703== Process terminating with default action of signal 11 (SIGSEGV)
==21703== Access not within mapped region at address 0x0
==21703== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21703== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21703== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21703== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21703== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21703== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21703== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21703== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21703== by 0x8062D4E: main (nginx.c:382)
==21703== If you believe this happened as a result of a stack
==21703== overflow in your program's main thread (unlikely but
==21703== possible), you can try to increase the size of the
==21703== main thread stack using the --main-stacksize= flag.
==21703== 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) - Can't connect to 127.0.0.1:1984: Connection refused ==21704== Invalid read of size 4
==21704== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21704== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21704== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21704== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21704== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21704== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21704== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21704== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21704== by 0x8062D4E: main (nginx.c:382)
==21704== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21704==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 48: conn queuing: resume connect operation if resumed connect failed (uthread aborted while resolving) - Can't connect to 127.0.0.1:1984: Connection refused ==21704==
==21704== Process terminating with default action of signal 11 (SIGSEGV)
==21704== Access not within mapped region at address 0x0
==21704== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21704== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21704== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21704== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21704== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21704== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21704== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21704== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21704== by 0x8062D4E: main (nginx.c:382)
==21704== If you believe this happened as a result of a stack
==21704== overflow in your program's main thread (unlikely but
==21704== possible), you can try to increase the size of the
==21704== main thread stack using the --main-stacksize= flag.
==21704== 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 49: conn queuing: resume connect operation if resumed connect failed (uthread killed while resolving) - Can't connect to 127.0.0.1:1984: Connection refused ==21705== Invalid read of size 4
==21705== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21705== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21705== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21705== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21705== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21705== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21705== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21705== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21705== by 0x8062D4E: main (nginx.c:382)
==21705== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21705==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 49: conn queuing: resume connect operation if resumed connect failed (uthread killed while resolving) - Can't connect to 127.0.0.1:1984: Connection refused ==21705==
==21705== Process terminating with default action of signal 11 (SIGSEGV)
==21705== Access not within mapped region at address 0x0
==21705== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21705== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21705== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21705== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21705== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21705== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21705== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21705== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21705== by 0x8062D4E: main (nginx.c:382)
==21705== If you believe this happened as a result of a stack
==21705== overflow in your program's main thread (unlikely but
==21705== possible), you can try to increase the size of the
==21705== main thread stack using the --main-stacksize= flag.
==21705== 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 50: conn queuing: increase the counter for connections created before creating the pool with setkeepalive() - Can't connect to 127.0.0.1:1984: Connection refused ==21706== Invalid read of size 4
==21706== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21706== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21706== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21706== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21706== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21706== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21706== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21706== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21706== by 0x8062D4E: main (nginx.c:382)
==21706== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21706==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 50: conn queuing: increase the counter for connections created before creating the pool with setkeepalive() - Can't connect to 127.0.0.1:1984: Connection refused ==21706==
==21706== Process terminating with default action of signal 11 (SIGSEGV)
==21706== Access not within mapped region at address 0x0
==21706== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21706== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21706== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21706== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21706== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21706== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21706== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21706== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21706== by 0x8062D4E: main (nginx.c:382)
==21706== If you believe this happened as a result of a stack
==21706== overflow in your program's main thread (unlikely but
==21706== possible), you can try to increase the size of the
==21706== main thread stack using the --main-stacksize= flag.
==21706== 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 - Can't connect to 127.0.0.1:1984: Connection refused ==21707== Invalid read of size 4
==21707== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21707== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21707== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21707== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21707== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21707== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21707== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21707== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21707== by 0x8062D4E: main (nginx.c:382)
==21707== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21707==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 51: conn queuing: only decrease the counter for connections which were counted by the pool - Can't connect to 127.0.0.1:1984: Connection refused ==21707==
==21707== Process terminating with default action of signal 11 (SIGSEGV)
==21707== Access not within mapped region at address 0x0
==21707== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21707== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21707== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21707== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21707== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21707== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21707== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21707== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21707== by 0x8062D4E: main (nginx.c:382)
==21707== If you believe this happened as a result of a stack
==21707== overflow in your program's main thread (unlikely but
==21707== possible), you can try to increase the size of the
==21707== main thread stack using the --main-stacksize= flag.
==21707== 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 - Can't connect to 127.0.0.1:1984: Connection refused ==21708== Invalid read of size 4
==21708== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21708== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21708== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21708== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21708== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21708== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21708== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21708== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21708== by 0x8062D4E: main (nginx.c:382)
==21708== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21708==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
068-socket-keepalive.t TEST 52: conn queuing: clean up pending connect operations which are in queue - Can't connect to 127.0.0.1:1984: Connection refused ==21708==
==21708== Process terminating with default action of signal 11 (SIGSEGV)
==21708== Access not within mapped region at address 0x0
==21708== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21708== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21708== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21708== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21708== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21708== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21708== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21708== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21708== by 0x8062D4E: main (nginx.c:382)
==21708== If you believe this happened as a result of a stack
==21708== overflow in your program's main thread (unlikely but
==21708== possible), you can try to increase the size of the
==21708== main thread stack using the --main-stacksize= flag.
==21708== 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 1: compare ngx.null with cjson.null - Can't connect to 127.0.0.1:1984: Connection refused ==21712== Invalid read of size 4
==21712== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21712== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21712== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21712== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21712== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21712== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21712== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21712== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21712== by 0x8062D4E: main (nginx.c:382)
==21712== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21712==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
069-null.t TEST 1: compare ngx.null with cjson.null - Can't connect to 127.0.0.1:1984: Connection refused ==21712==
==21712== Process terminating with default action of signal 11 (SIGSEGV)
==21712== Access not within mapped region at address 0x0
==21712== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21712== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21712== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21712== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21712== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21712== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21712== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21712== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21712== by 0x8062D4E: main (nginx.c:382)
==21712== If you believe this happened as a result of a stack
==21712== overflow in your program's main thread (unlikely but
==21712== possible), you can try to increase the size of the
==21712== main thread stack using the --main-stacksize= flag.
==21712== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 3: output ngx.null in a table - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21714== by 0x8062D4E: main (nginx.c:382)
==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_single_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 ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21714== by 0x8062D4E: main (nginx.c:382)
==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.

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 (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==21716== Invalid read of size 4
==21716== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21716== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21716== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21716== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21716== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21716== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21716== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21716== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21716== by 0x8062D4E: main (nginx.c:382)
==21716== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21716==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
069-null.t TEST 4: log ngx.null - Can't connect to 127.0.0.1:1984: Connection refused ==21716==
==21716== Process terminating with default action of signal 11 (SIGSEGV)
==21716== Access not within mapped region at address 0x0
==21716== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21716== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21716== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21716== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21716== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21716== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21716== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21716== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21716== by 0x8062D4E: main (nginx.c:382)
==21716== If you believe this happened as a result of a stack
==21716== overflow in your program's main thread (unlikely but
==21716== possible), you can try to increase the size of the
==21716== main thread stack using the --main-stacksize= flag.
==21716== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 4: log ngx.null - pattern "ngx.null: null" should match a line in error.log (req 1)
069-null.t TEST 2: output ngx.null - Can't connect to 127.0.0.1:1984: Connection refused ==21718== Invalid read of size 4
==21718== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21718== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21718== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21718== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21718== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21718== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21718== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21718== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21718== by 0x8062D4E: main (nginx.c:382)
==21718== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21718==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
069-null.t TEST 2: output ngx.null - Can't connect to 127.0.0.1:1984: Connection refused ==21718==
==21718== Process terminating with default action of signal 11 (SIGSEGV)
==21718== Access not within mapped region at address 0x0
==21718== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21718== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21718== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21718== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21718== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21718== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21718== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21718== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21718== by 0x8062D4E: main (nginx.c:382)
==21718== If you believe this happened as a result of a stack
==21718== overflow in your program's main thread (unlikely but
==21718== possible), you can try to increase the size of the
==21718== main thread stack using the --main-stacksize= flag.
==21718== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: read events come when socket is idle - Can't connect to 127.0.0.1:1984: Connection refused ==21732== Invalid read of size 4
==21732== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21732== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21732== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21732== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21732== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21732== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21732== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21732== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21732== by 0x8062D4E: main (nginx.c:382)
==21732== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21732==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
071-idle-socket.t TEST 1: read events come when socket is idle - Can't connect to 127.0.0.1:1984: Connection refused ==21732==
==21732== Process terminating with default action of signal 11 (SIGSEGV)
==21732== Access not within mapped region at address 0x0
==21732== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21732== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21732== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21732== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21732== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21732== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21732== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21732== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21732== by 0x8062D4E: main (nginx.c:382)
==21732== If you believe this happened as a result of a stack
==21732== overflow in your program's main thread (unlikely but
==21732== possible), you can try to increase the size of the
==21732== main thread stack using the --main-stacksize= flag.
==21732== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==21734== Invalid read of size 4
==21734== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21734== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21734== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21734== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21734== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21734== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21734== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21734== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21734== by 0x8062D4E: main (nginx.c:382)
==21734== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21734==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
071-idle-socket.t TEST 4: send timer cleared in time - Can't connect to 127.0.0.1:1984: Connection refused ==21734==
==21734== Process terminating with default action of signal 11 (SIGSEGV)
==21734== Access not within mapped region at address 0x0
==21734== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21734== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21734== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21734== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21734== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21734== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21734== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21734== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21734== by 0x8062D4E: main (nginx.c:382)
==21734== If you believe this happened as a result of a stack
==21734== overflow in your program's main thread (unlikely but
==21734== possible), you can try to increase the size of the
==21734== main thread stack using the --main-stacksize= flag.
==21734== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 2: read timer cleared in time - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21736== by 0x8062D4E: main (nginx.c:382)
==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_single_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 ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21736== by 0x8062D4E: main (nginx.c:382)
==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.

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 (aborted) '
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 6: set keepalive when cosocket recv buffer has unread data - Can't connect to 127.0.0.1:1984: Connection refused ==21738== Invalid read of size 4
==21738== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21738== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21738== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21738== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21738== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21738== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21738== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21738== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21738== by 0x8062D4E: main (nginx.c:382)
==21738== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21738==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
071-idle-socket.t TEST 6: set keepalive when cosocket recv buffer has unread data - Can't connect to 127.0.0.1:1984: Connection refused ==21738==
==21738== Process terminating with default action of signal 11 (SIGSEGV)
==21738== Access not within mapped region at address 0x0
==21738== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21738== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21738== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21738== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21738== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21738== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21738== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21738== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21738== by 0x8062D4E: main (nginx.c:382)
==21738== If you believe this happened as a result of a stack
==21738== overflow in your program's main thread (unlikely but
==21738== possible), you can try to increase the size of the
==21738== main thread stack using the --main-stacksize= flag.
==21738== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 3: connect timer cleared in time - Can't connect to 127.0.0.1:1984: Connection refused ==21740== Invalid read of size 4
==21740== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21740== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21740== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21740== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21740== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21740== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21740== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21740== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21740== by 0x8062D4E: main (nginx.c:382)
==21740== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21740==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
071-idle-socket.t TEST 3: connect timer cleared in time - Can't connect to 127.0.0.1:1984: Connection refused ==21740==
==21740== Process terminating with default action of signal 11 (SIGSEGV)
==21740== Access not within mapped region at address 0x0
==21740== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21740== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21740== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21740== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21740== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21740== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21740== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21740== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21740== by 0x8062D4E: main (nginx.c:382)
==21740== If you believe this happened as a result of a stack
==21740== overflow in your program's main thread (unlikely but
==21740== possible), you can try to increase the size of the
==21740== main thread stack using the --main-stacksize= flag.
==21740== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 5: set keepalive when system socket recv buffer has unread data - Can't connect to 127.0.0.1:1984: Connection refused ==21742== Invalid read of size 4
==21742== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21742== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21742== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21742== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21742== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21742== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21742== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21742== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21742== by 0x8062D4E: main (nginx.c:382)
==21742== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21742==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
071-idle-socket.t TEST 5: set keepalive when system socket recv buffer has unread data - Can't connect to 127.0.0.1:1984: Connection refused ==21742==
==21742== Process terminating with default action of signal 11 (SIGSEGV)
==21742== Access not within mapped region at address 0x0
==21742== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21742== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21742== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21742== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21742== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21742== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21742== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21742== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21742== by 0x8062D4E: main (nginx.c:382)
==21742== If you believe this happened as a result of a stack
==21742== overflow in your program's main thread (unlikely but
==21742== possible), you can try to increase the size of the
==21742== main thread stack using the --main-stacksize= flag.
==21742== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 3: deep backtrace in a single coroutine (more than 15) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21747== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
073-backtrace.t TEST 3: deep backtrace in a single coroutine (more than 15) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21747== by 0x8062D4E: main (nginx.c:382)
==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.

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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - pattern ": blah" should match a line in error.log (req 1)
073-backtrace.t TEST 3: deep backtrace in a single coroutine (more than 15) - pattern ": in function 'func1'" should match a line in error.log (req 1)
073-backtrace.t TEST 3: deep backtrace in a single coroutine (more than 15) - pattern ":7: in function 'func2'" should match a line in error.log (req 1)
073-backtrace.t TEST 3: deep backtrace in a single coroutine (more than 15) - pattern ":11: in function 'func3'" should match a line in error.log (req 1)
073-backtrace.t TEST 3: deep backtrace in a single coroutine (more than 15) - pattern ":15: in function 'func4'" should match a line in error.log (req 1)
073-backtrace.t TEST 3: deep backtrace in a single coroutine (more than 15) - pattern ":19: in function 'func5'" should match a line in error.log (req 1)
073-backtrace.t TEST 3: deep backtrace in a single coroutine (more than 15) - pattern ":23: in function 'func6'" should match a line in error.log (req 1)
073-backtrace.t TEST 3: deep backtrace in a single coroutine (more than 15) - pattern ":27: in function 'func7'" should match a line in error.log (req 1)
073-backtrace.t TEST 3: deep backtrace in a single coroutine (more than 15) - pattern ":31: in function 'func8'" should match a line in error.log (req 1)
073-backtrace.t TEST 3: deep backtrace in a single coroutine (more than 15) - pattern ":35: in function 'func9'" should match a line in error.log (req 1)
073-backtrace.t TEST 3: deep backtrace in a single coroutine (more than 15) - pattern ":39: in function 'func10'" should match a line in error.log (req 1)
073-backtrace.t TEST 3: deep backtrace in a single coroutine (more than 15) - pattern ":43: in function 'func11'" should match a line in error.log (req 1)
073-backtrace.t TEST 3: deep backtrace in a single coroutine (more than 15) - pattern ":47: in function 'func12'" should match a line in error.log (req 1)
073-backtrace.t TEST 3: deep backtrace in a single coroutine (more than 15) - pattern ":51: in function 'func13'" should match a line in error.log (req 1)
073-backtrace.t TEST 3: deep backtrace in a single coroutine (more than 15) - pattern ":55: in function 'func14'" should match a line in error.log (req 1)
073-backtrace.t TEST 3: deep backtrace in a single coroutine (more than 15) - pattern ":59: in function 'func15'" should match a line in error.log (req 1)
073-backtrace.t TEST 3: deep backtrace in a single coroutine (more than 15) - pattern ":63: in function 'func16'" should match a line in error.log (req 1)
073-backtrace.t TEST 3: deep backtrace in a single coroutine (more than 15) - pattern ":67: in function 'func17'" should match a line in error.log (req 1)
073-backtrace.t TEST 3: deep backtrace in a single coroutine (more than 15) - pattern ":71: in function 'func18'" should match a line in error.log (req 1)
073-backtrace.t TEST 3: deep backtrace in a single coroutine (more than 15) - pattern ":74: in main chunk" should match a line in error.log (req 1)
073-backtrace.t TEST 2: error(nil) - Can't connect to 127.0.0.1:1984: Connection refused ==21749== Invalid read of size 4
==21749== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21749== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21749== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21749== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21749== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21749== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21749== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21749== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21749== by 0x8062D4E: main (nginx.c:382)
==21749== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21749==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
073-backtrace.t TEST 2: error(nil) - Can't connect to 127.0.0.1:1984: Connection refused ==21749==
==21749== Process terminating with default action of signal 11 (SIGSEGV)
==21749== Access not within mapped region at address 0x0
==21749== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21749== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21749== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21749== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21749== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21749== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21749== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21749== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21749== by 0x8062D4E: main (nginx.c:382)
==21749== If you believe this happened as a result of a stack
==21749== overflow in your program's main thread (unlikely but
==21749== possible), you can try to increase the size of the
==21749== main thread stack using the --main-stacksize= flag.
==21749== 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 (aborted) '
073-backtrace.t TEST 2: error(nil) - status code ok got: ''
expected: '200'
073-backtrace.t TEST 2: error(nil) - pattern "lua entry thread aborted: runtime error: unknown reason" should match a line in error.log (req 1)
073-backtrace.t TEST 2: error(nil) - pattern "stack traceback:" should match a line in error.log (req 1)
073-backtrace.t TEST 2: error(nil) - pattern " in function 'error'" should match a line in error.log (req 1)
073-backtrace.t TEST 2: error(nil) - pattern ": in function 'bar'" should match a line in error.log (req 1)
073-backtrace.t TEST 2: error(nil) - pattern ":5: in function 'foo'" should match a line in error.log (req 1)
073-backtrace.t TEST 2: error(nil) - pattern "(?^::7: in main chunk)" should match a line in error.log (req 1)
073-backtrace.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==21751== Invalid read of size 4
==21751== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21751== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21751== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21751== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21751== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21751== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21751== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21751== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21751== by 0x8062D4E: main (nginx.c:382)
==21751== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21751==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
073-backtrace.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==21751==
==21751== Process terminating with default action of signal 11 (SIGSEGV)
==21751== Access not within mapped region at address 0x0
==21751== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21751== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21751== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21751== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21751== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21751== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21751== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21751== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21751== by 0x8062D4E: main (nginx.c:382)
==21751== If you believe this happened as a result of a stack
==21751== overflow in your program's main thread (unlikely but
==21751== possible), you can try to increase the size of the
==21751== main thread stack using the --main-stacksize= flag.
==21751== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
073-backtrace.t TEST 1: sanity - status code ok got: ''
expected: '200'
073-backtrace.t TEST 1: sanity - pattern "attempt to call global 'lua_concat'" should match a line in error.log (req 1)
073-backtrace.t TEST 1: sanity - pattern ": in function 'bar'" should match a line in error.log (req 1)
073-backtrace.t TEST 1: sanity - pattern ":5: in function 'foo'" should match a line in error.log (req 1)
073-backtrace.t TEST 1: sanity - pattern ":7: in main chunk" should match a line in error.log (req 1)
073-backtrace.t TEST 4: deep backtrace in a single coroutine (more than 22) - Can't connect to 127.0.0.1:1984: Connection refused ==21753== Invalid read of size 4
==21753== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21753== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21753== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21753== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21753== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21753== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21753== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21753== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21753== by 0x8062D4E: main (nginx.c:382)
==21753== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21753==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
073-backtrace.t TEST 4: deep backtrace in a single coroutine (more than 22) - Can't connect to 127.0.0.1:1984: Connection refused ==21753==
==21753== Process terminating with default action of signal 11 (SIGSEGV)
==21753== Access not within mapped region at address 0x0
==21753== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21753== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21753== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21753== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21753== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21753== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21753== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21753== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21753== by 0x8062D4E: main (nginx.c:382)
==21753== If you believe this happened as a result of a stack
==21753== overflow in your program's main thread (unlikely but
==21753== possible), you can try to increase the size of the
==21753== main thread stack using the --main-stacksize= flag.
==21753== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - pattern ": blah" should match a line in error.log (req 1)
073-backtrace.t TEST 4: deep backtrace in a single coroutine (more than 22) - pattern ": in function 'func1'" should match a line in error.log (req 1)
073-backtrace.t TEST 4: deep backtrace in a single coroutine (more than 22) - pattern ":7: in function 'func2'" should match a line in error.log (req 1)
073-backtrace.t TEST 4: deep backtrace in a single coroutine (more than 22) - pattern ":11: in function 'func3'" should match a line in error.log (req 1)
073-backtrace.t TEST 4: deep backtrace in a single coroutine (more than 22) - pattern ":15: in function 'func4'" should match a line in error.log (req 1)
073-backtrace.t TEST 4: deep backtrace in a single coroutine (more than 22) - pattern ":19: in function 'func5'" should match a line in error.log (req 1)
073-backtrace.t TEST 4: deep backtrace in a single coroutine (more than 22) - pattern ":23: in function 'func6'" should match a line in error.log (req 1)
073-backtrace.t TEST 4: deep backtrace in a single coroutine (more than 22) - pattern ":27: in function 'func7'" should match a line in error.log (req 1)
073-backtrace.t TEST 4: deep backtrace in a single coroutine (more than 22) - pattern ":31: in function 'func8'" should match a line in error.log (req 1)
073-backtrace.t TEST 4: deep backtrace in a single coroutine (more than 22) - pattern ":35: in function 'func9'" should match a line in error.log (req 1)
073-backtrace.t TEST 4: deep backtrace in a single coroutine (more than 22) - pattern ":39: in function 'func10'" should match a line in error.log (req 1)
073-backtrace.t TEST 4: deep backtrace in a single coroutine (more than 22) - pattern ":43: in function 'func11'" should match a line in error.log (req 1)
073-backtrace.t TEST 4: deep backtrace in a single coroutine (more than 22) - pattern ":47: in function 'func12'" should match a line in error.log (req 1)
073-backtrace.t TEST 4: deep backtrace in a single coroutine (more than 22) - pattern ":59: in function 'func15'" should match a line in error.log (req 1)
073-backtrace.t TEST 4: deep backtrace in a single coroutine (more than 22) - pattern ":63: in function 'func16'" should match a line in error.log (req 1)
073-backtrace.t TEST 4: deep backtrace in a single coroutine (more than 22) - pattern ":67: in function 'func17'" should match a line in error.log (req 1)
073-backtrace.t TEST 4: deep backtrace in a single coroutine (more than 22) - pattern ":71: in function 'func18'" should match a line in error.log (req 1)
073-backtrace.t TEST 4: deep backtrace in a single coroutine (more than 22) - pattern ":75: in function 'func19'" should match a line in error.log (req 1)
073-backtrace.t TEST 4: deep backtrace in a single coroutine (more than 22) - pattern ":79: in function 'func20'" should match a line in error.log (req 1)
073-backtrace.t TEST 4: deep backtrace in a single coroutine (more than 22) - pattern ":83: in function 'func21'" should match a line in error.log (req 1)
073-backtrace.t TEST 4: deep backtrace in a single coroutine (more than 22) - pattern "..." should match a line in error.log (req 1)
074-prefix-var.t TEST 2: ${prefix} - Can't connect to 127.0.0.1:1984: Connection refused ==21758== Invalid read of size 4
==21758== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21758== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21758== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21758== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21758== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21758== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21758== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21758== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21758== by 0x8062D4E: main (nginx.c:382)
==21758== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21758==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
074-prefix-var.t TEST 2: ${prefix} - Can't connect to 127.0.0.1:1984: Connection refused ==21758==
==21758== Process terminating with default action of signal 11 (SIGSEGV)
==21758== Access not within mapped region at address 0x0
==21758== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21758== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21758== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21758== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21758== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21758== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21758== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21758== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21758== by 0x8062D4E: main (nginx.c:382)
==21758== If you believe this happened as a result of a stack
==21758== overflow in your program's main thread (unlikely but
==21758== possible), you can try to increase the size of the
==21758== main thread stack using the --main-stacksize= flag.
==21758== 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 (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==21760== Invalid read of size 4
==21760== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21760== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21760== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21760== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21760== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21760== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21760== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21760== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21760== by 0x8062D4E: main (nginx.c:382)
==21760== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21760==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
074-prefix-var.t TEST 1: $prefix - Can't connect to 127.0.0.1:1984: Connection refused ==21760==
==21760== Process terminating with default action of signal 11 (SIGSEGV)
==21760== Access not within mapped region at address 0x0
==21760== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21760== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21760== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21760== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21760== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21760== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21760== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21760== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21760== by 0x8062D4E: main (nginx.c:382)
==21760== If you believe this happened as a result of a stack
==21760== overflow in your program's main thread (unlikely but
==21760== possible), you can try to increase the size of the
==21760== main thread stack using the --main-stacksize= flag.
==21760== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 2: log_by_lua_file - Can't connect to 127.0.0.1:1984: Connection refused ==21765== Invalid read of size 4
==21765== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21765== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21765== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21765== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21765== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21765== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21765== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21765== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21765== by 0x8062D4E: main (nginx.c:382)
==21765== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21765==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
075-logby.t TEST 2: log_by_lua_file - Can't connect to 127.0.0.1:1984: Connection refused ==21765==
==21765== Process terminating with default action of signal 11 (SIGSEGV)
==21765== Access not within mapped region at address 0x0
==21765== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21765== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21765== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21765== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21765== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21765== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21765== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21765== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21765== by 0x8062D4E: main (nginx.c:382)
==21765== If you believe this happened as a result of a stack
==21765== overflow in your program's main thread (unlikely but
==21765== possible), you can try to increase the size of the
==21765== main thread stack using the --main-stacksize= flag.
==21765== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 2: log_by_lua_file - pattern "Hello from log_by_lua: TCP" should match a line in error.log (req 1)
075-logby.t TEST 20: log_by_lua runs before access logging (github issue #254) - Can't connect to 127.0.0.1:1984: Connection refused ==21767== Invalid read of size 4
==21767== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21767== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21767== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21767== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21767== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21767== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21767== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21767== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21767== by 0x8062D4E: main (nginx.c:382)
==21767== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21767==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
075-logby.t TEST 20: log_by_lua runs before access logging (github issue #254) - Can't connect to 127.0.0.1:1984: Connection refused ==21767==
==21767== Process terminating with default action of signal 11 (SIGSEGV)
==21767== Access not within mapped region at address 0x0
==21767== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21767== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21767== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21767== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21767== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21767== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21767== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21767== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21767== by 0x8062D4E: main (nginx.c:382)
==21767== If you believe this happened as a result of a stack
==21767== overflow in your program's main thread (unlikely but
==21767== possible), you can try to increase the size of the
==21767== main thread stack using the --main-stacksize= flag.
==21767== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 7: lua error (string) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21769== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
075-logby.t TEST 7: lua error (string) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21769== by 0x8062D4E: main (nginx.c:382)
==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.

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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 7: lua error (string) - pattern "(?^:failed to run log_by_lua\*: log_by_lua\(nginx\.conf:\d+\):1: Bad)" should match a line in error.log (req 1)
075-logby.t TEST 1: log_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==21771== Invalid read of size 4
==21771== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21771== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21771== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21771== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21771== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21771== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21771== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21771== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21771== by 0x8062D4E: main (nginx.c:382)
==21771== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21771==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
075-logby.t TEST 1: log_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==21771==
==21771== Process terminating with default action of signal 11 (SIGSEGV)
==21771== Access not within mapped region at address 0x0
==21771== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21771== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21771== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21771== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21771== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21771== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21771== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21771== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21771== by 0x8062D4E: main (nginx.c:382)
==21771== If you believe this happened as a result of a stack
==21771== overflow in your program's main thread (unlikely but
==21771== possible), you can try to increase the size of the
==21771== main thread stack using the --main-stacksize= flag.
==21771== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: log_by_lua - pattern "Hello from log_by_lua: TCP" should match a line in error.log (req 1)
075-logby.t TEST 12: no ngx.flush - Can't connect to 127.0.0.1:1984: Connection refused ==21773== Invalid read of size 4
==21773== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21773== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21773== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21773== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21773== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21773== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21773== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21773== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21773== by 0x8062D4E: main (nginx.c:382)
==21773== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21773==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
075-logby.t TEST 12: no ngx.flush - Can't connect to 127.0.0.1:1984: Connection refused ==21773==
==21773== Process terminating with default action of signal 11 (SIGSEGV)
==21773== Access not within mapped region at address 0x0
==21773== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21773== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21773== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21773== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21773== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21773== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21773== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21773== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21773== by 0x8062D4E: main (nginx.c:382)
==21773== If you believe this happened as a result of a stack
==21773== overflow in your program's main thread (unlikely but
==21773== possible), you can try to increase the size of the
==21773== main thread stack using the --main-stacksize= flag.
==21773== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 12: no ngx.flush - pattern "API disabled in the context of log_by_lua*" should match a line in error.log (req 1)
075-logby.t TEST 11: no ngx.say - Can't connect to 127.0.0.1:1984: Connection refused ==21775== Invalid read of size 4
==21775== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21775== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21775== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21775== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21775== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21775== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21775== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21775== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21775== by 0x8062D4E: main (nginx.c:382)
==21775== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21775==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
075-logby.t TEST 11: no ngx.say - Can't connect to 127.0.0.1:1984: Connection refused ==21775==
==21775== Process terminating with default action of signal 11 (SIGSEGV)
==21775== Access not within mapped region at address 0x0
==21775== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21775== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21775== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21775== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21775== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21775== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21775== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21775== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21775== by 0x8062D4E: main (nginx.c:382)
==21775== If you believe this happened as a result of a stack
==21775== overflow in your program's main thread (unlikely but
==21775== possible), you can try to increase the size of the
==21775== main thread stack using the --main-stacksize= flag.
==21775== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 11: no ngx.say - pattern "API disabled in the context of log_by_lua*" should match a line in error.log (req 1)
075-logby.t TEST 4: ngx.ctx available in log_by_lua (already defined) - Can't connect to 127.0.0.1:1984: Connection refused ==21777== Invalid read of size 4
==21777== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21777== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21777== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21777== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21777== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21777== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21777== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21777== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21777== by 0x8062D4E: main (nginx.c:382)
==21777== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21777==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
075-logby.t TEST 4: ngx.ctx available in log_by_lua (already defined) - Can't connect to 127.0.0.1:1984: Connection refused ==21777==
==21777== Process terminating with default action of signal 11 (SIGSEGV)
==21777== Access not within mapped region at address 0x0
==21777== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21777== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21777== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21777== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21777== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21777== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21777== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21777== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21777== by 0x8062D4E: main (nginx.c:382)
==21777== If you believe this happened as a result of a stack
==21777== overflow in your program's main thread (unlikely but
==21777== possible), you can try to increase the size of the
==21777== main thread stack using the --main-stacksize= flag.
==21777== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 4: ngx.ctx available in log_by_lua (already defined) - pattern "ngx.ctx.counter: 3" should match a line in error.log (req 1)
075-logby.t TEST 4: ngx.ctx available in log_by_lua (already defined) - pattern "lua release ngx.ctx" should match a line in error.log (req 1)
075-logby.t TEST 13: no ngx.eof - Can't connect to 127.0.0.1:1984: Connection refused ==21779== Invalid read of size 4
==21779== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21779== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21779== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21779== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21779== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21779== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21779== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21779== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21779== by 0x8062D4E: main (nginx.c:382)
==21779== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21779==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
075-logby.t TEST 13: no ngx.eof - Can't connect to 127.0.0.1:1984: Connection refused ==21779==
==21779== Process terminating with default action of signal 11 (SIGSEGV)
==21779== Access not within mapped region at address 0x0
==21779== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21779== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21779== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21779== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21779== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21779== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21779== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21779== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21779== by 0x8062D4E: main (nginx.c:382)
==21779== If you believe this happened as a result of a stack
==21779== overflow in your program's main thread (unlikely but
==21779== possible), you can try to increase the size of the
==21779== main thread stack using the --main-stacksize= flag.
==21779== 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 (aborted) '
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 13: no ngx.eof - pattern "API disabled in the context of log_by_lua*" should match a line in error.log (req 1)
075-logby.t TEST 18: backtrace - Can't connect to 127.0.0.1:1984: Connection refused ==21781== Invalid read of size 4
==21781== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21781== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21781== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21781== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21781== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21781== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21781== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21781== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21781== by 0x8062D4E: main (nginx.c:382)
==21781== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21781==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
075-logby.t TEST 18: backtrace - Can't connect to 127.0.0.1:1984: Connection refused ==21781==
==21781== Process terminating with default action of signal 11 (SIGSEGV)
==21781== Access not within mapped region at address 0x0
==21781== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21781== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21781== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21781== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21781== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21781== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21781== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21781== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21781== by 0x8062D4E: main (nginx.c:382)
==21781== If you believe this happened as a result of a stack
==21781== overflow in your program's main thread (unlikely but
==21781== possible), you can try to increase the size of the
==21781== main thread stack using the --main-stacksize= flag.
==21781== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 18: backtrace - pattern "something bad happened" should match a line in error.log (req 1)
075-logby.t TEST 18: backtrace - pattern "stack traceback:" should match a line in error.log (req 1)
075-logby.t TEST 18: backtrace - pattern "in function 'error'" should match a line in error.log (req 1)
075-logby.t TEST 18: backtrace - pattern "in function 'bar'" should match a line in error.log (req 1)
075-logby.t TEST 18: backtrace - pattern "in function 'foo'" should match a line in error.log (req 1)
075-logby.t TEST 6: log_by_lua + shared dict - Can't connect to 127.0.0.1:1984: Connection refused ==21783== Invalid read of size 4
==21783== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21783== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21783== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21783== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21783== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21783== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21783== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21783== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21783== by 0x8062D4E: main (nginx.c:382)
==21783== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21783==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
075-logby.t TEST 6: log_by_lua + shared dict - Can't connect to 127.0.0.1:1984: Connection refused ==21783==
==21783== Process terminating with default action of signal 11 (SIGSEGV)
==21783== Access not within mapped region at address 0x0
==21783== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21783== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21783== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21783== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21783== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21783== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21783== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21783== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21783== by 0x8062D4E: main (nginx.c:382)
==21783== If you believe this happened as a result of a stack
==21783== overflow in your program's main thread (unlikely but
==21783== possible), you can try to increase the size of the
==21783== main thread stack using the --main-stacksize= flag.
==21783== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 6: log_by_lua + shared dict - pattern "(?^:127.0.0.1200: [12])" should match a line in error.log (req 1)
075-logby.t TEST 5: ngx.ctx available in log_by_lua (not defined yet) - Can't connect to 127.0.0.1:1984: Connection refused ==21785== Invalid read of size 4
==21785== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21785== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21785== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21785== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21785== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21785== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21785== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21785== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21785== by 0x8062D4E: main (nginx.c:382)
==21785== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21785==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
075-logby.t TEST 5: ngx.ctx available in log_by_lua (not defined yet) - Can't connect to 127.0.0.1:1984: Connection refused ==21785==
==21785== Process terminating with default action of signal 11 (SIGSEGV)
==21785== Access not within mapped region at address 0x0
==21785== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21785== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21785== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21785== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21785== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21785== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21785== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21785== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21785== by 0x8062D4E: main (nginx.c:382)
==21785== If you believe this happened as a result of a stack
==21785== overflow in your program's main thread (unlikely but
==21785== possible), you can try to increase the size of the
==21785== main thread stack using the --main-stacksize= flag.
==21785== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 5: ngx.ctx available in log_by_lua (not defined yet) - pattern "ngx.ctx.counter: nil" should match a line in error.log (req 1)
075-logby.t TEST 5: ngx.ctx available in log_by_lua (not defined yet) - pattern "lua release ngx.ctx" should match a line in error.log (req 1)
075-logby.t TEST 3: log_by_lua_file & content_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==21787== Invalid read of size 4
==21787== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21787== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21787== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21787== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21787== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21787== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21787== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21787== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21787== by 0x8062D4E: main (nginx.c:382)
==21787== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21787==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
075-logby.t TEST 3: log_by_lua_file & content_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==21787==
==21787== Process terminating with default action of signal 11 (SIGSEGV)
==21787== Access not within mapped region at address 0x0
==21787== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21787== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21787== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21787== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21787== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21787== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21787== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21787== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21787== by 0x8062D4E: main (nginx.c:382)
==21787== If you believe this happened as a result of a stack
==21787== overflow in your program's main thread (unlikely but
==21787== possible), you can try to increase the size of the
==21787== main thread stack using the --main-stacksize= flag.
==21787== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 3: log_by_lua_file & content_by_lua - pattern "Hello from log_by_lua: 200" should match a line in error.log (req 1)
075-logby.t TEST 10: no ngx.print - Can't connect to 127.0.0.1:1984: Connection refused ==21789== Invalid read of size 4
==21789== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21789== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21789== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21789== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21789== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21789== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21789== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21789== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21789== by 0x8062D4E: main (nginx.c:382)
==21789== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21789==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
075-logby.t TEST 10: no ngx.print - Can't connect to 127.0.0.1:1984: Connection refused ==21789==
==21789== Process terminating with default action of signal 11 (SIGSEGV)
==21789== Access not within mapped region at address 0x0
==21789== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21789== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21789== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21789== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21789== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21789== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21789== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21789== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21789== by 0x8062D4E: main (nginx.c:382)
==21789== If you believe this happened as a result of a stack
==21789== overflow in your program's main thread (unlikely but
==21789== possible), you can try to increase the size of the
==21789== main thread stack using the --main-stacksize= flag.
==21789== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 10: no ngx.print - pattern "API disabled in the context of log_by_lua*" should match a line in error.log (req 1)
075-logby.t TEST 19: Lua file does not exist - Can't connect to 127.0.0.1:1984: Connection refused ==21791== Invalid read of size 4
==21791== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21791== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21791== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21791== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21791== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21791== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21791== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21791== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21791== by 0x8062D4E: main (nginx.c:382)
==21791== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21791==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
075-logby.t TEST 19: Lua file does not exist - Can't connect to 127.0.0.1:1984: Connection refused ==21791==
==21791== Process terminating with default action of signal 11 (SIGSEGV)
==21791== Access not within mapped region at address 0x0
==21791== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21791== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21791== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21791== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21791== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21791== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21791== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21791== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21791== by 0x8062D4E: main (nginx.c:382)
==21791== If you believe this happened as a result of a stack
==21791== overflow in your program's main thread (unlikely but
==21791== possible), you can try to increase the size of the
==21791== main thread stack using the --main-stacksize= flag.
==21791== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 19: Lua file does not exist - pattern "(?^:failed to load external Lua file ".*?test2\.lua": cannot open .*? No such file or directory)" should match a line in error.log (req 1)
075-logby.t TEST 14: no ngx.exit - Can't connect to 127.0.0.1:1984: Connection refused ==21793== Invalid read of size 4
==21793== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21793== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21793== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21793== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21793== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21793== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21793== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21793== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21793== by 0x8062D4E: main (nginx.c:382)
==21793== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21793==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
075-logby.t TEST 14: no ngx.exit - Can't connect to 127.0.0.1:1984: Connection refused ==21793==
==21793== Process terminating with default action of signal 11 (SIGSEGV)
==21793== Access not within mapped region at address 0x0
==21793== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21793== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21793== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21793== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21793== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21793== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21793== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21793== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21793== by 0x8062D4E: main (nginx.c:382)
==21793== If you believe this happened as a result of a stack
==21793== overflow in your program's main thread (unlikely but
==21793== possible), you can try to increase the size of the
==21793== main thread stack using the --main-stacksize= flag.
==21793== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 14: no ngx.exit - pattern "API disabled in the context of log_by_lua*" should match a line in error.log (req 1)
075-logby.t TEST 8: lua error (nil) - Can't connect to 127.0.0.1:1984: Connection refused ==21795== Invalid read of size 4
==21795== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21795== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21795== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21795== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21795== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21795== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21795== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21795== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21795== by 0x8062D4E: main (nginx.c:382)
==21795== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21795==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
075-logby.t TEST 8: lua error (nil) - Can't connect to 127.0.0.1:1984: Connection refused ==21795==
==21795== Process terminating with default action of signal 11 (SIGSEGV)
==21795== Access not within mapped region at address 0x0
==21795== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21795== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21795== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21795== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21795== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21795== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21795== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21795== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21795== by 0x8062D4E: main (nginx.c:382)
==21795== If you believe this happened as a result of a stack
==21795== overflow in your program's main thread (unlikely but
==21795== possible), you can try to increase the size of the
==21795== main thread stack using the --main-stacksize= flag.
==21795== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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)
075-logby.t TEST 8: lua error (nil) - pattern "failed to run log_by_lua*: unknown reason" should match a line in error.log (req 1)
075-logby.t TEST 17: no ngx.socket.connect() - Can't connect to 127.0.0.1:1984: Connection refused ==21797== Invalid read of size 4
==21797== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21797== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21797== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21797== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21797== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21797== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21797== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21797== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21797== by 0x8062D4E: main (nginx.c:382)
==21797== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21797==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
075-logby.t TEST 17: no ngx.socket.connect() - Can't connect to 127.0.0.1:1984: Connection refused ==21797==
==21797== Process terminating with default action of signal 11 (SIGSEGV)
==21797== Access not within mapped region at address 0x0
==21797== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21797== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21797== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21797== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21797== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21797== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21797== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21797== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21797== by 0x8062D4E: main (nginx.c:382)
==21797== If you believe this happened as a result of a stack
==21797== overflow in your program's main thread (unlikely but
==21797== possible), you can try to increase the size of the
==21797== main thread stack using the --main-stacksize= flag.
==21797== 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() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 17: no ngx.socket.connect() - pattern "API disabled in the context of log_by_lua*" should match a line in error.log (req 1)
075-logby.t TEST 16: no ngx.socket.tcp() - 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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21799== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
075-logby.t TEST 16: no ngx.socket.tcp() - 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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21799== by 0x8062D4E: main (nginx.c:382)
==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.

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() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 16: no ngx.socket.tcp() - pattern "API disabled in the context of log_by_lua*" should match a line in error.log (req 1)
075-logby.t TEST 15: no ngx.req.socket() - Can't connect to 127.0.0.1:1984: Connection refused ==21801== Invalid read of size 4
==21801== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21801== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21801== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21801== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21801== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21801== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21801== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21801== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21801== by 0x8062D4E: main (nginx.c:382)
==21801== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21801==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
075-logby.t TEST 15: no ngx.req.socket() - Can't connect to 127.0.0.1:1984: Connection refused ==21801==
==21801== Process terminating with default action of signal 11 (SIGSEGV)
==21801== Access not within mapped region at address 0x0
==21801== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21801== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21801== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21801== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21801== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21801== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21801== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21801== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21801== by 0x8062D4E: main (nginx.c:382)
==21801== If you believe this happened as a result of a stack
==21801== overflow in your program's main thread (unlikely but
==21801== possible), you can try to increase the size of the
==21801== main thread stack using the --main-stacksize= flag.
==21801== 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() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 15: no ngx.req.socket() - pattern "API disabled in the context of log_by_lua*" should match a line in error.log (req 1)
075-logby.t TEST 9: globals shared - Can't connect to 127.0.0.1:1984: Connection refused ==21803== Invalid read of size 4
==21803== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21803== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21803== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21803== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21803== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21803== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21803== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21803== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21803== by 0x8062D4E: main (nginx.c:382)
==21803== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21803==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
075-logby.t TEST 9: globals shared - Can't connect to 127.0.0.1:1984: Connection refused ==21803==
==21803== Process terminating with default action of signal 11 (SIGSEGV)
==21803== Access not within mapped region at address 0x0
==21803== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21803== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21803== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21803== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21803== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21803== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21803== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21803== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21803== by 0x8062D4E: main (nginx.c:382)
==21803== If you believe this happened as a result of a stack
==21803== overflow in your program's main thread (unlikely but
==21803== possible), you can try to increase the size of the
==21803== main thread stack using the --main-stacksize= flag.
==21803== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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)
077-sleep.t TEST 2: sleep a - content - Can't connect to 127.0.0.1:1984: Connection refused ==21808== Invalid read of size 4
==21808== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21808== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21808== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21808== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21808== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21808== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21808== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21808== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21808== by 0x8062D4E: main (nginx.c:382)
==21808== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21808==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
077-sleep.t TEST 2: sleep a - content - Can't connect to 127.0.0.1:1984: Connection refused ==21808==
==21808== Process terminating with default action of signal 11 (SIGSEGV)
==21808== Access not within mapped region at address 0x0
==21808== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21808== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21808== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21808== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21808== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21808== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21808== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21808== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21808== by 0x8062D4E: main (nginx.c:382)
==21808== If you believe this happened as a result of a stack
==21808== overflow in your program's main thread (unlikely but
==21808== possible), you can try to increase the size of the
==21808== main thread stack using the --main-stacksize= flag.
==21808== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
077-sleep.t TEST 2: sleep a - content - status code ok got: ''
expected: '200'
077-sleep.t TEST 2: sleep a - content - pattern "bad argument \#1 to 'sleep'" should match a line in error.log (req 1)
077-sleep.t TEST 3: sleep 0.33 - multi-times in content - Can't connect to 127.0.0.1:1984: Connection refused ==21810== Invalid read of size 4
==21810== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21810== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21810== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21810== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21810== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21810== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21810== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21810== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21810== by 0x8062D4E: main (nginx.c:382)
==21810== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21810==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
077-sleep.t TEST 3: sleep 0.33 - multi-times in content - Can't connect to 127.0.0.1:1984: Connection refused ==21810==
==21810== Process terminating with default action of signal 11 (SIGSEGV)
==21810== Access not within mapped region at address 0x0
==21810== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21810== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21810== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21810== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21810== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21810== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21810== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21810== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21810== by 0x8062D4E: main (nginx.c:382)
==21810== If you believe this happened as a result of a stack
==21810== overflow in your program's main thread (unlikely but
==21810== possible), you can try to increase the size of the
==21810== main thread stack using the --main-stacksize= flag.
==21810== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - pattern "lua ready to sleep for" should match a line in error.log (req 1)
077-sleep.t TEST 3: sleep 0.33 - multi-times in content - pattern "stream lua sleep timer expired" should match a line in error.log (req 1)
077-sleep.t TEST 4: sleep 0.5 - interleaved by ngx.say() - ended by ngx.sleep - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21812== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
077-sleep.t TEST 4: sleep 0.5 - interleaved by ngx.say() - ended by ngx.sleep - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21812== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 4: sleep 0.5 - interleaved by ngx.say() - ended by ngx.sleep - pattern "lua ready to sleep" should match a line in error.log (req 1)
077-sleep.t TEST 4: sleep 0.5 - interleaved by ngx.say() - ended by ngx.sleep - pattern "stream lua sleep timer expired" should match a line in error.log (req 1)
077-sleep.t TEST 6: sleep 0 - Can't connect to 127.0.0.1:1984: Connection refused ==21814== Invalid read of size 4
==21814== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21814== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21814== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21814== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21814== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21814== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21814== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21814== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21814== by 0x8062D4E: main (nginx.c:382)
==21814== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21814==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
077-sleep.t TEST 6: sleep 0 - Can't connect to 127.0.0.1:1984: Connection refused ==21814==
==21814== Process terminating with default action of signal 11 (SIGSEGV)
==21814== Access not within mapped region at address 0x0
==21814== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21814== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21814== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21814== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21814== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21814== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21814== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21814== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21814== by 0x8062D4E: main (nginx.c:382)
==21814== If you believe this happened as a result of a stack
==21814== overflow in your program's main thread (unlikely but
==21814== possible), you can try to increase the size of the
==21814== main thread stack using the --main-stacksize= flag.
==21814== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - pattern "lua ready to sleep for" should match a line in error.log (req 1)
077-sleep.t TEST 6: sleep 0 - pattern "stream lua sleep timer expired" should match a line in error.log (req 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 ==21816== Invalid read of size 4
==21816== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21816== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21816== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21816== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21816== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21816== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21816== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21816== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21816== by 0x8062D4E: main (nginx.c:382)
==21816== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21816==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==21816==
==21816== Process terminating with default action of signal 11 (SIGSEGV)
==21816== Access not within mapped region at address 0x0
==21816== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21816== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21816== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21816== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21816== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21816== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21816== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21816== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21816== by 0x8062D4E: main (nginx.c:382)
==21816== If you believe this happened as a result of a stack
==21816== overflow in your program's main thread (unlikely but
==21816== possible), you can try to increase the size of the
==21816== main thread stack using the --main-stacksize= flag.
==21816== 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 (aborted) '
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 8: ngx.sleep() fails to yield (xpcall err handler) - pattern "lua clean up the timer for pending ngx.sleep" should match a line in error.log (req 1)
077-sleep.t TEST 10: sleep coctx handler did not get called in ngx.exit(). - Can't connect to 127.0.0.1:1984: Connection refused ==21818== Invalid read of size 4
==21818== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21818== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21818== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21818== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21818== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21818== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21818== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21818== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21818== by 0x8062D4E: main (nginx.c:382)
==21818== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21818==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
077-sleep.t TEST 10: sleep coctx handler did not get called in ngx.exit(). - Can't connect to 127.0.0.1:1984: Connection refused ==21818==
==21818== Process terminating with default action of signal 11 (SIGSEGV)
==21818== Access not within mapped region at address 0x0
==21818== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21818== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21818== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21818== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21818== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21818== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21818== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21818== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21818== by 0x8062D4E: main (nginx.c:382)
==21818== If you believe this happened as a result of a stack
==21818== overflow in your program's main thread (unlikely but
==21818== possible), you can try to increase the size of the
==21818== main thread stack using the --main-stacksize= flag.
==21818== 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(). - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 5: sleep 0.5 - interleaved by ngx.say() - not ended by ngx.sleep - Can't connect to 127.0.0.1:1984: Connection refused ==21820== Invalid read of size 4
==21820== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21820== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21820== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21820== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21820== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21820== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21820== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21820== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21820== by 0x8062D4E: main (nginx.c:382)
==21820== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21820==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
077-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 ==21820==
==21820== Process terminating with default action of signal 11 (SIGSEGV)
==21820== Access not within mapped region at address 0x0
==21820== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21820== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21820== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21820== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21820== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21820== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21820== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21820== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21820== by 0x8062D4E: main (nginx.c:382)
==21820== If you believe this happened as a result of a stack
==21820== overflow in your program's main thread (unlikely but
==21820== possible), you can try to increase the size of the
==21820== main thread stack using the --main-stacksize= flag.
==21820== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 5: sleep 0.5 - interleaved by ngx.say() - not ended by ngx.sleep - pattern "lua ready to sleep for" should match a line in error.log (req 1)
077-sleep.t TEST 5: sleep 0.5 - interleaved by ngx.say() - not ended by ngx.sleep - pattern "stream lua sleep timer expired" should match a line in error.log (req 1)
077-sleep.t TEST 1: sleep 0.5 - content - Can't connect to 127.0.0.1:1984: Connection refused ==21822== Invalid read of size 4
==21822== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21822== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21822== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21822== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21822== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21822== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21822== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21822== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21822== by 0x8062D4E: main (nginx.c:382)
==21822== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21822==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
077-sleep.t TEST 1: sleep 0.5 - content - Can't connect to 127.0.0.1:1984: Connection refused ==21822==
==21822== Process terminating with default action of signal 11 (SIGSEGV)
==21822== Access not within mapped region at address 0x0
==21822== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21822== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21822== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21822== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21822== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21822== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21822== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21822== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21822== by 0x8062D4E: main (nginx.c:382)
==21822== If you believe this happened as a result of a stack
==21822== overflow in your program's main thread (unlikely but
==21822== possible), you can try to increase the size of the
==21822== main thread stack using the --main-stacksize= flag.
==21822== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - pattern "lua ready to sleep for" should match a line in error.log (req 1)
077-sleep.t TEST 1: sleep 0.5 - content - pattern "stream lua sleep timer expired" should match a line in error.log (req 1)
077-sleep.t TEST 9: ngx.sleep() fails to yield (require) - Can't connect to 127.0.0.1:1984: Connection refused ==21824== Invalid read of size 4
==21824== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21824== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21824== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21824== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21824== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21824== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21824== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21824== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21824== by 0x8062D4E: main (nginx.c:382)
==21824== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21824==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
077-sleep.t TEST 9: ngx.sleep() fails to yield (require) - Can't connect to 127.0.0.1:1984: Connection refused ==21824==
==21824== Process terminating with default action of signal 11 (SIGSEGV)
==21824== Access not within mapped region at address 0x0
==21824== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21824== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21824== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21824== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21824== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21824== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21824== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21824== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21824== by 0x8062D4E: main (nginx.c:382)
==21824== If you believe this happened as a result of a stack
==21824== overflow in your program's main thread (unlikely but
==21824== possible), you can try to increase the size of the
==21824== main thread stack using the --main-stacksize= flag.
==21824== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - pattern "lua clean up the timer for pending ngx.sleep" should match a line in error.log (req 1)
077-sleep.t TEST 9: ngx.sleep() fails to yield (require) - pattern "(?^:runtime error: attempt to yield across (?:metamethod/)?C-call boundary)" should match a line in error.log (req 1)
080-hup-shdict.t TEST 1: initialize the fields in shdict - Can't connect to 127.0.0.1:1984: Connection refused ==21834== Invalid read of size 4
==21834== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21834== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21834== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21834== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21834== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21834== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21834== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21834== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21834== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21834== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21834== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==21834== by 0x8062D5B: main (nginx.c:385)
==21834== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21834==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_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 ==21834==
==21834== Process terminating with default action of signal 11 (SIGSEGV)
==21834== Access not within mapped region at address 0x0
==21834== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21834== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21834== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21834== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21834== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21834== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21834== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21834== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21834== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21834== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21834== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==21834== by 0x8062D5B: main (nginx.c:385)
==21834== If you believe this happened as a result of a stack
==21834== overflow in your program's main thread (unlikely but
==21834== possible), you can try to increase the size of the
==21834== main thread stack using the --main-stacksize= flag.
==21834== 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 ==21835== Invalid read of size 4
==21835== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21835== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21835== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21835== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21835== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21835== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21835== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21835== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21835== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21835== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21835== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21835== by 0x8062D5B: main (nginx.c:385)
==21835== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21835==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_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 ==21835==
==21835== Process terminating with default action of signal 11 (SIGSEGV)
==21835== Access not within mapped region at address 0x0
==21835== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21835== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21835== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21835== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21835== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21835== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21835== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21835== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21835== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21835== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21835== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21835== by 0x8062D5B: main (nginx.c:385)
==21835== If you believe this happened as a result of a stack
==21835== overflow in your program's main thread (unlikely but
==21835== possible), you can try to increase the size of the
==21835== main thread stack using the --main-stacksize= flag.
==21835== 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 ==21847== Invalid read of size 4
==21847== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21847== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21847== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21847== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21847== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21847== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21847== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21847== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21847== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21847== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21847== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21847== by 0x8062D5B: main (nginx.c:385)
==21847== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21847==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_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 ==21847==
==21847== Process terminating with default action of signal 11 (SIGSEGV)
==21847== Access not within mapped region at address 0x0
==21847== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21847== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21847== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21847== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21847== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21847== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21847== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21847== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21847== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21847== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==21847== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==21847== by 0x8062D5B: main (nginx.c:385)
==21847== If you believe this happened as a result of a stack
==21847== overflow in your program's main thread (unlikely but
==21847== possible), you can try to increase the size of the
==21847== main thread stack using the --main-stacksize= flag.
==21847== 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 ==21868== Invalid read of size 4
==21868== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21868== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21868== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21868== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21868== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21868== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21868== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21868== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21868== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21868== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21868== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21868== by 0x8062D5B: main (nginx.c:385)
==21868== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21868==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_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 ==21868==
==21868== Process terminating with default action of signal 11 (SIGSEGV)
==21868== Access not within mapped region at address 0x0
==21868== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21868== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21868== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21868== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21868== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21868== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21868== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21868== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==21868== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==21868== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==21868== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==21868== by 0x8062D5B: main (nginx.c:385)
==21868== If you believe this happened as a result of a stack
==21868== overflow in your program's main thread (unlikely but
==21868== possible), you can try to increase the size of the
==21868== main thread stack using the --main-stacksize= flag.
==21868== 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 ==21873== Invalid read of size 4
==21873== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21873== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21873== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21873== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21873== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21873== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21873== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21873== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21873== by 0x8062D4E: main (nginx.c:382)
==21873== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21873==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
081-bytecode.t TEST 2: bytecode (stripped) - Can't connect to 127.0.0.1:1984: Connection refused ==21873==
==21873== Process terminating with default action of signal 11 (SIGSEGV)
==21873== Access not within mapped region at address 0x0
==21873== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21873== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21873== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21873== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21873== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21873== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21873== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21873== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21873== by 0x8062D4E: main (nginx.c:382)
==21873== If you believe this happened as a result of a stack
==21873== overflow in your program's main thread (unlikely but
==21873== possible), you can try to increase the size of the
==21873== main thread stack using the --main-stacksize= flag.
==21873== 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 (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused ==21875== Invalid read of size 4
==21875== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21875== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21875== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21875== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21875== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21875== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21875== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21875== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21875== by 0x8062D4E: main (nginx.c:382)
==21875== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21875==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
081-bytecode.t TEST 1: bytecode (not stripped) - Can't connect to 127.0.0.1:1984: Connection refused ==21875==
==21875== Process terminating with default action of signal 11 (SIGSEGV)
==21875== Access not within mapped region at address 0x0
==21875== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21875== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21875== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21875== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21875== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21875== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21875== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21875== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21875== by 0x8062D4E: main (nginx.c:382)
==21875== If you believe this happened as a result of a stack
==21875== overflow in your program's main thread (unlikely but
==21875== possible), you can try to increase the size of the
==21875== main thread stack using the --main-stacksize= flag.
==21875== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 4: send (bad self) - Can't connect to 127.0.0.1:1984: Connection refused ==21880== Invalid read of size 4
==21880== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21880== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21880== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21880== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21880== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21880== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21880== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21880== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21880== by 0x8062D4E: main (nginx.c:382)
==21880== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21880==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
083-bad-sock-self.t TEST 4: send (bad self) - Can't connect to 127.0.0.1:1984: Connection refused ==21880==
==21880== Process terminating with default action of signal 11 (SIGSEGV)
==21880== Access not within mapped region at address 0x0
==21880== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21880== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21880== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21880== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21880== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21880== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21880== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21880== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21880== by 0x8062D4E: main (nginx.c:382)
==21880== If you believe this happened as a result of a stack
==21880== overflow in your program's main thread (unlikely but
==21880== possible), you can try to increase the size of the
==21880== main thread stack using the --main-stacksize= flag.
==21880== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - pattern "bad argument \#1 to 'send' (table expected, got string)" should match a line in error.log (req 1)
083-bad-sock-self.t TEST 2: receiveuntil - Can't connect to 127.0.0.1:1984: Connection refused ==21882== Invalid read of size 4
==21882== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21882== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21882== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21882== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21882== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21882== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21882== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21882== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21882== by 0x8062D4E: main (nginx.c:382)
==21882== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21882==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
083-bad-sock-self.t TEST 2: receiveuntil - Can't connect to 127.0.0.1:1984: Connection refused ==21882==
==21882== Process terminating with default action of signal 11 (SIGSEGV)
==21882== Access not within mapped region at address 0x0
==21882== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21882== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21882== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21882== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21882== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21882== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21882== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21882== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21882== by 0x8062D4E: main (nginx.c:382)
==21882== If you believe this happened as a result of a stack
==21882== overflow in your program's main thread (unlikely but
==21882== possible), you can try to increase the size of the
==21882== main thread stack using the --main-stacksize= flag.
==21882== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
083-bad-sock-self.t TEST 2: receiveuntil - status code ok got: ''
expected: '200'
083-bad-sock-self.t TEST 2: receiveuntil - pattern "bad argument \#1 to 'receiveuntil' (table expected, got number)" should match a line in error.log (req 1)
083-bad-sock-self.t TEST 1: receive - Can't connect to 127.0.0.1:1984: Connection refused ==21884== Invalid read of size 4
==21884== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21884== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21884== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21884== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21884== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21884== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21884== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21884== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21884== by 0x8062D4E: main (nginx.c:382)
==21884== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21884==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
083-bad-sock-self.t TEST 1: receive - Can't connect to 127.0.0.1:1984: Connection refused ==21884==
==21884== Process terminating with default action of signal 11 (SIGSEGV)
==21884== Access not within mapped region at address 0x0
==21884== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21884== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21884== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21884== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21884== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21884== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21884== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21884== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21884== by 0x8062D4E: main (nginx.c:382)
==21884== If you believe this happened as a result of a stack
==21884== overflow in your program's main thread (unlikely but
==21884== possible), you can try to increase the size of the
==21884== main thread stack using the --main-stacksize= flag.
==21884== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
083-bad-sock-self.t TEST 1: receive - status code ok got: ''
expected: '200'
083-bad-sock-self.t TEST 1: receive - pattern "bad argument \#1 to 'receive' (table expected, got string)" should match a line in error.log (req 1)
083-bad-sock-self.t TEST 3: send (bad arg number) - Can't connect to 127.0.0.1:1984: Connection refused ==21886== Invalid read of size 4
==21886== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21886== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21886== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21886== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21886== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21886== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21886== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21886== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21886== by 0x8062D4E: main (nginx.c:382)
==21886== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21886==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
083-bad-sock-self.t TEST 3: send (bad arg number) - Can't connect to 127.0.0.1:1984: Connection refused ==21886==
==21886== Process terminating with default action of signal 11 (SIGSEGV)
==21886== Access not within mapped region at address 0x0
==21886== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21886== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21886== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21886== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21886== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21886== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21886== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21886== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21886== by 0x8062D4E: main (nginx.c:382)
==21886== If you believe this happened as a result of a stack
==21886== overflow in your program's main thread (unlikely but
==21886== possible), you can try to increase the size of the
==21886== main thread stack using the --main-stacksize= flag.
==21886== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - pattern "expecting 2 arguments (including the object), but got 1" should match a line in error.log (req 1)
083-bad-sock-self.t TEST 6: close (bad self) - Can't connect to 127.0.0.1:1984: Connection refused ==21888== Invalid read of size 4
==21888== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21888== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21888== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21888== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21888== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21888== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21888== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21888== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21888== by 0x8062D4E: main (nginx.c:382)
==21888== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21888==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
083-bad-sock-self.t TEST 6: close (bad self) - Can't connect to 127.0.0.1:1984: Connection refused ==21888==
==21888== Process terminating with default action of signal 11 (SIGSEGV)
==21888== Access not within mapped region at address 0x0
==21888== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21888== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21888== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21888== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21888== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21888== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21888== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21888== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21888== by 0x8062D4E: main (nginx.c:382)
==21888== If you believe this happened as a result of a stack
==21888== overflow in your program's main thread (unlikely but
==21888== possible), you can try to increase the size of the
==21888== main thread stack using the --main-stacksize= flag.
==21888== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - pattern "bad argument \#1 to 'close' (table expected, got number)" should match a line in error.log (req 1)
083-bad-sock-self.t TEST 7: setkeepalive (bad self) - Can't connect to 127.0.0.1:1984: Connection refused ==21890== Invalid read of size 4
==21890== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21890== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21890== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21890== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21890== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21890== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21890== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21890== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21890== by 0x8062D4E: main (nginx.c:382)
==21890== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21890==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==21890==
==21890== Process terminating with default action of signal 11 (SIGSEGV)
==21890== Access not within mapped region at address 0x0
==21890== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21890== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21890== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21890== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21890== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21890== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21890== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21890== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21890== by 0x8062D4E: main (nginx.c:382)
==21890== If you believe this happened as a result of a stack
==21890== overflow in your program's main thread (unlikely but
==21890== possible), you can try to increase the size of the
==21890== main thread stack using the --main-stacksize= flag.
==21890== 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 (aborted) '
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) - pattern "bad argument \#1 to 'setkeepalive' (table expected, got number)" should match a line in error.log (req 1)
083-bad-sock-self.t TEST 5: getreusedtimes (bad self) - Can't connect to 127.0.0.1:1984: Connection refused ==21892== Invalid read of size 4
==21892== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21892== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21892== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21892== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21892== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21892== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21892== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21892== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21892== by 0x8062D4E: main (nginx.c:382)
==21892== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21892==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
083-bad-sock-self.t TEST 5: getreusedtimes (bad self) - Can't connect to 127.0.0.1:1984: Connection refused ==21892==
==21892== Process terminating with default action of signal 11 (SIGSEGV)
==21892== Access not within mapped region at address 0x0
==21892== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21892== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21892== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21892== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21892== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21892== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21892== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21892== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21892== by 0x8062D4E: main (nginx.c:382)
==21892== If you believe this happened as a result of a stack
==21892== overflow in your program's main thread (unlikely but
==21892== possible), you can try to increase the size of the
==21892== main thread stack using the --main-stacksize= flag.
==21892== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - pattern "bad argument \#1 to 'getreusedtimes' (table expected, got number)" should match a line in error.log (req 1)
084-inclusive-receiveuntil.t TEST 1: ambiguous boundary patterns (abcabd) - inclusive mode - Can't connect to 127.0.0.1:1984: Connection refused ==21897== Invalid read of size 4
==21897== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21897== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21897== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21897== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21897== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21897== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21897== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21897== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21897== by 0x8062D4E: main (nginx.c:382)
==21897== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21897==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
084-inclusive-receiveuntil.t TEST 1: ambiguous boundary patterns (abcabd) - inclusive mode - Can't connect to 127.0.0.1:1984: Connection refused ==21897==
==21897== Process terminating with default action of signal 11 (SIGSEGV)
==21897== Access not within mapped region at address 0x0
==21897== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21897== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21897== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21897== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21897== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21897== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21897== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21897== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21897== by 0x8062D4E: main (nginx.c:382)
==21897== If you believe this happened as a result of a stack
==21897== overflow in your program's main thread (unlikely but
==21897== possible), you can try to increase the size of the
==21897== main thread stack using the --main-stacksize= flag.
==21897== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 9: ambiguous boundary patterns (--abc), small buffer - Can't connect to 127.0.0.1:1984: Connection refused ==21899== Invalid read of size 4
==21899== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21899== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21899== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21899== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21899== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21899== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21899== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21899== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21899== by 0x8062D4E: main (nginx.c:382)
==21899== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21899==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
084-inclusive-receiveuntil.t TEST 9: ambiguous boundary patterns (--abc), small buffer - Can't connect to 127.0.0.1:1984: Connection refused ==21899==
==21899== Process terminating with default action of signal 11 (SIGSEGV)
==21899== Access not within mapped region at address 0x0
==21899== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21899== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21899== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21899== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21899== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21899== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21899== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21899== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21899== by 0x8062D4E: main (nginx.c:382)
==21899== If you believe this happened as a result of a stack
==21899== overflow in your program's main thread (unlikely but
==21899== possible), you can try to increase the size of the
==21899== main thread stack using the --main-stacksize= flag.
==21899== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 8: bad option table - Can't connect to 127.0.0.1:1984: Connection refused ==21901== Invalid read of size 4
==21901== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21901== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21901== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21901== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21901== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21901== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21901== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21901== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21901== by 0x8062D4E: main (nginx.c:382)
==21901== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21901==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
084-inclusive-receiveuntil.t TEST 8: bad option table - Can't connect to 127.0.0.1:1984: Connection refused ==21901==
==21901== Process terminating with default action of signal 11 (SIGSEGV)
==21901== Access not within mapped region at address 0x0
==21901== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21901== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21901== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21901== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21901== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21901== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21901== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21901== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21901== by 0x8062D4E: main (nginx.c:382)
==21901== If you believe this happened as a result of a stack
==21901== overflow in your program's main thread (unlikely but
==21901== possible), you can try to increase the size of the
==21901== main thread stack using the --main-stacksize= flag.
==21901== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 5: inclusive option value false - Can't connect to 127.0.0.1:1984: Connection refused ==21903== Invalid read of size 4
==21903== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21903== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21903== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21903== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21903== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21903== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21903== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21903== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21903== by 0x8062D4E: main (nginx.c:382)
==21903== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21903==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
084-inclusive-receiveuntil.t TEST 5: inclusive option value false - Can't connect to 127.0.0.1:1984: Connection refused ==21903==
==21903== Process terminating with default action of signal 11 (SIGSEGV)
==21903== Access not within mapped region at address 0x0
==21903== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21903== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21903== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21903== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21903== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21903== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21903== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21903== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21903== by 0x8062D4E: main (nginx.c:382)
==21903== If you believe this happened as a result of a stack
==21903== overflow in your program's main thread (unlikely but
==21903== possible), you can try to increase the size of the
==21903== main thread stack using the --main-stacksize= flag.
==21903== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==21905== Invalid read of size 4
==21905== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21905== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21905== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21905== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21905== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21905== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21905== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21905== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21905== by 0x8062D4E: main (nginx.c:382)
==21905== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21905==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
084-inclusive-receiveuntil.t TEST 2: ambiguous boundary patterns (abcabdabcabe 4) - inclusive mode - Can't connect to 127.0.0.1:1984: Connection refused ==21905==
==21905== Process terminating with default action of signal 11 (SIGSEGV)
==21905== Access not within mapped region at address 0x0
==21905== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21905== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21905== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21905== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21905== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21905== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21905== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21905== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21905== by 0x8062D4E: main (nginx.c:382)
==21905== If you believe this happened as a result of a stack
==21905== overflow in your program's main thread (unlikely but
==21905== possible), you can try to increase the size of the
==21905== main thread stack using the --main-stacksize= flag.
==21905== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 6: inclusive option value true (aa) - Can't connect to 127.0.0.1:1984: Connection refused ==21907== Invalid read of size 4
==21907== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21907== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21907== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21907== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21907== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21907== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21907== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21907== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21907== by 0x8062D4E: main (nginx.c:382)
==21907== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21907==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
084-inclusive-receiveuntil.t TEST 6: inclusive option value true (aa) - Can't connect to 127.0.0.1:1984: Connection refused ==21907==
==21907== Process terminating with default action of signal 11 (SIGSEGV)
==21907== Access not within mapped region at address 0x0
==21907== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21907== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21907== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21907== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21907== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21907== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21907== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21907== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21907== by 0x8062D4E: main (nginx.c:382)
==21907== If you believe this happened as a result of a stack
==21907== overflow in your program's main thread (unlikely but
==21907== possible), you can try to increase the size of the
==21907== main thread stack using the --main-stacksize= flag.
==21907== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
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 ==21909== Invalid read of size 4
==21909== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21909== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21909== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21909== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21909== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21909== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21909== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21909== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21909== by 0x8062D4E: main (nginx.c:382)
==21909== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21909==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==21909==
==21909== Process terminating with default action of signal 11 (SIGSEGV)
==21909== Access not within mapped region at address 0x0
==21909== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21909== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21909== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21909== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21909== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21909== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21909== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21909== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21909== by 0x8062D4E: main (nginx.c:382)
==21909== If you believe this happened as a result of a stack
==21909== overflow in your program's main thread (unlikely but
==21909== possible), you can try to increase the size of the
==21909== main thread stack using the --main-stacksize= flag.
==21909== 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 (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==21911== Invalid read of size 4
==21911== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21911== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21911== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21911== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21911== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21911== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21911== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21911== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21911== by 0x8062D4E: main (nginx.c:382)
==21911== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21911==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
084-inclusive-receiveuntil.t TEST 3: ambiguous boundary patterns (abcabd) - inclusive mode - small buffers - Can't connect to 127.0.0.1:1984: Connection refused ==21911==
==21911== Process terminating with default action of signal 11 (SIGSEGV)
==21911== Access not within mapped region at address 0x0
==21911== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21911== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21911== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21911== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21911== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21911== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21911== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21911== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21911== by 0x8062D4E: main (nginx.c:382)
==21911== If you believe this happened as a result of a stack
==21911== overflow in your program's main thread (unlikely but
==21911== possible), you can try to increase the size of the
==21911== main thread stack using the --main-stacksize= flag.
==21911== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 7: bad inclusive option value type - Can't connect to 127.0.0.1:1984: Connection refused ==21913== Invalid read of size 4
==21913== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21913== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21913== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21913== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21913== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21913== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21913== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21913== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21913== by 0x8062D4E: main (nginx.c:382)
==21913== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21913==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
084-inclusive-receiveuntil.t TEST 7: bad inclusive option value type - Can't connect to 127.0.0.1:1984: Connection refused ==21913==
==21913== Process terminating with default action of signal 11 (SIGSEGV)
==21913== Access not within mapped region at address 0x0
==21913== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21913== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21913== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21913== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21913== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21913== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21913== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21913== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21913== by 0x8062D4E: main (nginx.c:382)
==21913== If you believe this happened as a result of a stack
==21913== overflow in your program's main thread (unlikely but
==21913== possible), you can try to increase the size of the
==21913== main thread stack using the --main-stacksize= flag.
==21913== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 4: inclusive option value nil - Can't connect to 127.0.0.1:1984: Connection refused ==21915== Invalid read of size 4
==21915== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21915== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21915== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21915== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21915== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21915== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21915== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21915== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21915== by 0x8062D4E: main (nginx.c:382)
==21915== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21915==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
084-inclusive-receiveuntil.t TEST 4: inclusive option value nil - Can't connect to 127.0.0.1:1984: Connection refused ==21915==
==21915== Process terminating with default action of signal 11 (SIGSEGV)
==21915== Access not within mapped region at address 0x0
==21915== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21915== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21915== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21915== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21915== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21915== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21915== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21915== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21915== by 0x8062D4E: main (nginx.c:382)
==21915== If you believe this happened as a result of a stack
==21915== overflow in your program's main thread (unlikely but
==21915== possible), you can try to increase the size of the
==21915== main thread stack using the --main-stacksize= flag.
==21915== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
086-init-by.t TEST 1: sanity (inline) - Can't connect to 127.0.0.1:1984: Connection refused ==21920== Invalid read of size 4
==21920== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21920== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21920== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21920== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21920== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21920== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21920== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21920== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21920== by 0x8062D4E: main (nginx.c:382)
==21920== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21920==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
086-init-by.t TEST 1: sanity (inline) - Can't connect to 127.0.0.1:1984: Connection refused ==21920==
==21920== Process terminating with default action of signal 11 (SIGSEGV)
==21920== Access not within mapped region at address 0x0
==21920== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21920== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21920== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21920== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21920== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21920== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21920== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21920== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21920== by 0x8062D4E: main (nginx.c:382)
==21920== If you believe this happened as a result of a stack
==21920== overflow in your program's main thread (unlikely but
==21920== possible), you can try to increase the size of the
==21920== main thread stack using the --main-stacksize= flag.
==21920== 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 (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused ==21922== Invalid read of size 4
==21922== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21922== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21922== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21922== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21922== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21922== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21922== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21922== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21922== by 0x8062D4E: main (nginx.c:382)
==21922== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21922==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
086-init-by.t TEST 2: sanity (file) - Can't connect to 127.0.0.1:1984: Connection refused ==21922==
==21922== Process terminating with default action of signal 11 (SIGSEGV)
==21922== Access not within mapped region at address 0x0
==21922== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21922== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21922== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21922== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21922== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21922== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21922== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21922== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21922== by 0x8062D4E: main (nginx.c:382)
==21922== If you believe this happened as a result of a stack
==21922== overflow in your program's main thread (unlikely but
==21922== possible), you can try to increase the size of the
==21922== main thread stack using the --main-stacksize= flag.
==21922== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==21924== Invalid read of size 4
==21924== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21924== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21924== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21924== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21924== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21924== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21924== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21924== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21924== by 0x8062D4E: main (nginx.c:382)
==21924== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21924==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
086-init-by.t TEST 3: require - Can't connect to 127.0.0.1:1984: Connection refused ==21924==
==21924== Process terminating with default action of signal 11 (SIGSEGV)
==21924== Access not within mapped region at address 0x0
==21924== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21924== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21924== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21924== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21924== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21924== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21924== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21924== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21924== by 0x8062D4E: main (nginx.c:382)
==21924== If you believe this happened as a result of a stack
==21924== overflow in your program's main thread (unlikely but
==21924== possible), you can try to increase the size of the
==21924== main thread stack using the --main-stacksize= flag.
==21924== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused ==21926== Invalid read of size 4
==21926== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21926== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21926== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21926== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21926== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21926== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21926== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21926== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21926== by 0x8062D4E: main (nginx.c:382)
==21926== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21926==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
086-init-by.t TEST 4: shdict (single) - Can't connect to 127.0.0.1:1984: Connection refused ==21926==
==21926== Process terminating with default action of signal 11 (SIGSEGV)
==21926== Access not within mapped region at address 0x0
==21926== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21926== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21926== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21926== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21926== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21926== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21926== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21926== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21926== by 0x8062D4E: main (nginx.c:382)
==21926== If you believe this happened as a result of a stack
==21926== overflow in your program's main thread (unlikely but
==21926== possible), you can try to increase the size of the
==21926== main thread stack using the --main-stacksize= flag.
==21926== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused ==21928== Invalid read of size 4
==21928== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21928== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21928== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21928== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21928== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21928== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21928== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21928== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21928== by 0x8062D4E: main (nginx.c:382)
==21928== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21928==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
086-init-by.t TEST 5: shdict (multi) - Can't connect to 127.0.0.1:1984: Connection refused ==21928==
==21928== Process terminating with default action of signal 11 (SIGSEGV)
==21928== Access not within mapped region at address 0x0
==21928== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21928== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21928== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21928== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21928== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21928== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21928== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21928== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21928== by 0x8062D4E: main (nginx.c:382)
==21928== If you believe this happened as a result of a stack
==21928== overflow in your program's main thread (unlikely but
==21928== possible), you can try to increase the size of the
==21928== main thread stack using the --main-stacksize= flag.
==21928== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==21930== Invalid read of size 4
==21930== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21930== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21930== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21930== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21930== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21930== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21930== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21930== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21930== by 0x8062D4E: main (nginx.c:382)
==21930== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21930==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
086-init-by.t TEST 6: print - Can't connect to 127.0.0.1:1984: Connection refused ==21930==
==21930== Process terminating with default action of signal 11 (SIGSEGV)
==21930== Access not within mapped region at address 0x0
==21930== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21930== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21930== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21930== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21930== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21930== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21930== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21930== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21930== by 0x8062D4E: main (nginx.c:382)
==21930== If you believe this happened as a result of a stack
==21930== overflow in your program's main thread (unlikely but
==21930== possible), you can try to increase the size of the
==21930== main thread stack using the --main-stacksize= flag.
==21930== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==21932== Invalid read of size 4
==21932== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21932== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21932== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21932== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21932== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21932== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21932== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21932== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21932== by 0x8062D4E: main (nginx.c:382)
==21932== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21932==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
086-init-by.t TEST 7: ngx.log - Can't connect to 127.0.0.1:1984: Connection refused ==21932==
==21932== Process terminating with default action of signal 11 (SIGSEGV)
==21932== Access not within mapped region at address 0x0
==21932== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21932== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21932== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21932== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21932== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21932== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21932== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21932== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21932== by 0x8062D4E: main (nginx.c:382)
==21932== If you believe this happened as a result of a stack
==21932== overflow in your program's main thread (unlikely but
==21932== possible), you can try to increase the size of the
==21932== main thread stack using the --main-stacksize= flag.
==21932== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused ==21934== Invalid read of size 4
==21934== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21934== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21934== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21934== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21934== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21934== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21934== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21934== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21934== by 0x8062D4E: main (nginx.c:382)
==21934== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21934==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
086-init-by.t TEST 8: require (with shm defined) - Can't connect to 127.0.0.1:1984: Connection refused ==21934==
==21934== Process terminating with default action of signal 11 (SIGSEGV)
==21934== Access not within mapped region at address 0x0
==21934== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21934== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21934== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21934== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21934== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21934== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21934== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21934== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21934== by 0x8062D4E: main (nginx.c:382)
==21934== If you believe this happened as a result of a stack
==21934== overflow in your program's main thread (unlikely but
==21934== possible), you can try to increase the size of the
==21934== main thread stack using the --main-stacksize= flag.
==21934== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused ==21936== Invalid read of size 4
==21936== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21936== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21936== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21936== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21936== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21936== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21936== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21936== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21936== by 0x8062D4E: main (nginx.c:382)
==21936== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21936==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
086-init-by.t TEST 9: coroutine API (inlined init_by_lua) - Can't connect to 127.0.0.1:1984: Connection refused ==21936==
==21936== Process terminating with default action of signal 11 (SIGSEGV)
==21936== Access not within mapped region at address 0x0
==21936== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21936== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21936== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21936== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21936== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21936== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21936== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21936== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21936== by 0x8062D4E: main (nginx.c:382)
==21936== If you believe this happened as a result of a stack
==21936== overflow in your program's main thread (unlikely but
==21936== possible), you can try to increase the size of the
==21936== main thread stack using the --main-stacksize= flag.
==21936== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused ==21938== Invalid read of size 4
==21938== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21938== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21938== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21938== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21938== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21938== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21938== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21938== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21938== by 0x8062D4E: main (nginx.c:382)
==21938== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21938==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
086-init-by.t TEST 10: coroutine API (init_by_lua_file) - Can't connect to 127.0.0.1:1984: Connection refused ==21938==
==21938== Process terminating with default action of signal 11 (SIGSEGV)
==21938== Access not within mapped region at address 0x0
==21938== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21938== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21938== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21938== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21938== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21938== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21938== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21938== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21938== by 0x8062D4E: main (nginx.c:382)
==21938== If you believe this happened as a result of a stack
==21938== overflow in your program's main thread (unlikely but
==21938== possible), you can try to increase the size of the
==21938== main thread stack using the --main-stacksize= flag.
==21938== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==21940== Invalid read of size 4
==21940== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21940== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21940== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21940== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21940== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21940== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21940== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21940== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21940== by 0x8062D4E: main (nginx.c:382)
==21940== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21940==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
086-init-by.t TEST 11: access a field in the ngx. table - Can't connect to 127.0.0.1:1984: Connection refused ==21940==
==21940== Process terminating with default action of signal 11 (SIGSEGV)
==21940== Access not within mapped region at address 0x0
==21940== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21940== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21940== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21940== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21940== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21940== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21940== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21940== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21940== by 0x8062D4E: main (nginx.c:382)
==21940== If you believe this happened as a result of a stack
==21940== overflow in your program's main thread (unlikely but
==21940== possible), you can try to increase the size of the
==21940== main thread stack using the --main-stacksize= flag.
==21940== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 10: access the google DNS server (using IP addr) - Can't connect to 127.0.0.1:1984: Connection refused ==21945== Invalid read of size 4
==21945== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21945== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21945== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21945== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21945== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21945== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21945== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21945== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21945== by 0x8062D4E: main (nginx.c:382)
==21945== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21945==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
087-udp-socket.t TEST 10: access the google DNS server (using IP addr) - Can't connect to 127.0.0.1:1984: Connection refused ==21945==
==21945== Process terminating with default action of signal 11 (SIGSEGV)
==21945== Access not within mapped region at address 0x0
==21945== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21945== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21945== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21945== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21945== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21945== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21945== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21945== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21945== by 0x8062D4E: main (nginx.c:382)
==21945== If you believe this happened as a result of a stack
==21945== overflow in your program's main thread (unlikely but
==21945== possible), you can try to increase the size of the
==21945== main thread stack using the --main-stacksize= flag.
==21945== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 15: bad request tries to receive - Can't connect to 127.0.0.1:1984: Connection refused ==21947== Invalid read of size 4
==21947== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21947== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21947== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21947== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21947== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21947== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21947== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21947== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21947== by 0x8062D4E: main (nginx.c:382)
==21947== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21947==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
087-udp-socket.t TEST 15: bad request tries to receive - Can't connect to 127.0.0.1:1984: Connection refused ==21947==
==21947== Process terminating with default action of signal 11 (SIGSEGV)
==21947== Access not within mapped region at address 0x0
==21947== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21947== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21947== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21947== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21947== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21947== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21947== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21947== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21947== by 0x8062D4E: main (nginx.c:382)
==21947== If you believe this happened as a result of a stack
==21947== overflow in your program's main thread (unlikely but
==21947== possible), you can try to increase the size of the
==21947== main thread stack using the --main-stacksize= flag.
==21947== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 12: datagram unix domain socket - Can't connect to 127.0.0.1:1984: Connection refused ==21949== Invalid read of size 4
==21949== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21949== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21949== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21949== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21949== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21949== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21949== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21949== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21949== by 0x8062D4E: main (nginx.c:382)
==21949== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21949==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
087-udp-socket.t TEST 12: datagram unix domain socket - Can't connect to 127.0.0.1:1984: Connection refused ==21949==
==21949== Process terminating with default action of signal 11 (SIGSEGV)
==21949== Access not within mapped region at address 0x0
==21949== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21949== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21949== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21949== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21949== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21949== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21949== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21949== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21949== by 0x8062D4E: main (nginx.c:382)
==21949== If you believe this happened as a result of a stack
==21949== overflow in your program's main thread (unlikely but
==21949== possible), you can try to increase the size of the
==21949== main thread stack using the --main-stacksize= flag.
==21949== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==21954== Invalid read of size 4
==21954== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21954== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21954== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21954== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21954== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21954== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21954== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21954== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21954== by 0x8062D4E: main (nginx.c:382)
==21954== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21954==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
087-udp-socket.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==21954==
==21954== Process terminating with default action of signal 11 (SIGSEGV)
==21954== Access not within mapped region at address 0x0
==21954== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21954== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21954== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21954== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21954== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21954== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21954== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21954== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21954== by 0x8062D4E: main (nginx.c:382)
==21954== If you believe this happened as a result of a stack
==21954== overflow in your program's main thread (unlikely but
==21954== possible), you can try to increase the size of the
==21954== main thread stack using the --main-stacksize= flag.
==21954== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 7: recv timeout - Can't connect to 127.0.0.1:1984: Connection refused ==21956== Invalid read of size 4
==21956== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21956== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21956== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21956== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21956== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21956== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21956== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21956== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21956== by 0x8062D4E: main (nginx.c:382)
==21956== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21956==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
087-udp-socket.t TEST 7: recv timeout - Can't connect to 127.0.0.1:1984: Connection refused ==21956==
==21956== Process terminating with default action of signal 11 (SIGSEGV)
==21956== Access not within mapped region at address 0x0
==21956== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21956== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21956== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21956== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21956== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21956== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21956== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21956== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21956== by 0x8062D4E: main (nginx.c:382)
==21956== If you believe this happened as a result of a stack
==21956== overflow in your program's main thread (unlikely but
==21956== possible), you can try to increase the size of the
==21956== main thread stack using the --main-stacksize= flag.
==21956== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 16: bad request tries to close - Can't connect to 127.0.0.1:1984: Connection refused ==21958== Invalid read of size 4
==21958== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21958== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21958== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21958== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21958== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21958== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21958== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21958== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21958== by 0x8062D4E: main (nginx.c:382)
==21958== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21958==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
087-udp-socket.t TEST 16: bad request tries to close - Can't connect to 127.0.0.1:1984: Connection refused ==21958==
==21958== Process terminating with default action of signal 11 (SIGSEGV)
==21958== Access not within mapped region at address 0x0
==21958== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21958== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21958== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21958== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21958== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21958== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21958== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21958== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21958== by 0x8062D4E: main (nginx.c:382)
==21958== If you believe this happened as a result of a stack
==21958== overflow in your program's main thread (unlikely but
==21958== possible), you can try to increase the size of the
==21958== main thread stack using the --main-stacksize= flag.
==21958== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 5: access conflicts of receive() on shared udp objects - Can't connect to 127.0.0.1:1984: Connection refused ==21960== Invalid read of size 4
==21960== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21960== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21960== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21960== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21960== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21960== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21960== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21960== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21960== by 0x8062D4E: main (nginx.c:382)
==21960== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21960==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
087-udp-socket.t TEST 5: access conflicts of receive() on shared udp objects - Can't connect to 127.0.0.1:1984: Connection refused ==21960==
==21960== Process terminating with default action of signal 11 (SIGSEGV)
==21960== Access not within mapped region at address 0x0
==21960== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21960== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21960== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21960== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21960== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21960== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21960== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21960== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21960== by 0x8062D4E: main (nginx.c:382)
==21960== If you believe this happened as a result of a stack
==21960== overflow in your program's main thread (unlikely but
==21960== possible), you can try to increase the size of the
==21960== main thread stack using the --main-stacksize= flag.
==21960== The main thread stack size used in this run was 8388608.
==21960== 512 bytes in 1 blocks are definitely lost in loss record 2,704 of 2,916
==21960== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==21960== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==21960== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21960== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21960== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==21960== by 0x408A8C6: ir_nextk (lj_ir.c:175)
==21960== by 0x408A8C6: lj_ir_kgc (lj_ir.c:286)
==21960== by 0x409ED21: lj_record_ins (lj_record.c:2110)
==21960== by 0x40BB16A: trace_state (lj_trace.c:680)
==21960== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21960== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21960== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==21960== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21960== by 0x407FA29: lua_resume (lj_api.c:1296)
==21960== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21960== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==21960== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==21960== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==21960== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==21960== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==21960== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==21960== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==21960== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==21960== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21960== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21960== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21960== by 0x8062D4E: main (nginx.c:382)
==21960==
{
<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_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 9: read timeout and re-receive - Can't connect to 127.0.0.1:1984: Connection refused ==21962== Invalid read of size 4
==21962== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21962== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21962== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21962== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21962== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21962== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21962== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21962== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21962== by 0x8062D4E: main (nginx.c:382)
==21962== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21962==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
087-udp-socket.t TEST 9: read timeout and re-receive - Can't connect to 127.0.0.1:1984: Connection refused ==21962==
==21962== Process terminating with default action of signal 11 (SIGSEGV)
==21962== Access not within mapped region at address 0x0
==21962== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21962== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21962== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21962== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21962== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21962== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21962== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21962== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21962== by 0x8062D4E: main (nginx.c:382)
==21962== If you believe this happened as a result of a stack
==21962== overflow in your program's main thread (unlikely but
==21962== possible), you can try to increase the size of the
==21962== main thread stack using the --main-stacksize= flag.
==21962== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 19: UDP socket GC'ed in preread phase without Lua content phase - Can't connect to 127.0.0.1:1984: Connection refused ==21967== Invalid read of size 4
==21967== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21967== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21967== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21967== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21967== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21967== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21967== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21967== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21967== by 0x8062D4E: main (nginx.c:382)
==21967== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21967==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
087-udp-socket.t TEST 19: UDP socket GC'ed in preread phase without Lua content phase - Can't connect to 127.0.0.1:1984: Connection refused ==21967==
==21967== Process terminating with default action of signal 11 (SIGSEGV)
==21967== Access not within mapped region at address 0x0
==21967== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21967== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21967== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21967== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21967== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21967== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21967== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21967== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21967== by 0x8062D4E: main (nginx.c:382)
==21967== If you believe this happened as a result of a stack
==21967== overflow in your program's main thread (unlikely but
==21967== possible), you can try to increase the size of the
==21967== main thread stack using the --main-stacksize= flag.
==21967== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 3: access a TCP interface - Can't connect to 127.0.0.1:1984: Connection refused ==21969== Invalid read of size 4
==21969== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21969== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21969== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21969== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21969== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21969== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21969== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21969== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21969== by 0x8062D4E: main (nginx.c:382)
==21969== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21969==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
087-udp-socket.t TEST 3: access a TCP interface - Can't connect to 127.0.0.1:1984: Connection refused ==21969==
==21969== Process terminating with default action of signal 11 (SIGSEGV)
==21969== Access not within mapped region at address 0x0
==21969== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21969== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21969== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21969== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21969== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21969== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21969== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21969== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21969== by 0x8062D4E: main (nginx.c:382)
==21969== If you believe this happened as a result of a stack
==21969== overflow in your program's main thread (unlikely but
==21969== possible), you can try to increase the size of the
==21969== main thread stack using the --main-stacksize= flag.
==21969== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 17: the upper bound of port range should be 2^16 - 1 - Can't connect to 127.0.0.1:1984: Connection refused ==21971== Invalid read of size 4
==21971== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21971== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21971== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21971== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21971== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21971== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21971== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21971== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21971== by 0x8062D4E: main (nginx.c:382)
==21971== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21971==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
087-udp-socket.t TEST 17: the upper bound of port range should be 2^16 - 1 - Can't connect to 127.0.0.1:1984: Connection refused ==21971==
==21971== Process terminating with default action of signal 11 (SIGSEGV)
==21971== Access not within mapped region at address 0x0
==21971== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21971== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21971== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21971== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21971== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21971== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21971== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21971== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21971== by 0x8062D4E: main (nginx.c:382)
==21971== If you believe this happened as a result of a stack
==21971== overflow in your program's main thread (unlikely but
==21971== possible), you can try to increase the size of the
==21971== main thread stack using the --main-stacksize= flag.
==21971== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 8: with an explicit receive buffer size argument - Can't connect to 127.0.0.1:1984: Connection refused ==21973== Invalid read of size 4
==21973== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21973== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21973== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21973== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21973== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21973== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21973== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21973== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21973== by 0x8062D4E: main (nginx.c:382)
==21973== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21973==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
087-udp-socket.t TEST 8: with an explicit receive buffer size argument - Can't connect to 127.0.0.1:1984: Connection refused ==21973==
==21973== Process terminating with default action of signal 11 (SIGSEGV)
==21973== Access not within mapped region at address 0x0
==21973== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21973== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21973== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21973== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21973== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21973== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21973== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21973== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21973== by 0x8062D4E: main (nginx.c:382)
==21973== If you believe this happened as a result of a stack
==21973== overflow in your program's main thread (unlikely but
==21973== possible), you can try to increase the size of the
==21973== main thread stack using the --main-stacksize= flag.
==21973== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
087-udp-socket.t TEST 2: multiple parallel queries - Can't connect to 127.0.0.1:1984: Connection refused ==21975== Invalid read of size 4
==21975== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21975== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21975== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21975== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21975== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21975== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21975== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21975== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21975== by 0x8062D4E: main (nginx.c:382)
==21975== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21975==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
087-udp-socket.t TEST 2: multiple parallel queries - Can't connect to 127.0.0.1:1984: Connection refused ==21975==
==21975== Process terminating with default action of signal 11 (SIGSEGV)
==21975== Access not within mapped region at address 0x0
==21975== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21975== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21975== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21975== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21975== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21975== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21975== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21975== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21975== by 0x8062D4E: main (nginx.c:382)
==21975== If you believe this happened as a result of a stack
==21975== overflow in your program's main thread (unlikely but
==21975== possible), you can try to increase the size of the
==21975== main thread stack using the --main-stacksize= flag.
==21975== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 18: send boolean and nil - Can't connect to 127.0.0.1:1984: Connection refused ==21977== Invalid read of size 4
==21977== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21977== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21977== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21977== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21977== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21977== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21977== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21977== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21977== by 0x8062D4E: main (nginx.c:382)
==21977== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21977==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
087-udp-socket.t TEST 18: send boolean and nil - Can't connect to 127.0.0.1:1984: Connection refused ==21977==
==21977== Process terminating with default action of signal 11 (SIGSEGV)
==21977== Access not within mapped region at address 0x0
==21977== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21977== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21977== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21977== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21977== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21977== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21977== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21977== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21977== by 0x8062D4E: main (nginx.c:382)
==21977== If you believe this happened as a result of a stack
==21977== overflow in your program's main thread (unlikely but
==21977== possible), you can try to increase the size of the
==21977== main thread stack using the --main-stacksize= flag.
==21977== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 6: connect again immediately - Can't connect to 127.0.0.1:1984: Connection refused ==21979== Invalid read of size 4
==21979== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21979== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21979== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21979== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21979== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21979== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21979== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21979== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21979== by 0x8062D4E: main (nginx.c:382)
==21979== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21979==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
087-udp-socket.t TEST 6: connect again immediately - Can't connect to 127.0.0.1:1984: Connection refused ==21979==
==21979== Process terminating with default action of signal 11 (SIGSEGV)
==21979== Access not within mapped region at address 0x0
==21979== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21979== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21979== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21979== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21979== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21979== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21979== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21979== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21979== by 0x8062D4E: main (nginx.c:382)
==21979== If you believe this happened as a result of a stack
==21979== overflow in your program's main thread (unlikely but
==21979== possible), you can try to increase the size of the
==21979== main thread stack using the --main-stacksize= flag.
==21979== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 13: bad request tries to setpeer - Can't connect to 127.0.0.1:1984: Connection refused ==21981== Invalid read of size 4
==21981== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21981== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21981== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21981== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21981== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21981== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21981== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21981== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21981== by 0x8062D4E: main (nginx.c:382)
==21981== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21981==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
087-udp-socket.t TEST 13: bad request tries to setpeer - Can't connect to 127.0.0.1:1984: Connection refused ==21981==
==21981== Process terminating with default action of signal 11 (SIGSEGV)
==21981== Access not within mapped region at address 0x0
==21981== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21981== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21981== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21981== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21981== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21981== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21981== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21981== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21981== by 0x8062D4E: main (nginx.c:382)
==21981== If you believe this happened as a result of a stack
==21981== overflow in your program's main thread (unlikely but
==21981== possible), you can try to increase the size of the
==21981== main thread stack using the --main-stacksize= flag.
==21981== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 14: bad request tries to send - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21983== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
087-udp-socket.t TEST 14: bad request tries to send - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21983== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 11: access the google DNS server (using domain names) - Can't connect to 127.0.0.1:1984: Connection refused ==21985== Invalid read of size 4
==21985== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21985== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21985== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21985== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21985== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21985== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21985== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21985== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21985== by 0x8062D4E: main (nginx.c:382)
==21985== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21985==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==21985==
==21985== Process terminating with default action of signal 11 (SIGSEGV)
==21985== Access not within mapped region at address 0x0
==21985== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21985== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21985== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21985== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21985== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21985== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21985== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21985== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21985== by 0x8062D4E: main (nginx.c:382)
==21985== If you believe this happened as a result of a stack
==21985== overflow in your program's main thread (unlikely but
==21985== possible), you can try to increase the size of the
==21985== main thread stack using the --main-stacksize= flag.
==21985== 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 (aborted) '
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 4: access conflicts of connect() on shared udp objects - Can't connect to 127.0.0.1:1984: Connection refused ==21987== Invalid read of size 4
==21987== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21987== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21987== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21987== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21987== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21987== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21987== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21987== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21987== by 0x8062D4E: main (nginx.c:382)
==21987== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21987==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
087-udp-socket.t TEST 4: access conflicts of connect() on shared udp objects - Can't connect to 127.0.0.1:1984: Connection refused ==21987==
==21987== Process terminating with default action of signal 11 (SIGSEGV)
==21987== Access not within mapped region at address 0x0
==21987== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21987== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21987== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21987== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21987== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21987== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21987== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21987== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21987== by 0x8062D4E: main (nginx.c:382)
==21987== If you believe this happened as a result of a stack
==21987== overflow in your program's main thread (unlikely but
==21987== possible), you can try to increase the size of the
==21987== main thread stack using the --main-stacksize= flag.
==21987== The main thread stack size used in this run was 8388608.
==21987== 1,024 bytes in 1 blocks are definitely lost in loss record 2,808 of 2,912
==21987== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==21987== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==21987== by 0x40CC146: mem_alloc (lib_aux.c:335)
==21987== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==21987== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==21987== by 0x408A916: ir_nextk (lj_ir.c:175)
==21987== by 0x408A916: lj_ir_ktrace (lj_ir.c:302)
==21987== by 0x40AA165: recff_stitch (lj_ffrecord.c:129)
==21987== by 0x40AA165: recff_nyi (lj_ffrecord.c:161)
==21987== by 0x40AE0BC: lj_ffrecord_func (lj_ffrecord.c:1254)
==21987== by 0x409F4CA: lj_record_ins (lj_record.c:2479)
==21987== by 0x40BB16A: trace_state (lj_trace.c:680)
==21987== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21987== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==21987== by 0x407596F: lj_dispatch_call (lj_dispatch.c:488)
==21987== by 0x406904F: lj_vm_hotcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==21987== by 0x407FA29: lua_resume (lj_api.c:1296)
==21987== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==21987== by 0x8162A0A: ngx_stream_lua_timer_handler (ngx_stream_lua_timer.c:710)
==21987== by 0x80827AB: ngx_event_expire_timers (ngx_event_timer.c:94)
==21987== by 0x8082271: ngx_process_events_and_timers (ngx_event.c:271)
==21987== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21987== by 0x8062D4E: main (nginx.c:382)
==21987==
{
<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_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
087-udp-socket.t TEST 4: access conflicts of connect() on shared udp objects - status code ok got: ''
expected: '200'
089-phase.t TEST 6: get_phase in init_worker_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==21992== Invalid read of size 4
==21992== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21992== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21992== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21992== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21992== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21992== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21992== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21992== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21992== by 0x8062D4E: main (nginx.c:382)
==21992== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21992==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
089-phase.t TEST 6: get_phase in init_worker_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==21992==
==21992== Process terminating with default action of signal 11 (SIGSEGV)
==21992== Access not within mapped region at address 0x0
==21992== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21992== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21992== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21992== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21992== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21992== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21992== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21992== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21992== by 0x8062D4E: main (nginx.c:382)
==21992== If you believe this happened as a result of a stack
==21992== overflow in your program's main thread (unlikely but
==21992== possible), you can try to increase the size of the
==21992== main thread stack using the --main-stacksize= flag.
==21992== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==21994== Invalid read of size 4
==21994== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21994== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21994== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21994== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21994== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21994== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21994== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21994== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21994== by 0x8062D4E: main (nginx.c:382)
==21994== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21994==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
089-phase.t TEST 3: get_phase in content_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==21994==
==21994== Process terminating with default action of signal 11 (SIGSEGV)
==21994== Access not within mapped region at address 0x0
==21994== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21994== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21994== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21994== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21994== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21994== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21994== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21994== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21994== by 0x8062D4E: main (nginx.c:382)
==21994== If you believe this happened as a result of a stack
==21994== overflow in your program's main thread (unlikely but
==21994== possible), you can try to increase the size of the
==21994== main thread stack using the --main-stacksize= flag.
==21994== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==21996== Invalid read of size 4
==21996== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21996== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21996== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21996== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21996== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21996== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21996== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21996== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21996== by 0x8062D4E: main (nginx.c:382)
==21996== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21996==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
089-phase.t TEST 5: get_phase in ngx.timer callback - Can't connect to 127.0.0.1:1984: Connection refused ==21996==
==21996== Process terminating with default action of signal 11 (SIGSEGV)
==21996== Access not within mapped region at address 0x0
==21996== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21996== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21996== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21996== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21996== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21996== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21996== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21996== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21996== by 0x8062D4E: main (nginx.c:382)
==21996== If you believe this happened as a result of a stack
==21996== overflow in your program's main thread (unlikely but
==21996== possible), you can try to increase the size of the
==21996== main thread stack using the --main-stacksize= flag.
==21996== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - pattern "current phase: timer" should match a line in error.log (req 1)
089-phase.t TEST 1: get_phase in init_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==21998== Invalid read of size 4
==21998== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21998== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21998== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21998== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21998== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21998== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21998== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21998== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21998== by 0x8062D4E: main (nginx.c:382)
==21998== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21998==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==21998==
==21998== Process terminating with default action of signal 11 (SIGSEGV)
==21998== Access not within mapped region at address 0x0
==21998== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==21998== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==21998== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==21998== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==21998== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==21998== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==21998== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==21998== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==21998== by 0x8062D4E: main (nginx.c:382)
==21998== If you believe this happened as a result of a stack
==21998== overflow in your program's main thread (unlikely but
==21998== possible), you can try to increase the size of the
==21998== main thread stack using the --main-stacksize= flag.
==21998== 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 (aborted) '
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)
091-coroutine.t TEST 1: basic coroutine print - Can't connect to 127.0.0.1:1984: Connection refused ==22010== Invalid read of size 4
==22010== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22010== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22010== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22010== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22010== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22010== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22010== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22010== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22010== by 0x8062D4E: main (nginx.c:382)
==22010== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22010==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
091-coroutine.t TEST 1: basic coroutine print - Can't connect to 127.0.0.1:1984: Connection refused ==22010==
==22010== Process terminating with default action of signal 11 (SIGSEGV)
==22010== Access not within mapped region at address 0x0
==22010== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22010== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22010== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22010== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22010== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22010== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22010== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22010== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22010== by 0x8062D4E: main (nginx.c:382)
==22010== If you believe this happened as a result of a stack
==22010== overflow in your program's main thread (unlikely but
==22010== possible), you can try to increase the size of the
==22010== main thread stack using the --main-stacksize= flag.
==22010== 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 (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==22012== Invalid read of size 4
==22012== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22012== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22012== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22012== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22012== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22012== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22012== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22012== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22012== by 0x8062D4E: main (nginx.c:382)
==22012== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22012==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
091-coroutine.t TEST 2: basic coroutine2 - Can't connect to 127.0.0.1:1984: Connection refused ==22012==
==22012== Process terminating with default action of signal 11 (SIGSEGV)
==22012== Access not within mapped region at address 0x0
==22012== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22012== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22012== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22012== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22012== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22012== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22012== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22012== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22012== by 0x8062D4E: main (nginx.c:382)
==22012== If you believe this happened as a result of a stack
==22012== overflow in your program's main thread (unlikely but
==22012== possible), you can try to increase the size of the
==22012== main thread stack using the --main-stacksize= flag.
==22012== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==22014== Invalid read of size 4
==22014== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22014== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22014== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22014== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22014== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22014== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22014== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22014== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22014== by 0x8062D4E: main (nginx.c:382)
==22014== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22014==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
091-coroutine.t TEST 3: basic coroutine and cosocket - Can't connect to 127.0.0.1:1984: Connection refused ==22014==
==22014== Process terminating with default action of signal 11 (SIGSEGV)
==22014== Access not within mapped region at address 0x0
==22014== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22014== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22014== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22014== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22014== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22014== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22014== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22014== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22014== by 0x8062D4E: main (nginx.c:382)
==22014== If you believe this happened as a result of a stack
==22014== overflow in your program's main thread (unlikely but
==22014== possible), you can try to increase the size of the
==22014== main thread stack using the --main-stacksize= flag.
==22014== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused ==22016== Invalid read of size 4
==22016== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22016== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22016== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22016== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22016== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22016== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22016== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22016== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22016== by 0x8062D4E: main (nginx.c:382)
==22016== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22016==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
091-coroutine.t TEST 4: coroutine.wrap(generate prime numbers) - Can't connect to 127.0.0.1:1984: Connection refused ==22016==
==22016== Process terminating with default action of signal 11 (SIGSEGV)
==22016== Access not within mapped region at address 0x0
==22016== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22016== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22016== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22016== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22016== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22016== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22016== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22016== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22016== by 0x8062D4E: main (nginx.c:382)
==22016== If you believe this happened as a result of a stack
==22016== overflow in your program's main thread (unlikely but
==22016== possible), you can try to increase the size of the
==22016== main thread stack using the --main-stacksize= flag.
==22016== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused ==22018== Invalid read of size 4
==22018== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22018== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22018== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22018== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22018== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22018== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22018== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22018== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22018== by 0x8062D4E: main (nginx.c:382)
==22018== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22018==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
091-coroutine.t TEST 5: coroutine.wrap(generate prime numbers,reset create and resume) - Can't connect to 127.0.0.1:1984: Connection refused ==22018==
==22018== Process terminating with default action of signal 11 (SIGSEGV)
==22018== Access not within mapped region at address 0x0
==22018== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22018== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22018== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22018== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22018== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22018== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22018== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22018== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22018== by 0x8062D4E: main (nginx.c:382)
==22018== If you believe this happened as a result of a stack
==22018== overflow in your program's main thread (unlikely but
==22018== possible), you can try to increase the size of the
==22018== main thread stack using the --main-stacksize= flag.
==22018== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused ==22020== Invalid read of size 4
==22020== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22020== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22020== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22020== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22020== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22020== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22020== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22020== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22020== by 0x8062D4E: main (nginx.c:382)
==22020== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22020==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
091-coroutine.t TEST 6: coroutine.wrap(generate fib) - Can't connect to 127.0.0.1:1984: Connection refused ==22020==
==22020== Process terminating with default action of signal 11 (SIGSEGV)
==22020== Access not within mapped region at address 0x0
==22020== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22020== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22020== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22020== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22020== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22020== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22020== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22020== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22020== by 0x8062D4E: main (nginx.c:382)
==22020== If you believe this happened as a result of a stack
==22020== overflow in your program's main thread (unlikely but
==22020== possible), you can try to increase the size of the
==22020== main thread stack using the --main-stacksize= flag.
==22020== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==22022== Invalid read of size 4
==22022== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22022== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22022== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22022== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22022== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22022== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22022== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22022== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22022== by 0x8062D4E: main (nginx.c:382)
==22022== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22022==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
091-coroutine.t TEST 7: coroutine wrap and cosocket - Can't connect to 127.0.0.1:1984: Connection refused ==22022==
==22022== Process terminating with default action of signal 11 (SIGSEGV)
==22022== Access not within mapped region at address 0x0
==22022== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22022== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22022== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22022== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22022== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22022== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22022== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22022== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22022== by 0x8062D4E: main (nginx.c:382)
==22022== If you believe this happened as a result of a stack
==22022== overflow in your program's main thread (unlikely but
==22022== possible), you can try to increase the size of the
==22022== main thread stack using the --main-stacksize= flag.
==22022== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==22024== Invalid read of size 4
==22024== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22024== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22024== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22024== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22024== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22024== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22024== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22024== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22024== by 0x8062D4E: main (nginx.c:382)
==22024== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22024==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
091-coroutine.t TEST 8: coroutine status, running - Can't connect to 127.0.0.1:1984: Connection refused ==22024==
==22024== Process terminating with default action of signal 11 (SIGSEGV)
==22024== Access not within mapped region at address 0x0
==22024== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22024== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22024== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22024== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22024== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22024== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22024== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22024== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22024== by 0x8062D4E: main (nginx.c:382)
==22024== If you believe this happened as a result of a stack
==22024== overflow in your program's main thread (unlikely but
==22024== possible), you can try to increase the size of the
==22024== main thread stack using the --main-stacksize= flag.
==22024== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==22026== Invalid read of size 4
==22026== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22026== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22026== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22026== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22026== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22026== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22026== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22026== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22026== by 0x8062D4E: main (nginx.c:382)
==22026== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22026==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
091-coroutine.t TEST 9: entry coroutine yielded will be resumed immediately - Can't connect to 127.0.0.1:1984: Connection refused ==22026==
==22026== Process terminating with default action of signal 11 (SIGSEGV)
==22026== Access not within mapped region at address 0x0
==22026== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22026== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22026== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22026== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22026== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22026== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22026== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22026== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22026== by 0x8062D4E: main (nginx.c:382)
==22026== If you believe this happened as a result of a stack
==22026== overflow in your program's main thread (unlikely but
==22026== possible), you can try to increase the size of the
==22026== main thread stack using the --main-stacksize= flag.
==22026== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused ==22028== Invalid read of size 4
==22028== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22028== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22028== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22028== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22028== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22028== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22028== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22028== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22028== by 0x8062D4E: main (nginx.c:382)
==22028== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22028==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
091-coroutine.t TEST 10: thread traceback (multi-thread) - Can't connect to 127.0.0.1:1984: Connection refused ==22028==
==22028== Process terminating with default action of signal 11 (SIGSEGV)
==22028== Access not within mapped region at address 0x0
==22028== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22028== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22028== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22028== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22028== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22028== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22028== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22028== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22028== by 0x8062D4E: main (nginx.c:382)
==22028== If you believe this happened as a result of a stack
==22028== overflow in your program's main thread (unlikely but
==22028== possible), you can try to increase the size of the
==22028== main thread stack using the --main-stacksize= flag.
==22028== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
091-coroutine.t TEST 10: thread traceback (multi-thread) - status code ok got: ''
expected: '200'
091-coroutine.t TEST 10: thread traceback (multi-thread) - pattern "stack traceback:" should match a line in error.log (req 1)
091-coroutine.t TEST 10: thread traceback (multi-thread) - pattern "coroutine 0:" should match a line in error.log (req 1)
091-coroutine.t TEST 10: thread traceback (multi-thread) - pattern "coroutine 1:" should match a line in error.log (req 1)
091-coroutine.t TEST 10: thread traceback (multi-thread) - pattern "coroutine 2:" should match a line in error.log (req 1)
091-coroutine.t TEST 11: thread traceback (only the entry thread) - Can't connect to 127.0.0.1:1984: Connection refused ==22030== Invalid read of size 4
==22030== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22030== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22030== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22030== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22030== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22030== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22030== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22030== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22030== by 0x8062D4E: main (nginx.c:382)
==22030== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22030==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
091-coroutine.t TEST 11: thread traceback (only the entry thread) - Can't connect to 127.0.0.1:1984: Connection refused ==22030==
==22030== Process terminating with default action of signal 11 (SIGSEGV)
==22030== Access not within mapped region at address 0x0
==22030== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22030== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22030== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22030== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22030== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22030== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22030== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22030== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22030== by 0x8062D4E: main (nginx.c:382)
==22030== If you believe this happened as a result of a stack
==22030== overflow in your program's main thread (unlikely but
==22030== possible), you can try to increase the size of the
==22030== main thread stack using the --main-stacksize= flag.
==22030== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - pattern "stack traceback:" should match a line in error.log (req 1)
091-coroutine.t TEST 11: thread traceback (only the entry thread) - pattern "coroutine 0:" should match a line in error.log (req 1)
091-coroutine.t TEST 12: bug: resume dead coroutine with args - Can't connect to 127.0.0.1:1984: Connection refused ==22032== Invalid read of size 4
==22032== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22032== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22032== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22032== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22032== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22032== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22032== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22032== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22032== by 0x8062D4E: main (nginx.c:382)
==22032== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22032==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
091-coroutine.t TEST 12: bug: resume dead coroutine with args - Can't connect to 127.0.0.1:1984: Connection refused ==22032==
==22032== Process terminating with default action of signal 11 (SIGSEGV)
==22032== Access not within mapped region at address 0x0
==22032== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22032== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22032== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22032== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22032== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22032== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22032== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22032== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22032== by 0x8062D4E: main (nginx.c:382)
==22032== If you believe this happened as a result of a stack
==22032== overflow in your program's main thread (unlikely but
==22032== possible), you can try to increase the size of the
==22032== main thread stack using the --main-stacksize= flag.
==22032== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==22034== Invalid read of size 4
==22034== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22034== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22034== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22034== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22034== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22034== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22034== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22034== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22034== by 0x8062D4E: main (nginx.c:382)
==22034== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22034==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
091-coroutine.t TEST 13: deeply nested coroutines - Can't connect to 127.0.0.1:1984: Connection refused ==22034==
==22034== Process terminating with default action of signal 11 (SIGSEGV)
==22034== Access not within mapped region at address 0x0
==22034== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22034== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22034== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22034== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22034== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22034== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22034== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22034== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22034== by 0x8062D4E: main (nginx.c:382)
==22034== If you believe this happened as a result of a stack
==22034== overflow in your program's main thread (unlikely but
==22034== possible), you can try to increase the size of the
==22034== main thread stack using the --main-stacksize= flag.
==22034== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==22036== Invalid read of size 4
==22036== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22036== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22036== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22036== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22036== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22036== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22036== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22036== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22036== by 0x8062D4E: main (nginx.c:382)
==22036== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22036==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
091-coroutine.t TEST 14: using ngx.exit in user coroutines - Can't connect to 127.0.0.1:1984: Connection refused ==22036==
==22036== Process terminating with default action of signal 11 (SIGSEGV)
==22036== Access not within mapped region at address 0x0
==22036== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22036== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22036== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22036== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22036== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22036== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22036== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22036== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22036== by 0x8062D4E: main (nginx.c:382)
==22036== If you believe this happened as a result of a stack
==22036== overflow in your program's main thread (unlikely but
==22036== possible), you can try to increase the size of the
==22036== main thread stack using the --main-stacksize= flag.
==22036== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==22038== Invalid read of size 4
==22038== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22038== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22038== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22038== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22038== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22038== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22038== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22038== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22038== by 0x8062D4E: main (nginx.c:382)
==22038== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22038==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
091-coroutine.t TEST 15: resume coroutines from within another one that is not its parent - Can't connect to 127.0.0.1:1984: Connection refused ==22038==
==22038== Process terminating with default action of signal 11 (SIGSEGV)
==22038== Access not within mapped region at address 0x0
==22038== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22038== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22038== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22038== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22038== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22038== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22038== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22038== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22038== by 0x8062D4E: main (nginx.c:382)
==22038== If you believe this happened as a result of a stack
==22038== overflow in your program's main thread (unlikely but
==22038== possible), you can try to increase the size of the
==22038== main thread stack using the --main-stacksize= flag.
==22038== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==22040== Invalid read of size 4
==22040== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22040== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22040== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22040== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22040== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22040== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22040== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22040== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22040== by 0x8062D4E: main (nginx.c:382)
==22040== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22040==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
091-coroutine.t TEST 16: infinite recursive calls of coroutine.resume - Can't connect to 127.0.0.1:1984: Connection refused ==22040==
==22040== Process terminating with default action of signal 11 (SIGSEGV)
==22040== Access not within mapped region at address 0x0
==22040== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22040== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22040== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22040== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22040== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22040== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22040== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22040== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22040== by 0x8062D4E: main (nginx.c:382)
==22040== If you believe this happened as a result of a stack
==22040== overflow in your program's main thread (unlikely but
==22040== possible), you can try to increase the size of the
==22040== main thread stack using the --main-stacksize= flag.
==22040== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==22042== Invalid read of size 4
==22042== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22042== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22042== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22042== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22042== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22042== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22042== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22042== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22042== by 0x8062D4E: main (nginx.c:382)
==22042== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22042==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
091-coroutine.t TEST 17: resume running (entry) coroutines - Can't connect to 127.0.0.1:1984: Connection refused ==22042==
==22042== Process terminating with default action of signal 11 (SIGSEGV)
==22042== Access not within mapped region at address 0x0
==22042== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22042== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22042== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22042== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22042== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22042== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22042== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22042== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22042== by 0x8062D4E: main (nginx.c:382)
==22042== If you believe this happened as a result of a stack
==22042== overflow in your program's main thread (unlikely but
==22042== possible), you can try to increase the size of the
==22042== main thread stack using the --main-stacksize= flag.
==22042== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==22044== Invalid read of size 4
==22044== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22044== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22044== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22044== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22044== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22044== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22044== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22044== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22044== by 0x8062D4E: main (nginx.c:382)
==22044== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22044==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
091-coroutine.t TEST 18: resume running (user) coroutines - Can't connect to 127.0.0.1:1984: Connection refused ==22044==
==22044== Process terminating with default action of signal 11 (SIGSEGV)
==22044== Access not within mapped region at address 0x0
==22044== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22044== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22044== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22044== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22044== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22044== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22044== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22044== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22044== by 0x8062D4E: main (nginx.c:382)
==22044== If you believe this happened as a result of a stack
==22044== overflow in your program's main thread (unlikely but
==22044== possible), you can try to increase the size of the
==22044== main thread stack using the --main-stacksize= flag.
==22044== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==22046== Invalid read of size 4
==22046== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22046== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22046== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22046== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22046== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22046== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22046== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22046== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22046== by 0x8062D4E: main (nginx.c:382)
==22046== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22046==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
091-coroutine.t TEST 19: user coroutine end with errors, and the parent coroutine gets the right status - Can't connect to 127.0.0.1:1984: Connection refused ==22046==
==22046== Process terminating with default action of signal 11 (SIGSEGV)
==22046== Access not within mapped region at address 0x0
==22046== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22046== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22046== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22046== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22046== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22046== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22046== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22046== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22046== by 0x8062D4E: main (nginx.c:382)
==22046== If you believe this happened as a result of a stack
==22046== overflow in your program's main thread (unlikely but
==22046== possible), you can try to increase the size of the
==22046== main thread stack using the --main-stacksize= flag.
==22046== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==22048== Invalid read of size 4
==22048== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22048== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22048== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22048== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22048== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22048== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22048== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22048== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22048== by 0x8062D4E: main (nginx.c:382)
==22048== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22048==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
091-coroutine.t TEST 20: entry coroutine is yielded by hand and still gets the right status - Can't connect to 127.0.0.1:1984: Connection refused ==22048==
==22048== Process terminating with default action of signal 11 (SIGSEGV)
==22048== Access not within mapped region at address 0x0
==22048== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22048== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22048== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22048== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22048== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22048== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22048== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22048== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22048== by 0x8062D4E: main (nginx.c:382)
==22048== If you believe this happened as a result of a stack
==22048== overflow in your program's main thread (unlikely but
==22048== possible), you can try to increase the size of the
==22048== main thread stack using the --main-stacksize= flag.
==22048== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==22050== Invalid read of size 4
==22050== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22050== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22050== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22050== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22050== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22050== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22050== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22050== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22050== by 0x8062D4E: main (nginx.c:382)
==22050== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22050==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
091-coroutine.t TEST 21: github issue #208: coroutine as iterator doesn't work - Can't connect to 127.0.0.1:1984: Connection refused ==22050==
==22050== Process terminating with default action of signal 11 (SIGSEGV)
==22050== Access not within mapped region at address 0x0
==22050== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22050== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22050== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22050== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22050== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22050== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22050== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22050== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22050== by 0x8062D4E: main (nginx.c:382)
==22050== If you believe this happened as a result of a stack
==22050== overflow in your program's main thread (unlikely but
==22050== possible), you can try to increase the size of the
==22050== main thread stack using the --main-stacksize= flag.
==22050== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==22052== Invalid read of size 4
==22052== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22052== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22052== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22052== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22052== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22052== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22052== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22052== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22052== by 0x8062D4E: main (nginx.c:382)
==22052== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22052==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
091-coroutine.t TEST 22: init_by_lua + our own coroutines in content_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==22052==
==22052== Process terminating with default action of signal 11 (SIGSEGV)
==22052== Access not within mapped region at address 0x0
==22052== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22052== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22052== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22052== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22052== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22052== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22052== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22052== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22052== by 0x8062D4E: main (nginx.c:382)
==22052== If you believe this happened as a result of a stack
==22052== overflow in your program's main thread (unlikely but
==22052== possible), you can try to increase the size of the
==22052== main thread stack using the --main-stacksize= flag.
==22052== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==22054== Invalid read of size 4
==22054== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22054== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22054== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22054== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22054== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22054== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22054== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22054== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22054== by 0x8062D4E: main (nginx.c:382)
==22054== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22054==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
091-coroutine.t TEST 23: init_by_lua_file + our own coroutines in content_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==22054==
==22054== Process terminating with default action of signal 11 (SIGSEGV)
==22054== Access not within mapped region at address 0x0
==22054== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22054== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22054== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22054== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22054== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22054== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22054== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22054== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22054== by 0x8062D4E: main (nginx.c:382)
==22054== If you believe this happened as a result of a stack
==22054== overflow in your program's main thread (unlikely but
==22054== possible), you can try to increase the size of the
==22054== main thread stack using the --main-stacksize= flag.
==22054== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==22056== Invalid read of size 4
==22056== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22056== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22056== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22056== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22056== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22056== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22056== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22056== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22056== by 0x8062D4E: main (nginx.c:382)
==22056== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22056==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
091-coroutine.t TEST 24: mixing coroutine.* API between init_by_lua and other contexts (github #304) - init_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==22056==
==22056== Process terminating with default action of signal 11 (SIGSEGV)
==22056== Access not within mapped region at address 0x0
==22056== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22056== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22056== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22056== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22056== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22056== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22056== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22056== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22056== by 0x8062D4E: main (nginx.c:382)
==22056== If you believe this happened as a result of a stack
==22056== overflow in your program's main thread (unlikely but
==22056== possible), you can try to increase the size of the
==22056== main thread stack using the --main-stacksize= flag.
==22056== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==22058== Invalid read of size 4
==22058== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22058== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22058== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22058== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22058== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22058== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22058== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22058== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22058== by 0x8062D4E: main (nginx.c:382)
==22058== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22058==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused ==22058==
==22058== Process terminating with default action of signal 11 (SIGSEGV)
==22058== Access not within mapped region at address 0x0
==22058== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22058== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22058== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22058== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22058== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22058== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22058== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22058== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22058== by 0x8062D4E: main (nginx.c:382)
==22058== If you believe this happened as a result of a stack
==22058== overflow in your program's main thread (unlikely but
==22058== possible), you can try to increase the size of the
==22058== main thread stack using the --main-stacksize= flag.
==22058== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==22060== Invalid read of size 4
==22060== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22060== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22060== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22060== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22060== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22060== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22060== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22060== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22060== by 0x8062D4E: main (nginx.c:382)
==22060== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22060==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
091-coroutine.t TEST 26: coroutine context collicisions - Can't connect to 127.0.0.1:1984: Connection refused ==22060==
==22060== Process terminating with default action of signal 11 (SIGSEGV)
==22060== Access not within mapped region at address 0x0
==22060== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22060== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22060== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22060== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22060== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22060== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22060== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22060== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22060== by 0x8062D4E: main (nginx.c:382)
==22060== If you believe this happened as a result of a stack
==22060== overflow in your program's main thread (unlikely but
==22060== possible), you can try to increase the size of the
==22060== main thread stack using the --main-stacksize= flag.
==22060== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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" - Can't connect to 127.0.0.1:1984: Connection refused ==22062== Invalid read of size 4
==22062== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22062== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22062== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22062== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22062== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22062== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22062== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22062== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22062== by 0x8062D4E: main (nginx.c:382)
==22062== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22062==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
091-coroutine.t TEST 27: require "coroutine" - Can't connect to 127.0.0.1:1984: Connection refused ==22062==
==22062== Process terminating with default action of signal 11 (SIGSEGV)
==22062== Access not within mapped region at address 0x0
==22062== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22062== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22062== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22062== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22062== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22062== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22062== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22062== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22062== by 0x8062D4E: main (nginx.c:382)
==22062== If you believe this happened as a result of a stack
==22062== overflow in your program's main thread (unlikely but
==22062== possible), you can try to increase the size of the
==22062== main thread stack using the --main-stacksize= flag.
==22062== 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" - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==22064== Invalid read of size 4
==22064== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22064== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22064== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22064== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22064== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22064== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22064== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22064== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22064== by 0x8062D4E: main (nginx.c:382)
==22064== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22064==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
091-coroutine.t TEST 28: coroutine.wrap propagates errors to parent coroutine - Can't connect to 127.0.0.1:1984: Connection refused ==22064==
==22064== Process terminating with default action of signal 11 (SIGSEGV)
==22064== Access not within mapped region at address 0x0
==22064== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22064== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22064== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22064== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22064== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22064== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22064== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22064== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22064== by 0x8062D4E: main (nginx.c:382)
==22064== If you believe this happened as a result of a stack
==22064== overflow in your program's main thread (unlikely but
==22064== possible), you can try to increase the size of the
==22064== main thread stack using the --main-stacksize= flag.
==22064== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - pattern "(?^:\[notice\] .*? in wrapped coroutine)" should match a line in error.log (req 1)
091-coroutine.t TEST 28: coroutine.wrap propagates errors to parent coroutine - pattern "(?^:\[error\] .*? lua entry thread aborted: runtime error: content_by_lua\(nginx\.conf:\d+\):\d+: something went wrong)" should match a line in error.log (req 1)
091-coroutine.t TEST 28: coroutine.wrap propagates errors to parent coroutine - pattern "stack traceback:" should match a line in error.log (req 1)
091-coroutine.t TEST 28: coroutine.wrap propagates errors to parent coroutine - pattern "coroutine 0:" should match a line in error.log (req 1)
091-coroutine.t TEST 28: coroutine.wrap propagates errors to parent coroutine - pattern "coroutine 1:" should match a line in error.log (req 1)
091-coroutine.t TEST 29: coroutine.wrap propagates nested errors to parent coroutine - Can't connect to 127.0.0.1:1984: Connection refused ==22066== Invalid read of size 4
==22066== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22066== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22066== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22066== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22066== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22066== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22066== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22066== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22066== by 0x8062D4E: main (nginx.c:382)
==22066== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22066==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
091-coroutine.t TEST 29: coroutine.wrap propagates nested errors to parent coroutine - Can't connect to 127.0.0.1:1984: Connection refused ==22066==
==22066== Process terminating with default action of signal 11 (SIGSEGV)
==22066== Access not within mapped region at address 0x0
==22066== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22066== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22066== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22066== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22066== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22066== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22066== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22066== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22066== by 0x8062D4E: main (nginx.c:382)
==22066== If you believe this happened as a result of a stack
==22066== overflow in your program's main thread (unlikely but
==22066== possible), you can try to increase the size of the
==22066== main thread stack using the --main-stacksize= flag.
==22066== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - pattern "(?^:\[error\] .*? lua entry thread aborted: runtime error: content_by_lua\(nginx\.conf:\d+\):\d+: something went wrong in co1)" should match a line in error.log (req 1)
091-coroutine.t TEST 29: coroutine.wrap propagates nested errors to parent coroutine - pattern "stack traceback:" should match a line in error.log (req 1)
091-coroutine.t TEST 29: coroutine.wrap propagates nested errors to parent coroutine - pattern "coroutine 0:" should match a line in error.log (req 1)
091-coroutine.t TEST 29: coroutine.wrap propagates nested errors to parent coroutine - pattern "coroutine 1:" should match a line in error.log (req 1)
091-coroutine.t TEST 29: coroutine.wrap propagates nested errors to parent coroutine - pattern "coroutine 2:" should match a line in error.log (req 1)
091-coroutine.t TEST 30: coroutine.wrap propagates nested errors with stack level to parent coroutine - Can't connect to 127.0.0.1:1984: Connection refused ==22068== Invalid read of size 4
==22068== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22068== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22068== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22068== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22068== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22068== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22068== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22068== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22068== by 0x8062D4E: main (nginx.c:382)
==22068== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22068==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
091-coroutine.t TEST 30: coroutine.wrap propagates nested errors with stack level to parent coroutine - Can't connect to 127.0.0.1:1984: Connection refused ==22068==
==22068== Process terminating with default action of signal 11 (SIGSEGV)
==22068== Access not within mapped region at address 0x0
==22068== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22068== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22068== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22068== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22068== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22068== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22068== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22068== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22068== by 0x8062D4E: main (nginx.c:382)
==22068== If you believe this happened as a result of a stack
==22068== overflow in your program's main thread (unlikely but
==22068== possible), you can try to increase the size of the
==22068== main thread stack using the --main-stacksize= flag.
==22068== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - pattern "(?^:\[error\] .*? lua entry thread aborted: runtime error: something went wrong in co1)" should match a line in error.log (req 1)
091-coroutine.t TEST 30: coroutine.wrap propagates nested errors with stack level to parent coroutine - pattern "stack traceback:" should match a line in error.log (req 1)
091-coroutine.t TEST 30: coroutine.wrap propagates nested errors with stack level to parent coroutine - pattern "coroutine 0:" should match a line in error.log (req 1)
091-coroutine.t TEST 30: coroutine.wrap propagates nested errors with stack level to parent coroutine - pattern "coroutine 1:" should match a line in error.log (req 1)
091-coroutine.t TEST 30: coroutine.wrap propagates nested errors with stack level to parent coroutine - pattern "coroutine 2:" should match a line in error.log (req 1)
091-coroutine.t TEST 31: coroutine.wrap runtime errors do not log errors - Can't connect to 127.0.0.1:1984: Connection refused ==22070== Invalid read of size 4
==22070== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22070== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22070== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22070== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22070== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22070== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22070== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22070== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22070== by 0x8062D4E: main (nginx.c:382)
==22070== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22070==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
091-coroutine.t TEST 31: coroutine.wrap runtime errors do not log errors - Can't connect to 127.0.0.1:1984: Connection refused ==22070==
==22070== Process terminating with default action of signal 11 (SIGSEGV)
==22070== Access not within mapped region at address 0x0
==22070== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22070== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22070== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22070== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22070== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22070== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22070== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22070== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22070== by 0x8062D4E: main (nginx.c:382)
==22070== If you believe this happened as a result of a stack
==22070== overflow in your program's main thread (unlikely but
==22070== possible), you can try to increase the size of the
==22070== main thread stack using the --main-stacksize= flag.
==22070== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
091-coroutine.t TEST 31: coroutine.wrap runtime errors do not log errors - status code ok got: ''
expected: '200'
091-coroutine.t TEST 32: coroutine.wrap does not return status boolean on yield - Can't connect to 127.0.0.1:1984: Connection refused ==22072== Invalid read of size 4
==22072== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22072== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22072== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22072== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22072== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22072== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22072== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22072== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22072== by 0x8062D4E: main (nginx.c:382)
==22072== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22072==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
091-coroutine.t TEST 32: coroutine.wrap does not return status boolean on yield - Can't connect to 127.0.0.1:1984: Connection refused ==22072==
==22072== Process terminating with default action of signal 11 (SIGSEGV)
==22072== Access not within mapped region at address 0x0
==22072== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22072== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22072== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22072== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22072== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22072== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22072== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22072== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22072== by 0x8062D4E: main (nginx.c:382)
==22072== If you believe this happened as a result of a stack
==22072== overflow in your program's main thread (unlikely but
==22072== possible), you can try to increase the size of the
==22072== main thread stack using the --main-stacksize= flag.
==22072== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==22074== Invalid read of size 4
==22074== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22074== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22074== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22074== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22074== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22074== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22074== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22074== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22074== by 0x8062D4E: main (nginx.c:382)
==22074== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22074==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
091-coroutine.t TEST 33: coroutine.wrap does not return status boolean on done - Can't connect to 127.0.0.1:1984: Connection refused ==22074==
==22074== Process terminating with default action of signal 11 (SIGSEGV)
==22074== Access not within mapped region at address 0x0
==22074== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22074== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22074== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22074== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22074== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22074== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22074== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22074== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22074== by 0x8062D4E: main (nginx.c:382)
==22074== If you believe this happened as a result of a stack
==22074== overflow in your program's main thread (unlikely but
==22074== possible), you can try to increase the size of the
==22074== main thread stack using the --main-stacksize= flag.
==22074== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 35: coroutine.wrap creates different function refs - Can't connect to 127.0.0.1:1984: Connection refused ==22076== Invalid read of size 4
==22076== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22076== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22076== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22076== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22076== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22076== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22076== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22076== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22076== by 0x8062D4E: main (nginx.c:382)
==22076== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22076==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
091-coroutine.t TEST 35: coroutine.wrap creates different function refs - Can't connect to 127.0.0.1:1984: Connection refused ==22076==
==22076== Process terminating with default action of signal 11 (SIGSEGV)
==22076== Access not within mapped region at address 0x0
==22076== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22076== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22076== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22076== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22076== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22076== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22076== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22076== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22076== by 0x8062D4E: main (nginx.c:382)
==22076== If you believe this happened as a result of a stack
==22076== overflow in your program's main thread (unlikely but
==22076== possible), you can try to increase the size of the
==22076== main thread stack using the --main-stacksize= flag.
==22076== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 36: coroutine.wrap supports yielding and resuming - Can't connect to 127.0.0.1:1984: Connection refused ==22078== Invalid read of size 4
==22078== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22078== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22078== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22078== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22078== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22078== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22078== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22078== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22078== by 0x8062D4E: main (nginx.c:382)
==22078== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22078==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
091-coroutine.t TEST 36: coroutine.wrap supports yielding and resuming - Can't connect to 127.0.0.1:1984: Connection refused ==22078==
==22078== Process terminating with default action of signal 11 (SIGSEGV)
==22078== Access not within mapped region at address 0x0
==22078== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22078== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22078== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22078== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22078== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22078== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22078== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22078== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22078== by 0x8062D4E: main (nginx.c:382)
==22078== If you believe this happened as a result of a stack
==22078== overflow in your program's main thread (unlikely but
==22078== possible), you can try to increase the size of the
==22078== main thread stack using the --main-stacksize= flag.
==22078== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22080== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
091-coroutine.t TEST 37: coroutine.wrap return values - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22080== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==22082== Invalid read of size 4
==22082== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22082== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22082== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22082== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22082== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22082== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22082== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22082== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22082== by 0x8062D4E: main (nginx.c:382)
==22082== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22082==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
091-coroutine.t TEST 38: coroutine.wrap arguments - Can't connect to 127.0.0.1:1984: Connection refused ==22082==
==22082== Process terminating with default action of signal 11 (SIGSEGV)
==22082== Access not within mapped region at address 0x0
==22082== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22082== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22082== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22082== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22082== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22082== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22082== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22082== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22082== by 0x8062D4E: main (nginx.c:382)
==22082== If you believe this happened as a result of a stack
==22082== overflow in your program's main thread (unlikely but
==22082== possible), you can try to increase the size of the
==22082== main thread stack using the --main-stacksize= flag.
==22082== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 ==22088== Invalid read of size 4
==22088== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22088== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22088== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22088== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22088== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22088== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22088== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22088== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22088== by 0x8062D4E: main (nginx.c:382)
==22088== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22088==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==22088==
==22088== Process terminating with default action of signal 11 (SIGSEGV)
==22088== Access not within mapped region at address 0x0
==22088== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22088== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22088== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22088== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22088== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22088== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22088== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22088== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22088== by 0x8062D4E: main (nginx.c:382)
==22088== If you believe this happened as a result of a stack
==22088== overflow in your program's main thread (unlikely but
==22088== possible), you can try to increase the size of the
==22088== main thread stack using the --main-stacksize= flag.
==22088== 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 (aborted) '
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 4: two simple user threads with sleep - Can't connect to 127.0.0.1:1984: Connection refused ==22093== Invalid read of size 4
==22093== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22093== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22093== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22093== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22093== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22093== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22093== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22093== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22093== by 0x8062D4E: main (nginx.c:382)
==22093== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22093==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
093-uthread-spawn.t TEST 4: two simple user threads with sleep - Can't connect to 127.0.0.1:1984: Connection refused ==22093==
==22093== Process terminating with default action of signal 11 (SIGSEGV)
==22093== Access not within mapped region at address 0x0
==22093== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22093== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22093== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22093== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22093== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22093== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22093== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22093== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22093== by 0x8062D4E: main (nginx.c:382)
==22093== If you believe this happened as a result of a stack
==22093== overflow in your program's main thread (unlikely but
==22093== possible), you can try to increase the size of the
==22093== main thread stack using the --main-stacksize= flag.
==22093== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 16: user threads + ngx.socket.tcp - Can't connect to 127.0.0.1:1984: Connection refused ==22095== Invalid read of size 4
==22095== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22095== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22095== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22095== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22095== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22095== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22095== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22095== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22095== by 0x8062D4E: main (nginx.c:382)
==22095== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22095==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
093-uthread-spawn.t TEST 16: user threads + ngx.socket.tcp - Can't connect to 127.0.0.1:1984: Connection refused ==22095==
==22095== Process terminating with default action of signal 11 (SIGSEGV)
==22095== Access not within mapped region at address 0x0
==22095== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22095== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22095== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22095== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22095== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22095== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22095== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22095== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22095== by 0x8062D4E: main (nginx.c:382)
==22095== If you believe this happened as a result of a stack
==22095== overflow in your program's main thread (unlikely but
==22095== possible), you can try to increase the size of the
==22095== main thread stack using the --main-stacksize= flag.
==22095== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 14: entry thread and a user thread flushing at the same time - Can't connect to 127.0.0.1:1984: Connection refused ==22097== Invalid read of size 4
==22097== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22097== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22097== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22097== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22097== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22097== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22097== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22097== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22097== by 0x8062D4E: main (nginx.c:382)
==22097== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22097==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
093-uthread-spawn.t TEST 14: entry thread and a user thread flushing at the same time - Can't connect to 127.0.0.1:1984: Connection refused ==22097==
==22097== Process terminating with default action of signal 11 (SIGSEGV)
==22097== Access not within mapped region at address 0x0
==22097== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22097== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22097== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22097== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22097== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22097== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22097== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22097== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22097== by 0x8062D4E: main (nginx.c:382)
==22097== If you believe this happened as a result of a stack
==22097== overflow in your program's main thread (unlikely but
==22097== possible), you can try to increase the size of the
==22097== main thread stack using the --main-stacksize= flag.
==22097== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 6: nested user threads - Can't connect to 127.0.0.1:1984: Connection refused ==22099== Invalid read of size 4
==22099== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22099== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22099== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22099== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22099== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22099== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22099== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22099== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22099== by 0x8062D4E: main (nginx.c:382)
==22099== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22099==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
093-uthread-spawn.t TEST 6: nested user threads - Can't connect to 127.0.0.1:1984: Connection refused ==22099==
==22099== Process terminating with default action of signal 11 (SIGSEGV)
==22099== Access not within mapped region at address 0x0
==22099== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22099== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22099== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22099== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22099== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22099== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22099== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22099== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22099== by 0x8062D4E: main (nginx.c:382)
==22099== If you believe this happened as a result of a stack
==22099== overflow in your program's main thread (unlikely but
==22099== possible), you can try to increase the size of the
==22099== main thread stack using the --main-stacksize= flag.
==22099== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: simple user thread without I/O - Can't connect to 127.0.0.1:1984: Connection refused ==22101== Invalid read of size 4
==22101== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22101== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22101== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22101== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22101== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22101== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22101== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22101== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22101== by 0x8062D4E: main (nginx.c:382)
==22101== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22101==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
093-uthread-spawn.t TEST 1: simple user thread without I/O - Can't connect to 127.0.0.1:1984: Connection refused ==22101==
==22101== Process terminating with default action of signal 11 (SIGSEGV)
==22101== Access not within mapped region at address 0x0
==22101== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22101== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22101== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22101== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22101== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22101== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22101== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22101== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22101== by 0x8062D4E: main (nginx.c:382)
==22101== If you believe this happened as a result of a stack
==22101== overflow in your program's main thread (unlikely but
==22101== possible), you can try to increase the size of the
==22101== main thread stack using the --main-stacksize= flag.
==22101== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 15: two user threads flushing at the same time - Can't connect to 127.0.0.1:1984: Connection refused ==22103== Invalid read of size 4
==22103== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22103== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22103== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22103== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22103== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22103== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22103== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22103== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22103== by 0x8062D4E: main (nginx.c:382)
==22103== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22103==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
093-uthread-spawn.t TEST 15: two user threads flushing at the same time - Can't connect to 127.0.0.1:1984: Connection refused ==22103==
==22103== Process terminating with default action of signal 11 (SIGSEGV)
==22103== Access not within mapped region at address 0x0
==22103== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22103== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22103== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22103== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22103== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22103== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22103== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22103== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22103== by 0x8062D4E: main (nginx.c:382)
==22103== If you believe this happened as a result of a stack
==22103== overflow in your program's main thread (unlikely but
==22103== possible), you can try to increase the size of the
==22103== main thread stack using the --main-stacksize= flag.
==22103== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 18: simple user thread with ngx.req.socket() - Can't connect to 127.0.0.1:1984: Connection refused ==22105== Invalid read of size 4
==22105== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22105== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22105== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22105== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22105== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22105== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22105== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22105== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22105== by 0x8062D4E: main (nginx.c:382)
==22105== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22105==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
093-uthread-spawn.t TEST 18: simple user thread with ngx.req.socket() - Can't connect to 127.0.0.1:1984: Connection refused ==22105==
==22105== Process terminating with default action of signal 11 (SIGSEGV)
==22105== Access not within mapped region at address 0x0
==22105== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22105== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22105== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22105== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22105== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22105== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22105== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22105== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22105== by 0x8062D4E: main (nginx.c:382)
==22105== If you believe this happened as a result of a stack
==22105== overflow in your program's main thread (unlikely but
==22105== possible), you can try to increase the size of the
==22105== main thread stack using the --main-stacksize= flag.
==22105== 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() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 8: coroutine status of a running user thread - Can't connect to 127.0.0.1:1984: Connection refused ==22107== Invalid read of size 4
==22107== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22107== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22107== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22107== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22107== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22107== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22107== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22107== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22107== by 0x8062D4E: main (nginx.c:382)
==22107== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22107==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
093-uthread-spawn.t TEST 8: coroutine status of a running user thread - Can't connect to 127.0.0.1:1984: Connection refused ==22107==
==22107== Process terminating with default action of signal 11 (SIGSEGV)
==22107== Access not within mapped region at address 0x0
==22107== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22107== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22107== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22107== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22107== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22107== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22107== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22107== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22107== by 0x8062D4E: main (nginx.c:382)
==22107== If you believe this happened as a result of a stack
==22107== overflow in your program's main thread (unlikely but
==22107== possible), you can try to increase the size of the
==22107== main thread stack using the --main-stacksize= flag.
==22107== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 19: simple user thread with args - Can't connect to 127.0.0.1:1984: Connection refused ==22109== Invalid read of size 4
==22109== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22109== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22109== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22109== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22109== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22109== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22109== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22109== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22109== by 0x8062D4E: main (nginx.c:382)
==22109== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22109==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
093-uthread-spawn.t TEST 19: simple user thread with args - Can't connect to 127.0.0.1:1984: Connection refused ==22109==
==22109== Process terminating with default action of signal 11 (SIGSEGV)
==22109== Access not within mapped region at address 0x0
==22109== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22109== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22109== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22109== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22109== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22109== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22109== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22109== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22109== by 0x8062D4E: main (nginx.c:382)
==22109== If you believe this happened as a result of a stack
==22109== overflow in your program's main thread (unlikely but
==22109== possible), you can try to increase the size of the
==22109== main thread stack using the --main-stacksize= flag.
==22109== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 5: error in user thread - Can't connect to 127.0.0.1:1984: Connection refused ==22111== Invalid read of size 4
==22111== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22111== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22111== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22111== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22111== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22111== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22111== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22111== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22111== by 0x8062D4E: main (nginx.c:382)
==22111== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22111==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
093-uthread-spawn.t TEST 5: error in user thread - Can't connect to 127.0.0.1:1984: Connection refused ==22111==
==22111== Process terminating with default action of signal 11 (SIGSEGV)
==22111== Access not within mapped region at address 0x0
==22111== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22111== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22111== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22111== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22111== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22111== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22111== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22111== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22111== by 0x8062D4E: main (nginx.c:382)
==22111== If you believe this happened as a result of a stack
==22111== overflow in your program's main thread (unlikely but
==22111== possible), you can try to increase the size of the
==22111== main thread stack using the --main-stacksize= flag.
==22111== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 5: error in user thread - pattern "(?^:stream lua user thread aborted: runtime error: content_by_lua\(nginx\.conf:\d+\):3: attempt to call field 'blah' \(a nil value\))" should match a line in error.log (req 1)
093-uthread-spawn.t TEST 3: simple user thread with sleep - Can't connect to 127.0.0.1:1984: Connection refused ==22113== Invalid read of size 4
==22113== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22113== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22113== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22113== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22113== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22113== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22113== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22113== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22113== by 0x8062D4E: main (nginx.c:382)
==22113== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22113==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
093-uthread-spawn.t TEST 3: simple user thread with sleep - Can't connect to 127.0.0.1:1984: Connection refused ==22113==
==22113== Process terminating with default action of signal 11 (SIGSEGV)
==22113== Access not within mapped region at address 0x0
==22113== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22113== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22113== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22113== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22113== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22113== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22113== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22113== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22113== by 0x8062D4E: main (nginx.c:382)
==22113== If you believe this happened as a result of a stack
==22113== overflow in your program's main thread (unlikely but
==22113== possible), you can try to increase the size of the
==22113== main thread stack using the --main-stacksize= flag.
==22113== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
093-uthread-spawn.t TEST 13: manual time slicing between two user threads - Can't connect to 127.0.0.1:1984: Connection refused ==22115== Invalid read of size 4
==22115== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22115== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22115== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22115== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22115== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22115== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22115== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22115== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22115== by 0x8062D4E: main (nginx.c:382)
==22115== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22115==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
093-uthread-spawn.t TEST 13: manual time slicing between two user threads - Can't connect to 127.0.0.1:1984: Connection refused ==22115==
==22115== Process terminating with default action of signal 11 (SIGSEGV)
==22115== Access not within mapped region at address 0x0
==22115== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22115== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22115== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22115== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22115== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22115== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22115== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22115== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22115== by 0x8062D4E: main (nginx.c:382)
==22115== If you believe this happened as a result of a stack
==22115== overflow in your program's main thread (unlikely but
==22115== possible), you can try to increase the size of the
==22115== main thread stack using the --main-stacksize= flag.
==22115== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 9: coroutine status of a dead user thread - Can't connect to 127.0.0.1:1984: Connection refused ==22117== Invalid read of size 4
==22117== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22117== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22117== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22117== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22117== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22117== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22117== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22117== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22117== by 0x8062D4E: main (nginx.c:382)
==22117== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22117==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
093-uthread-spawn.t TEST 9: coroutine status of a dead user thread - Can't connect to 127.0.0.1:1984: Connection refused ==22117==
==22117== Process terminating with default action of signal 11 (SIGSEGV)
==22117== Access not within mapped region at address 0x0
==22117== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22117== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22117== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22117== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22117== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22117== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22117== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22117== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22117== by 0x8062D4E: main (nginx.c:382)
==22117== If you believe this happened as a result of a stack
==22117== overflow in your program's main thread (unlikely but
==22117== possible), you can try to increase the size of the
==22117== main thread stack using the --main-stacksize= flag.
==22117== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 7: nested user threads (with I/O) - Can't connect to 127.0.0.1:1984: Connection refused ==22119== Invalid read of size 4
==22119== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22119== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22119== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22119== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22119== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22119== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22119== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22119== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22119== by 0x8062D4E: main (nginx.c:382)
==22119== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22119==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
093-uthread-spawn.t TEST 7: nested user threads (with I/O) - Can't connect to 127.0.0.1:1984: Connection refused ==22119==
==22119== Process terminating with default action of signal 11 (SIGSEGV)
==22119== Access not within mapped region at address 0x0
==22119== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22119== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22119== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22119== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22119== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22119== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22119== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22119== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22119== by 0x8062D4E: main (nginx.c:382)
==22119== If you believe this happened as a result of a stack
==22119== overflow in your program's main thread (unlikely but
==22119== possible), you can try to increase the size of the
==22119== main thread stack using the --main-stacksize= flag.
==22119== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 11: creating user threads in a user coroutine - Can't connect to 127.0.0.1:1984: Connection refused ==22121== Invalid read of size 4
==22121== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22121== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22121== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22121== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22121== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22121== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22121== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22121== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22121== by 0x8062D4E: main (nginx.c:382)
==22121== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22121==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
093-uthread-spawn.t TEST 11: creating user threads in a user coroutine - Can't connect to 127.0.0.1:1984: Connection refused ==22121==
==22121== Process terminating with default action of signal 11 (SIGSEGV)
==22121== Access not within mapped region at address 0x0
==22121== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22121== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22121== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22121== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22121== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22121== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22121== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22121== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22121== by 0x8062D4E: main (nginx.c:382)
==22121== If you believe this happened as a result of a stack
==22121== overflow in your program's main thread (unlikely but
==22121== possible), you can try to increase the size of the
==22121== main thread stack using the --main-stacksize= flag.
==22121== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 10: coroutine status of a "normal" user thread - Can't connect to 127.0.0.1:1984: Connection refused ==22123== Invalid read of size 4
==22123== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22123== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22123== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22123== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22123== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22123== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22123== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22123== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22123== by 0x8062D4E: main (nginx.c:382)
==22123== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22123==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
093-uthread-spawn.t TEST 10: coroutine status of a "normal" user thread - Can't connect to 127.0.0.1:1984: Connection refused ==22123==
==22123== Process terminating with default action of signal 11 (SIGSEGV)
==22123== Access not within mapped region at address 0x0
==22123== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22123== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22123== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22123== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22123== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22123== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22123== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22123== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22123== by 0x8062D4E: main (nginx.c:382)
==22123== If you believe this happened as a result of a stack
==22123== overflow in your program's main thread (unlikely but
==22123== possible), you can try to increase the size of the
==22123== main thread stack using the --main-stacksize= flag.
==22123== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 12: manual time slicing between a user thread and the entry thread - Can't connect to 127.0.0.1:1984: Connection refused ==22125== Invalid read of size 4
==22125== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22125== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22125== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22125== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22125== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22125== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22125== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22125== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22125== by 0x8062D4E: main (nginx.c:382)
==22125== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22125==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
093-uthread-spawn.t TEST 12: manual time slicing between a user thread and the entry thread - Can't connect to 127.0.0.1:1984: Connection refused ==22125==
==22125== Process terminating with default action of signal 11 (SIGSEGV)
==22125== Access not within mapped region at address 0x0
==22125== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22125== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22125== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22125== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22125== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22125== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22125== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22125== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22125== by 0x8062D4E: main (nginx.c:382)
==22125== If you believe this happened as a result of a stack
==22125== overflow in your program's main thread (unlikely but
==22125== possible), you can try to increase the size of the
==22125== main thread stack using the --main-stacksize= flag.
==22125== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 20: simple user thread without I/O - Can't connect to 127.0.0.1:1984: Connection refused ==22127== Invalid read of size 4
==22127== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22127== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22127== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22127== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22127== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22127== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22127== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22127== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22127== by 0x8062D4E: main (nginx.c:382)
==22127== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22127==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
093-uthread-spawn.t TEST 20: simple user thread without I/O - Can't connect to 127.0.0.1:1984: Connection refused ==22127==
==22127== Process terminating with default action of signal 11 (SIGSEGV)
==22127== Access not within mapped region at address 0x0
==22127== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22127== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22127== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22127== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22127== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22127== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22127== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22127== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22127== by 0x8062D4E: main (nginx.c:382)
==22127== If you believe this happened as a result of a stack
==22127== overflow in your program's main thread (unlikely but
==22127== possible), you can try to increase the size of the
==22127== main thread stack using the --main-stacksize= flag.
==22127== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 17: user threads + ngx.socket.udp - Can't connect to 127.0.0.1:1984: Connection refused ==22129== Invalid read of size 4
==22129== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22129== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22129== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22129== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22129== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22129== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22129== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22129== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22129== by 0x8062D4E: main (nginx.c:382)
==22129== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22129==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==22129==
==22129== Process terminating with default action of signal 11 (SIGSEGV)
==22129== Access not within mapped region at address 0x0
==22129== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22129== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22129== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22129== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22129== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22129== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22129== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22129== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22129== by 0x8062D4E: main (nginx.c:382)
==22129== If you believe this happened as a result of a stack
==22129== overflow in your program's main thread (unlikely but
==22129== possible), you can try to increase the size of the
==22129== main thread stack using the --main-stacksize= flag.
==22129== 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 (aborted) '
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 - udp_query ok got: ''
expected: 'blah'
093-uthread-spawn.t TEST 2: two simple user threads without I/O - Can't connect to 127.0.0.1:1984: Connection refused ==22134== Invalid read of size 4
==22134== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22134== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22134== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22134== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22134== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22134== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22134== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22134== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22134== by 0x8062D4E: main (nginx.c:382)
==22134== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22134==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
093-uthread-spawn.t TEST 2: two simple user threads without I/O - Can't connect to 127.0.0.1:1984: Connection refused ==22134==
==22134== Process terminating with default action of signal 11 (SIGSEGV)
==22134== Access not within mapped region at address 0x0
==22134== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22134== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22134== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22134== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22134== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22134== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22134== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22134== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22134== by 0x8062D4E: main (nginx.c:382)
==22134== If you believe this happened as a result of a stack
==22134== overflow in your program's main thread (unlikely but
==22134== possible), you can try to increase the size of the
==22134== main thread stack using the --main-stacksize= flag.
==22134== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
094-uthread-exit.t TEST 10: exit in user thread (entry thread is still pending on udpsock:receive) - Can't connect to 127.0.0.1:1984: Connection refused ==22139== Invalid read of size 4
==22139== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22139== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22139== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22139== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22139== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22139== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22139== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22139== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22139== by 0x8062D4E: main (nginx.c:382)
==22139== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22139==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
094-uthread-exit.t TEST 10: exit in user thread (entry thread is still pending on udpsock:receive) - Can't connect to 127.0.0.1:1984: Connection refused ==22139==
==22139== Process terminating with default action of signal 11 (SIGSEGV)
==22139== Access not within mapped region at address 0x0
==22139== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22139== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22139== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22139== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22139== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22139== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22139== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22139== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22139== by 0x8062D4E: main (nginx.c:382)
==22139== If you believe this happened as a result of a stack
==22139== overflow in your program's main thread (unlikely but
==22139== possible), you can try to increase the size of the
==22139== main thread stack using the --main-stacksize= flag.
==22139== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 5: exit in user thread (entry thread is still pending on the DNS resolver for ngx.socket.tcp) - Can't connect to 127.0.0.1:1984: Connection refused ==22141== Invalid read of size 4
==22141== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22141== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22141== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22141== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22141== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22141== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22141== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22141== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22141== by 0x8062D4E: main (nginx.c:382)
==22141== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22141==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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) - Can't connect to 127.0.0.1:1984: Connection refused ==22141==
==22141== Process terminating with default action of signal 11 (SIGSEGV)
==22141== Access not within mapped region at address 0x0
==22141== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22141== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22141== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22141== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22141== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22141== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22141== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22141== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22141== by 0x8062D4E: main (nginx.c:382)
==22141== If you believe this happened as a result of a stack
==22141== overflow in your program's main thread (unlikely but
==22141== possible), you can try to increase the size of the
==22141== main thread stack using the --main-stacksize= flag.
==22141== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 6: exit in user thread (entry thread is still pending on the DNS resolver for ngx.socket.udp) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22143== by 0x8062D4E: main (nginx.c:382)
==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_single_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) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22143== by 0x8062D4E: main (nginx.c:382)
==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.

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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 7: exit in user thread (entry thread is still pending on tcpsock:connect) - Can't connect to 127.0.0.1:1984: Connection refused ==22145== Invalid read of size 4
==22145== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22145== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22145== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22145== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22145== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22145== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22145== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22145== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22145== by 0x8062D4E: main (nginx.c:382)
==22145== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22145==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
094-uthread-exit.t TEST 7: exit in user thread (entry thread is still pending on tcpsock:connect) - Can't connect to 127.0.0.1:1984: Connection refused ==22145==
==22145== Process terminating with default action of signal 11 (SIGSEGV)
==22145== Access not within mapped region at address 0x0
==22145== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22145== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22145== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22145== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22145== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22145== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22145== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22145== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22145== by 0x8062D4E: main (nginx.c:382)
==22145== If you believe this happened as a result of a stack
==22145== overflow in your program's main thread (unlikely but
==22145== possible), you can try to increase the size of the
==22145== main thread stack using the --main-stacksize= flag.
==22145== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 11: exit in user thread (entry thread is still pending on reqsock:receive) - Can't connect to 127.0.0.1:1984: Connection refused ==22147== Invalid read of size 4
==22147== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22147== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22147== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22147== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22147== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22147== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22147== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22147== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22147== by 0x8062D4E: main (nginx.c:382)
==22147== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22147==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
094-uthread-exit.t TEST 11: exit in user thread (entry thread is still pending on reqsock:receive) - Can't connect to 127.0.0.1:1984: Connection refused ==22147==
==22147== Process terminating with default action of signal 11 (SIGSEGV)
==22147== Access not within mapped region at address 0x0
==22147== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22147== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22147== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22147== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22147== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22147== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22147== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22147== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22147== by 0x8062D4E: main (nginx.c:382)
==22147== If you believe this happened as a result of a stack
==22147== overflow in your program's main thread (unlikely but
==22147== possible), you can try to increase the size of the
==22147== main thread stack using the --main-stacksize= flag.
==22147== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 4: exit in user thread (entry already quits) - Can't connect to 127.0.0.1:1984: Connection refused ==22149== Invalid read of size 4
==22149== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22149== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22149== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22149== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22149== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22149== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22149== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22149== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22149== by 0x8062D4E: main (nginx.c:382)
==22149== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22149==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
094-uthread-exit.t TEST 4: exit in user thread (entry already quits) - Can't connect to 127.0.0.1:1984: Connection refused ==22149==
==22149== Process terminating with default action of signal 11 (SIGSEGV)
==22149== Access not within mapped region at address 0x0
==22149== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22149== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22149== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22149== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22149== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22149== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22149== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22149== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22149== by 0x8062D4E: main (nginx.c:382)
==22149== If you believe this happened as a result of a stack
==22149== overflow in your program's main thread (unlikely but
==22149== possible), you can try to increase the size of the
==22149== main thread stack using the --main-stacksize= flag.
==22149== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
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 ==22151== Invalid read of size 4
==22151== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22151== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22151== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22151== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22151== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22151== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22151== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22151== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22151== by 0x8062D4E: main (nginx.c:382)
==22151== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22151==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==22151==
==22151== Process terminating with default action of signal 11 (SIGSEGV)
==22151== Access not within mapped region at address 0x0
==22151== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22151== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22151== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22151== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22151== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22151== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22151== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22151== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22151== by 0x8062D4E: main (nginx.c:382)
==22151== If you believe this happened as a result of a stack
==22151== overflow in your program's main thread (unlikely but
==22151== possible), you can try to increase the size of the
==22151== main thread stack using the --main-stacksize= flag.
==22151== 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 (aborted) '
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 9: exit in user thread (entry thread is still pending on tcpsock:receiveuntil's iterator) - Can't connect to 127.0.0.1:1984: Connection refused ==22153== Invalid read of size 4
==22153== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22153== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22153== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22153== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22153== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22153== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22153== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22153== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22153== by 0x8062D4E: main (nginx.c:382)
==22153== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22153==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
094-uthread-exit.t TEST 9: exit in user thread (entry thread is still pending on tcpsock:receiveuntil's iterator) - Can't connect to 127.0.0.1:1984: Connection refused ==22153==
==22153== Process terminating with default action of signal 11 (SIGSEGV)
==22153== Access not within mapped region at address 0x0
==22153== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22153== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22153== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22153== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22153== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22153== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22153== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22153== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22153== by 0x8062D4E: main (nginx.c:382)
==22153== If you believe this happened as a result of a stack
==22153== overflow in your program's main thread (unlikely but
==22153== possible), you can try to increase the size of the
==22153== main thread stack using the --main-stacksize= flag.
==22153== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: exit in user thread (entry thread is still pending to run) - Can't connect to 127.0.0.1:1984: Connection refused ==22155== Invalid read of size 4
==22155== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22155== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22155== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22155== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22155== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22155== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22155== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22155== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22155== by 0x8062D4E: main (nginx.c:382)
==22155== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22155==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
094-uthread-exit.t TEST 1: exit in user thread (entry thread is still pending to run) - Can't connect to 127.0.0.1:1984: Connection refused ==22155==
==22155== Process terminating with default action of signal 11 (SIGSEGV)
==22155== Access not within mapped region at address 0x0
==22155== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22155== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22155== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22155== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22155== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22155== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22155== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22155== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22155== by 0x8062D4E: main (nginx.c:382)
==22155== If you believe this happened as a result of a stack
==22155== overflow in your program's main thread (unlikely but
==22155== possible), you can try to increase the size of the
==22155== main thread stack using the --main-stacksize= flag.
==22155== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused ==22157== Invalid read of size 4
==22157== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22157== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22157== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22157== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22157== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22157== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22157== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22157== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22157== by 0x8062D4E: main (nginx.c:382)
==22157== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22157==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
094-uthread-exit.t TEST 3: exit in a user thread (another user thread is still pending on ngx.sleep) - Can't connect to 127.0.0.1:1984: Connection refused ==22157==
==22157== Process terminating with default action of signal 11 (SIGSEGV)
==22157== Access not within mapped region at address 0x0
==22157== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22157== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22157== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22157== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22157== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22157== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22157== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22157== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22157== by 0x8062D4E: main (nginx.c:382)
==22157== If you believe this happened as a result of a stack
==22157== overflow in your program's main thread (unlikely but
==22157== possible), you can try to increase the size of the
==22157== main thread stack using the --main-stacksize= flag.
==22157== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 2: exit in user thread (entry thread is still pending on ngx.sleep) - Can't connect to 127.0.0.1:1984: Connection refused ==22159== Invalid read of size 4
==22159== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22159== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22159== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22159== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22159== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22159== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22159== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22159== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22159== by 0x8062D4E: main (nginx.c:382)
==22159== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22159==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
094-uthread-exit.t TEST 2: exit in user thread (entry thread is still pending on ngx.sleep) - Can't connect to 127.0.0.1:1984: Connection refused ==22159==
==22159== Process terminating with default action of signal 11 (SIGSEGV)
==22159== Access not within mapped region at address 0x0
==22159== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22159== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22159== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22159== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22159== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22159== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22159== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22159== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22159== by 0x8062D4E: main (nginx.c:382)
==22159== If you believe this happened as a result of a stack
==22159== overflow in your program's main thread (unlikely but
==22159== possible), you can try to increase the size of the
==22159== main thread stack using the --main-stacksize= flag.
==22159== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
098-uthread-wait.t TEST 19: entry coroutine waiting on a user coroutine - Can't connect to 127.0.0.1:1984: Connection refused ==22164== Invalid read of size 4
==22164== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22164== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22164== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22164== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22164== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22164== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22164== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22164== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22164== by 0x8062D4E: main (nginx.c:382)
==22164== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22164==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
098-uthread-wait.t TEST 19: entry coroutine waiting on a user coroutine - Can't connect to 127.0.0.1:1984: Connection refused ==22164==
==22164== Process terminating with default action of signal 11 (SIGSEGV)
==22164== Access not within mapped region at address 0x0
==22164== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22164== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22164== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22164== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22164== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22164== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22164== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22164== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22164== by 0x8062D4E: main (nginx.c:382)
==22164== If you believe this happened as a result of a stack
==22164== overflow in your program's main thread (unlikely but
==22164== possible), you can try to increase the size of the
==22164== main thread stack using the --main-stacksize= flag.
==22164== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - pattern "(?^:lua entry thread aborted: runtime error: content_by_lua\(nginx\.conf:\d+\):11: attempt to wait on a coroutine that is not a user thread)" should match a line in error.log (req 1)
098-uthread-wait.t TEST 1: simple user thread wait without I/O - Can't connect to 127.0.0.1:1984: Connection refused ==22166== Invalid read of size 4
==22166== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22166== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22166== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22166== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22166== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22166== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22166== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22166== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22166== by 0x8062D4E: main (nginx.c:382)
==22166== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22166==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
098-uthread-wait.t TEST 1: simple user thread wait without I/O - Can't connect to 127.0.0.1:1984: Connection refused ==22166==
==22166== Process terminating with default action of signal 11 (SIGSEGV)
==22166== Access not within mapped region at address 0x0
==22166== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22166== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22166== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22166== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22166== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22166== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22166== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22166== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22166== by 0x8062D4E: main (nginx.c:382)
==22166== If you believe this happened as a result of a stack
==22166== overflow in your program's main thread (unlikely but
==22166== possible), you can try to increase the size of the
==22166== main thread stack using the --main-stacksize= flag.
==22166== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 16: wait on uthreads on the exact order of their termination, but exit the world early - Can't connect to 127.0.0.1:1984: Connection refused ==22168== Invalid read of size 4
==22168== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22168== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22168== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22168== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22168== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22168== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22168== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22168== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22168== by 0x8062D4E: main (nginx.c:382)
==22168== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22168==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused ==22168==
==22168== Process terminating with default action of signal 11 (SIGSEGV)
==22168== Access not within mapped region at address 0x0
==22168== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22168== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22168== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22168== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22168== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22168== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22168== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22168== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22168== by 0x8062D4E: main (nginx.c:382)
==22168== If you believe this happened as a result of a stack
==22168== overflow in your program's main thread (unlikely but
==22168== possible), you can try to increase the size of the
==22168== main thread stack using the --main-stacksize= flag.
==22168== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 10: simple user thread wait with I/O (in a user coroutine) - Can't connect to 127.0.0.1:1984: Connection refused ==22170== Invalid read of size 4
==22170== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22170== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22170== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22170== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22170== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22170== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22170== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22170== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22170== by 0x8062D4E: main (nginx.c:382)
==22170== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22170==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
098-uthread-wait.t TEST 10: simple user thread wait with I/O (in a user coroutine) - Can't connect to 127.0.0.1:1984: Connection refused ==22170==
==22170== Process terminating with default action of signal 11 (SIGSEGV)
==22170== Access not within mapped region at address 0x0
==22170== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22170== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22170== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22170== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22170== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22170== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22170== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22170== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22170== by 0x8062D4E: main (nginx.c:382)
==22170== If you believe this happened as a result of a stack
==22170== overflow in your program's main thread (unlikely but
==22170== possible), you can try to increase the size of the
==22170== main thread stack using the --main-stacksize= flag.
==22170== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 17: wait on uthreads on the reversed order of their termination, but exit the world early - Can't connect to 127.0.0.1:1984: Connection refused ==22172== Invalid read of size 4
==22172== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22172== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22172== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22172== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22172== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22172== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22172== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22172== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22172== by 0x8062D4E: main (nginx.c:382)
==22172== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22172==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused ==22172==
==22172== Process terminating with default action of signal 11 (SIGSEGV)
==22172== Access not within mapped region at address 0x0
==22172== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22172== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22172== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22172== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22172== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22172== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22172== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22172== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22172== by 0x8062D4E: main (nginx.c:382)
==22172== If you believe this happened as a result of a stack
==22172== overflow in your program's main thread (unlikely but
==22172== possible), you can try to increase the size of the
==22172== main thread stack using the --main-stacksize= flag.
==22172== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 6: simple user thread wait with I/O, return multiple values - Can't connect to 127.0.0.1:1984: Connection refused ==22174== Invalid read of size 4
==22174== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22174== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22174== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22174== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22174== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22174== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22174== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22174== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22174== by 0x8062D4E: main (nginx.c:382)
==22174== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22174==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
098-uthread-wait.t TEST 6: simple user thread wait with I/O, return multiple values - Can't connect to 127.0.0.1:1984: Connection refused ==22174==
==22174== Process terminating with default action of signal 11 (SIGSEGV)
==22174== Access not within mapped region at address 0x0
==22174== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22174== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22174== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22174== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22174== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22174== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22174== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22174== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22174== by 0x8062D4E: main (nginx.c:382)
==22174== If you believe this happened as a result of a stack
==22174== overflow in your program's main thread (unlikely but
==22174== possible), you can try to increase the size of the
==22174== main thread stack using the --main-stacksize= flag.
==22174== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 18: entry coroutine waiting on a thread not created by itself - Can't connect to 127.0.0.1:1984: Connection refused ==22176== Invalid read of size 4
==22176== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22176== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22176== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22176== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22176== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22176== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22176== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22176== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22176== by 0x8062D4E: main (nginx.c:382)
==22176== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22176==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
098-uthread-wait.t TEST 18: entry coroutine waiting on a thread not created by itself - Can't connect to 127.0.0.1:1984: Connection refused ==22176==
==22176== Process terminating with default action of signal 11 (SIGSEGV)
==22176== Access not within mapped region at address 0x0
==22176== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22176== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22176== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22176== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22176== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22176== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22176== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22176== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22176== by 0x8062D4E: main (nginx.c:382)
==22176== If you believe this happened as a result of a stack
==22176== overflow in your program's main thread (unlikely but
==22176== possible), you can try to increase the size of the
==22176== main thread stack using the --main-stacksize= flag.
==22176== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - pattern "only the parent coroutine can wait on the thread" should match a line in error.log (req 1)
098-uthread-wait.t TEST 23: hanging bug - Can't connect to 127.0.0.1:1984: Connection refused ==22178== Invalid read of size 4
==22178== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22178== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22178== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22178== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22178== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22178== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22178== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22178== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22178== by 0x8062D4E: main (nginx.c:382)
==22178== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22178==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
098-uthread-wait.t TEST 23: hanging bug - Can't connect to 127.0.0.1:1984: Connection refused ==22178==
==22178== Process terminating with default action of signal 11 (SIGSEGV)
==22178== Access not within mapped region at address 0x0
==22178== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22178== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22178== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22178== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22178== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22178== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22178== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22178== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22178== by 0x8062D4E: main (nginx.c:382)
==22178== If you believe this happened as a result of a stack
==22178== overflow in your program's main thread (unlikely but
==22178== possible), you can try to increase the size of the
==22178== main thread stack using the --main-stacksize= flag.
==22178== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 8: simple user thread wait with I/O, throw errors - Can't connect to 127.0.0.1:1984: Connection refused ==22180== Invalid read of size 4
==22180== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22180== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22180== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22180== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22180== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22180== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22180== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22180== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22180== by 0x8062D4E: main (nginx.c:382)
==22180== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22180==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==22180==
==22180== Process terminating with default action of signal 11 (SIGSEGV)
==22180== Access not within mapped region at address 0x0
==22180== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22180== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22180== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22180== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22180== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22180== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22180== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22180== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22180== by 0x8062D4E: main (nginx.c:382)
==22180== If you believe this happened as a result of a stack
==22180== overflow in your program's main thread (unlikely but
==22180== possible), you can try to increase the size of the
==22180== main thread stack using the --main-stacksize= flag.
==22180== 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 (aborted) '
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 3: wait on uthreads on the reversed order of their termination - Can't connect to 127.0.0.1:1984: Connection refused ==22182== Invalid read of size 4
==22182== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22182== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22182== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22182== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22182== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22182== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22182== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22182== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22182== by 0x8062D4E: main (nginx.c:382)
==22182== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22182==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
098-uthread-wait.t TEST 3: wait on uthreads on the reversed order of their termination - Can't connect to 127.0.0.1:1984: Connection refused ==22182==
==22182== Process terminating with default action of signal 11 (SIGSEGV)
==22182== Access not within mapped region at address 0x0
==22182== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22182== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22182== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22182== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22182== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22182== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22182== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22182== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22182== by 0x8062D4E: main (nginx.c:382)
==22182== If you believe this happened as a result of a stack
==22182== overflow in your program's main thread (unlikely but
==22182== possible), you can try to increase the size of the
==22182== main thread stack using the --main-stacksize= flag.
==22182== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 4: wait on uthreads on the exact order of their termination - Can't connect to 127.0.0.1:1984: Connection refused ==22184== Invalid read of size 4
==22184== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22184== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22184== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22184== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22184== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22184== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22184== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22184== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22184== by 0x8062D4E: main (nginx.c:382)
==22184== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22184==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
098-uthread-wait.t TEST 4: wait on uthreads on the exact order of their termination - Can't connect to 127.0.0.1:1984: Connection refused ==22184==
==22184== Process terminating with default action of signal 11 (SIGSEGV)
==22184== Access not within mapped region at address 0x0
==22184== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22184== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22184== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22184== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22184== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22184== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22184== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22184== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22184== by 0x8062D4E: main (nginx.c:382)
==22184== If you believe this happened as a result of a stack
==22184== overflow in your program's main thread (unlikely but
==22184== possible), you can try to increase the size of the
==22184== main thread stack using the --main-stacksize= flag.
==22184== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 7: simple user thread wait without I/O, throw errors - Can't connect to 127.0.0.1:1984: Connection refused ==22186== Invalid read of size 4
==22186== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22186== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22186== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22186== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22186== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22186== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22186== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22186== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22186== by 0x8062D4E: main (nginx.c:382)
==22186== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22186==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
098-uthread-wait.t TEST 7: simple user thread wait without I/O, throw errors - Can't connect to 127.0.0.1:1984: Connection refused ==22186==
==22186== Process terminating with default action of signal 11 (SIGSEGV)
==22186== Access not within mapped region at address 0x0
==22186== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22186== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22186== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22186== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22186== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22186== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22186== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22186== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22186== by 0x8062D4E: main (nginx.c:382)
==22186== If you believe this happened as a result of a stack
==22186== overflow in your program's main thread (unlikely but
==22186== possible), you can try to increase the size of the
==22186== main thread stack using the --main-stacksize= flag.
==22186== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 7: simple user thread wait without I/O, throw errors - pattern "(?^:lua user thread aborted: runtime error: content_by_lua\(nginx\.conf:\d+\):4: bad bad!)" should match a line in error.log (req 1)
098-uthread-wait.t TEST 9: simple user thread wait without I/O (in a user coroutine) - Can't connect to 127.0.0.1:1984: Connection refused ==22188== Invalid read of size 4
==22188== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22188== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22188== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22188== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22188== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22188== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22188== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22188== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22188== by 0x8062D4E: main (nginx.c:382)
==22188== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22188==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
098-uthread-wait.t TEST 9: simple user thread wait without I/O (in a user coroutine) - Can't connect to 127.0.0.1:1984: Connection refused ==22188==
==22188== Process terminating with default action of signal 11 (SIGSEGV)
==22188== Access not within mapped region at address 0x0
==22188== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22188== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22188== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22188== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22188== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22188== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22188== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22188== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22188== by 0x8062D4E: main (nginx.c:382)
==22188== If you believe this happened as a result of a stack
==22188== overflow in your program's main thread (unlikely but
==22188== possible), you can try to increase the size of the
==22188== main thread stack using the --main-stacksize= flag.
==22188== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused ==22190== Invalid read of size 4
==22190== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22190== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22190== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22190== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22190== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22190== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22190== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22190== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22190== by 0x8062D4E: main (nginx.c:382)
==22190== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22190==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
098-uthread-wait.t TEST 5: simple user thread wait without I/O (return multiple values) - Can't connect to 127.0.0.1:1984: Connection refused ==22190==
==22190== Process terminating with default action of signal 11 (SIGSEGV)
==22190== Access not within mapped region at address 0x0
==22190== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22190== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22190== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22190== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22190== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22190== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22190== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22190== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22190== by 0x8062D4E: main (nginx.c:382)
==22190== If you believe this happened as a result of a stack
==22190== overflow in your program's main thread (unlikely but
==22190== possible), you can try to increase the size of the
==22190== main thread stack using the --main-stacksize= flag.
==22190== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 14: waiting on two simple user threads without I/O, both aborted by errors - Can't connect to 127.0.0.1:1984: Connection refused ==22192== Invalid read of size 4
==22192== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22192== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22192== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22192== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22192== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22192== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22192== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22192== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22192== by 0x8062D4E: main (nginx.c:382)
==22192== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22192==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
098-uthread-wait.t TEST 14: waiting on two simple user threads without I/O, both aborted by errors - Can't connect to 127.0.0.1:1984: Connection refused ==22192==
==22192== Process terminating with default action of signal 11 (SIGSEGV)
==22192== Access not within mapped region at address 0x0
==22192== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22192== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22192== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22192== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22192== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22192== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22192== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22192== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22192== by 0x8062D4E: main (nginx.c:382)
==22192== If you believe this happened as a result of a stack
==22192== overflow in your program's main thread (unlikely but
==22192== possible), you can try to increase the size of the
==22192== main thread stack using the --main-stacksize= flag.
==22192== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 14: waiting on two simple user threads without I/O, both aborted by errors - pattern "(?^:lua user thread aborted: runtime error: content_by_lua\(nginx\.conf:\d+\):7: f done)" should match a line in error.log (req 1)
098-uthread-wait.t TEST 13: waiting on two simple user threads with I/O (uthreads completed in reversed order) - Can't connect to 127.0.0.1:1984: Connection refused ==22194== Invalid read of size 4
==22194== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22194== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22194== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22194== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22194== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22194== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22194== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22194== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22194== by 0x8062D4E: main (nginx.c:382)
==22194== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22194==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
098-uthread-wait.t TEST 13: waiting on two simple user threads with I/O (uthreads completed in reversed order) - Can't connect to 127.0.0.1:1984: Connection refused ==22194==
==22194== Process terminating with default action of signal 11 (SIGSEGV)
==22194== Access not within mapped region at address 0x0
==22194== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22194== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22194== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22194== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22194== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22194== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22194== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22194== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22194== by 0x8062D4E: main (nginx.c:382)
==22194== If you believe this happened as a result of a stack
==22194== overflow in your program's main thread (unlikely but
==22194== possible), you can try to increase the size of the
==22194== main thread stack using the --main-stacksize= flag.
==22194== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 11: waiting on two simple user threads without I/O - Can't connect to 127.0.0.1:1984: Connection refused ==22196== Invalid read of size 4
==22196== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22196== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22196== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22196== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22196== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22196== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22196== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22196== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22196== by 0x8062D4E: main (nginx.c:382)
==22196== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22196==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
098-uthread-wait.t TEST 11: waiting on two simple user threads without I/O - Can't connect to 127.0.0.1:1984: Connection refused ==22196==
==22196== Process terminating with default action of signal 11 (SIGSEGV)
==22196== Access not within mapped region at address 0x0
==22196== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22196== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22196== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22196== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22196== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22196== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22196== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22196== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22196== by 0x8062D4E: main (nginx.c:382)
==22196== If you believe this happened as a result of a stack
==22196== overflow in your program's main thread (unlikely but
==22196== possible), you can try to increase the size of the
==22196== main thread stack using the --main-stacksize= flag.
==22196== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 2: simple user thread wait with I/O - Can't connect to 127.0.0.1:1984: Connection refused ==22198== Invalid read of size 4
==22198== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22198== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22198== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22198== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22198== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22198== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22198== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22198== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22198== by 0x8062D4E: main (nginx.c:382)
==22198== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22198==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
098-uthread-wait.t TEST 2: simple user thread wait with I/O - Can't connect to 127.0.0.1:1984: Connection refused ==22198==
==22198== Process terminating with default action of signal 11 (SIGSEGV)
==22198== Access not within mapped region at address 0x0
==22198== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22198== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22198== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22198== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22198== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22198== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22198== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22198== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22198== by 0x8062D4E: main (nginx.c:382)
==22198== If you believe this happened as a result of a stack
==22198== overflow in your program's main thread (unlikely but
==22198== possible), you can try to increase the size of the
==22198== main thread stack using the --main-stacksize= flag.
==22198== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 22: spawn and wait uthreads for many times - Can't connect to 127.0.0.1:1984: Connection refused ==22200== Invalid read of size 4
==22200== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22200== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22200== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22200== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22200== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22200== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22200== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22200== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22200== by 0x8062D4E: main (nginx.c:382)
==22200== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22200==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
098-uthread-wait.t TEST 22: spawn and wait uthreads for many times - Can't connect to 127.0.0.1:1984: Connection refused ==22200==
==22200== Process terminating with default action of signal 11 (SIGSEGV)
==22200== Access not within mapped region at address 0x0
==22200== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22200== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22200== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22200== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22200== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22200== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22200== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22200== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22200== by 0x8062D4E: main (nginx.c:382)
==22200== If you believe this happened as a result of a stack
==22200== overflow in your program's main thread (unlikely but
==22200== possible), you can try to increase the size of the
==22200== main thread stack using the --main-stacksize= flag.
==22200== The main thread stack size used in this run was 8388608.
==22200== 512 bytes in 1 blocks are definitely lost in loss record 2,632 of 2,839
==22200== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==22200== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==22200== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22200== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22200== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==22200== by 0x408A8C6: ir_nextk (lj_ir.c:175)
==22200== by 0x408A8C6: lj_ir_kgc (lj_ir.c:286)
==22200== by 0x409ED21: lj_record_ins (lj_record.c:2110)
==22200== by 0x40BB16A: trace_state (lj_trace.c:680)
==22200== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22200== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22200== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==22200== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22200== by 0x407FA29: lua_resume (lj_api.c:1296)
==22200== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22200== by 0x8152B40: ngx_stream_lua_content_run_posted_threads (ngx_stream_lua_contentby.c:309)
==22200== by 0x8152D79: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:127)
==22200== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==22200== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22200== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22200== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22200== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22200== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22200== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==22200== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22200== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22200== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22200== by 0x8062D4E: main (nginx.c:382)
==22200==
{
<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_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 15: waiting on two simple user threads with I/O, both aborted by errors - Can't connect to 127.0.0.1:1984: Connection refused ==22202== Invalid read of size 4
==22202== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22202== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22202== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22202== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22202== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22202== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22202== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22202== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22202== by 0x8062D4E: main (nginx.c:382)
==22202== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22202==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
098-uthread-wait.t TEST 15: waiting on two simple user threads with I/O, both aborted by errors - Can't connect to 127.0.0.1:1984: Connection refused ==22202==
==22202== Process terminating with default action of signal 11 (SIGSEGV)
==22202== Access not within mapped region at address 0x0
==22202== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22202== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22202== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22202== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22202== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22202== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22202== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22202== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22202== by 0x8062D4E: main (nginx.c:382)
==22202== If you believe this happened as a result of a stack
==22202== overflow in your program's main thread (unlikely but
==22202== possible), you can try to increase the size of the
==22202== main thread stack using the --main-stacksize= flag.
==22202== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 12: waiting on two simple user threads with I/O - Can't connect to 127.0.0.1:1984: Connection refused ==22204== Invalid read of size 4
==22204== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22204== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22204== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22204== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22204== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22204== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22204== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22204== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22204== by 0x8062D4E: main (nginx.c:382)
==22204== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22204==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
098-uthread-wait.t TEST 12: waiting on two simple user threads with I/O - Can't connect to 127.0.0.1:1984: Connection refused ==22204==
==22204== Process terminating with default action of signal 11 (SIGSEGV)
==22204== Access not within mapped region at address 0x0
==22204== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22204== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22204== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22204== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22204== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22204== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22204== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22204== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22204== by 0x8062D4E: main (nginx.c:382)
==22204== If you believe this happened as a result of a stack
==22204== overflow in your program's main thread (unlikely but
==22204== possible), you can try to increase the size of the
==22204== main thread stack using the --main-stacksize= flag.
==22204== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 20: lua backtrace dumper may access dead parent coroutines - Can't connect to 127.0.0.1:1984: Connection refused ==22206== Invalid read of size 4
==22206== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22206== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22206== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22206== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22206== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22206== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22206== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22206== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22206== by 0x8062D4E: main (nginx.c:382)
==22206== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22206==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
098-uthread-wait.t TEST 20: lua backtrace dumper may access dead parent coroutines - Can't connect to 127.0.0.1:1984: Connection refused ==22206==
==22206== Process terminating with default action of signal 11 (SIGSEGV)
==22206== Access not within mapped region at address 0x0
==22206== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22206== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22206== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22206== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22206== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22206== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22206== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22206== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22206== by 0x8062D4E: main (nginx.c:382)
==22206== If you believe this happened as a result of a stack
==22206== overflow in your program's main thread (unlikely but
==22206== possible), you can try to increase the size of the
==22206== main thread stack using the --main-stacksize= flag.
==22206== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 21: waiting on a dead coroutine - Can't connect to 127.0.0.1:1984: Connection refused ==22208== Invalid read of size 4
==22208== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22208== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22208== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22208== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22208== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22208== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22208== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22208== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22208== by 0x8062D4E: main (nginx.c:382)
==22208== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22208==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
098-uthread-wait.t TEST 21: waiting on a dead coroutine - Can't connect to 127.0.0.1:1984: Connection refused ==22208==
==22208== Process terminating with default action of signal 11 (SIGSEGV)
==22208== Access not within mapped region at address 0x0
==22208== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22208== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22208== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22208== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22208== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22208== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22208== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22208== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22208== by 0x8062D4E: main (nginx.c:382)
==22208== If you believe this happened as a result of a stack
==22208== overflow in your program's main thread (unlikely but
==22208== possible), you can try to increase the size of the
==22208== main thread stack using the --main-stacksize= flag.
==22208== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
100-client-abort.t TEST 11: cosocket + stop - Can't connect to 127.0.0.1:1984: Connection refused ==22223== Invalid read of size 4
==22223== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22223== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22223== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22223== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22223== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22223== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22223== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22223== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22223== by 0x8062D4E: main (nginx.c:382)
==22223== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22223==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
100-client-abort.t TEST 11: cosocket + stop - Can't connect to 127.0.0.1:1984: Connection refused ==22223==
==22223== Process terminating with default action of signal 11 (SIGSEGV)
==22223== Access not within mapped region at address 0x0
==22223== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22223== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22223== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22223== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22223== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22223== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22223== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22223== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22223== by 0x8062D4E: main (nginx.c:382)
==22223== If you believe this happened as a result of a stack
==22223== overflow in your program's main thread (unlikely but
==22223== possible), you can try to increase the size of the
==22223== main thread stack using the --main-stacksize= flag.
==22223== 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:47:13 [error] 22223\#0: *3 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/27 04:47:13 [debug] 22223\#0: *3 stream lua tcp socket handle connect error
2020/10/27 04:47:13 [debug] 22223\#0: *3 stream lua finalize socket
2020/10/27 04:47:13 [debug] 22223\#0: *3 lua stream cleanup free: 04B923B8
2020/10/27 04:47:13 [debug] 22223\#0: *3 lua close socket connection
2020/10/27 04:47:13 [debug] 22223\#0: *3 reusable connection: 0
2020/10/27 04:47:13 [debug] 22223\#0: *3 stream lua tcp socket waking up the current request
2020/10/27 04:47:13 [debug] 22223\#0: *3 lua ngx_stream_lua_content_wev_handler
2020/10/27 04:47:13 [debug] 22223\#0: *3 stream lua tcp operation done, resuming lua thread
2020/10/27 04:47:13 [debug] 22223\#0: *3 stream lua tcp socket calling prepare retvals handler 081677D0, u:04B92020
'
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:47:13 [error] 22223\#0: *3 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:47:13 [debug] 22223\#0: *3 lua resume returned 0
2020/10/27 04:47:13 [debug] 22223\#0: *3 lua light thread ended normally
2020/10/27 04:47:13 [debug] 22223\#0: *3 lua deleting light thread
2020/10/27 04:47:13 [debug] 22223\#0: *3 stream lua run thread returned 0
2020/10/27 04:47:13 [debug] 22223\#0: *3 finalize stream request: 0
2020/10/27 04:47:13 [debug] 22223\#0: *3 finalize stream session: 200
2020/10/27 04:47:13 [debug] 22223\#0: *3 stream log handler
2020/10/27 04:47:13 [debug] 22223\#0: *3 close stream connection: 13
2020/10/27 04:47:13 [debug] 22223\#0: *3 reusable connection: 0
'
100-client-abort.t TEST 11: cosocket + stop - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 18: ngx.flush - Can't connect to 127.0.0.1:1984: Connection refused ==22253== Invalid read of size 4
==22253== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22253== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22253== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22253== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22253== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22253== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22253== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22253== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22253== by 0x8062D4E: main (nginx.c:382)
==22253== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22253==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
100-client-abort.t TEST 18: ngx.flush - Can't connect to 127.0.0.1:1984: Connection refused ==22253==
==22253== Process terminating with default action of signal 11 (SIGSEGV)
==22253== Access not within mapped region at address 0x0
==22253== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22253== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22253== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22253== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22253== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22253== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22253== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22253== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22253== by 0x8062D4E: main (nginx.c:382)
==22253== If you believe this happened as a result of a stack
==22253== overflow in your program's main thread (unlikely but
==22253== possible), you can try to increase the size of the
==22253== main thread stack using the --main-stacksize= flag.
==22253== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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)
101-on-abort.t TEST 5: regsiter on_abort callback but no client abortion - Can't connect to 127.0.0.1:1984: Connection refused ==22258== Invalid read of size 4
==22258== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22258== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22258== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22258== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22258== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22258== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22258== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22258== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22258== by 0x8062D4E: main (nginx.c:382)
==22258== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22258==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
101-on-abort.t TEST 5: regsiter on_abort callback but no client abortion - Can't connect to 127.0.0.1:1984: Connection refused ==22258==
==22258== Process terminating with default action of signal 11 (SIGSEGV)
==22258== Access not within mapped region at address 0x0
==22258== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22258== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22258== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22258== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22258== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22258== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22258== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22258== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22258== by 0x8062D4E: main (nginx.c:382)
==22258== If you believe this happened as a result of a stack
==22258== overflow in your program's main thread (unlikely but
==22258== possible), you can try to increase the size of the
==22258== main thread stack using the --main-stacksize= flag.
==22258== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 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:48:11 [error] 22260\#0: *3 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 0) 2020/10/27 04:48:11 [debug] 22260\#0: *3 stream lua tcp socket handle connect error
2020/10/27 04:48:11 [debug] 22260\#0: *3 stream lua finalize socket
2020/10/27 04:48:11 [debug] 22260\#0: *3 lua stream cleanup free: 04B94338
2020/10/27 04:48:11 [debug] 22260\#0: *3 lua close socket connection
2020/10/27 04:48:11 [debug] 22260\#0: *3 reusable connection: 0
2020/10/27 04:48:11 [debug] 22260\#0: *3 stream lua tcp socket waking up the current request
2020/10/27 04:48:11 [debug] 22260\#0: *3 lua ngx_stream_lua_content_wev_handler
2020/10/27 04:48:11 [debug] 22260\#0: *3 stream lua tcp operation done, resuming lua thread
2020/10/27 04:48:11 [debug] 22260\#0: *3 stream lua tcp socket calling prepare retvals handler 081677D0, u:04B93FA0
'
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:48:11 [error] 22260\#0: *3 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:48:11 [debug] 22260\#0: *3 lua exit with code 499
2020/10/27 04:48:11 [debug] 22260\#0: *3 lua resume returned 1
2020/10/27 04:48:11 [debug] 22260\#0: *3 lua thread yielded
2020/10/27 04:48:11 [debug] 22260\#0: *3 lua thread aborting request with status 499
2020/10/27 04:48:11 [debug] 22260\#0: *3 lua request cleanup: forcible=0
2020/10/27 04:48:11 [debug] 22260\#0: lua clean up the timer for pending ngx.sleep
2020/10/27 04:48:11 [debug] 22260\#0: *3 event timer del: 0: 4525061
2020/10/27 04:48:11 [debug] 22260\#0: *3 stream lua run thread returned 499
2020/10/27 04:48:11 [debug] 22260\#0: *3 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:48:12 [error] 22260\#0: *7 connect() failed (111: Connection refused), client: 127.0.0.1, server: 0.0.0.0:1985" (req 1) 2020/10/27 04:48:12 [debug] 22260\#0: *7 stream lua tcp socket handle connect error
2020/10/27 04:48:12 [debug] 22260\#0: *7 stream lua finalize socket
2020/10/27 04:48:12 [debug] 22260\#0: *7 lua stream cleanup free: 04B9A360
2020/10/27 04:48:12 [debug] 22260\#0: *7 lua close socket connection
2020/10/27 04:48:12 [debug] 22260\#0: *7 reusable connection: 0
2020/10/27 04:48:12 [debug] 22260\#0: *7 stream lua tcp socket waking up the current request
2020/10/27 04:48:12 [debug] 22260\#0: *7 lua ngx_stream_lua_content_wev_handler
2020/10/27 04:48:12 [debug] 22260\#0: *7 stream lua tcp operation done, resuming lua thread
2020/10/27 04:48:12 [debug] 22260\#0: *7 stream lua tcp socket calling prepare retvals handler 081677D0, u:04B99FC8
'
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:48:12 [error] 22260\#0: *7 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:48:12 [debug] 22260\#0: *7 lua exit with code 499
2020/10/27 04:48:12 [debug] 22260\#0: *7 lua resume returned 1
2020/10/27 04:48:12 [debug] 22260\#0: *7 lua thread yielded
2020/10/27 04:48:12 [debug] 22260\#0: *7 lua thread aborting request with status 499
2020/10/27 04:48:12 [debug] 22260\#0: *7 lua request cleanup: forcible=0
2020/10/27 04:48:12 [debug] 22260\#0: lua clean up the timer for pending ngx.sleep
2020/10/27 04:48:12 [debug] 22260\#0: *7 event timer del: 0: 4526001
2020/10/27 04:48:12 [debug] 22260\#0: *7 stream lua run thread returned 499
2020/10/27 04:48:12 [debug] 22260\#0: *7 finalize stream request: 499
'
101-on-abort.t TEST 9: regsiter on_abort callback multiple times - Can't connect to 127.0.0.1:1984: Connection refused ==22264== Invalid read of size 4
==22264== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22264== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22264== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22264== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22264== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22264== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22264== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22264== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22264== by 0x8062D4E: main (nginx.c:382)
==22264== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22264==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
101-on-abort.t TEST 9: regsiter on_abort callback multiple times - Can't connect to 127.0.0.1:1984: Connection refused ==22264==
==22264== Process terminating with default action of signal 11 (SIGSEGV)
==22264== Access not within mapped region at address 0x0
==22264== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22264== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22264== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22264== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22264== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22264== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22264== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22264== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22264== by 0x8062D4E: main (nginx.c:382)
==22264== If you believe this happened as a result of a stack
==22264== overflow in your program's main thread (unlikely but
==22264== possible), you can try to increase the size of the
==22264== main thread stack using the --main-stacksize= flag.
==22264== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 4: ignore the client abort event in the user callback (no check) - Can't connect to 127.0.0.1:1984: Connection refused ==22267== Invalid read of size 4
==22267== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22267== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22267== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22267== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22267== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22267== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22267== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22267== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22267== by 0x8062D4E: main (nginx.c:382)
==22267== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22267==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
101-on-abort.t TEST 4: ignore the client abort event in the user callback (no check) - Can't connect to 127.0.0.1:1984: Connection refused ==22267==
==22267== Process terminating with default action of signal 11 (SIGSEGV)
==22267== Access not within mapped region at address 0x0
==22267== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22267== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22267== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22267== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22267== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22267== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22267== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22267== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22267== by 0x8062D4E: main (nginx.c:382)
==22267== If you believe this happened as a result of a stack
==22267== overflow in your program's main thread (unlikely but
==22267== possible), you can try to increase the size of the
==22267== main thread stack using the --main-stacksize= flag.
==22267== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 10: regsiter on_abort callback but no client abortion (2 uthreads and 1 pending) - Can't connect to 127.0.0.1:1984: Connection refused ==22269== Invalid read of size 4
==22269== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22269== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22269== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22269== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22269== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22269== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22269== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22269== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22269== by 0x8062D4E: main (nginx.c:382)
==22269== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22269==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
101-on-abort.t TEST 10: regsiter on_abort callback but no client abortion (2 uthreads and 1 pending) - Can't connect to 127.0.0.1:1984: Connection refused ==22269==
==22269== Process terminating with default action of signal 11 (SIGSEGV)
==22269== Access not within mapped region at address 0x0
==22269== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22269== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22269== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22269== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22269== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22269== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22269== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22269== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22269== by 0x8062D4E: main (nginx.c:382)
==22269== If you believe this happened as a result of a stack
==22269== overflow in your program's main thread (unlikely but
==22269== possible), you can try to increase the size of the
==22269== main thread stack using the --main-stacksize= flag.
==22269== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 8: regsiter on_abort callback but no client abortion (uthread) - Can't connect to 127.0.0.1:1984: Connection refused ==22272== Invalid read of size 4
==22272== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22272== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22272== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22272== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22272== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22272== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22272== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22272== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22272== by 0x8062D4E: main (nginx.c:382)
==22272== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22272==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==22272==
==22272== Process terminating with default action of signal 11 (SIGSEGV)
==22272== Access not within mapped region at address 0x0
==22272== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22272== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22272== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22272== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22272== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22272== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22272== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22272== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22272== by 0x8062D4E: main (nginx.c:382)
==22272== If you believe this happened as a result of a stack
==22272== overflow in your program's main thread (unlikely but
==22272== possible), you can try to increase the size of the
==22272== main thread stack using the --main-stacksize= flag.
==22272== 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 (aborted) '
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
'
106-timer.t TEST 26: lua_max_running_timers (just enough) - 2 - Can't connect to 127.0.0.1:1984: Connection refused ==22277== Invalid read of size 4
==22277== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22277== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22277== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22277== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22277== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22277== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22277== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22277== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22277== by 0x8062D4E: main (nginx.c:382)
==22277== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22277==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
106-timer.t TEST 26: lua_max_running_timers (just enough) - 2 - Can't connect to 127.0.0.1:1984: Connection refused ==22277==
==22277== Process terminating with default action of signal 11 (SIGSEGV)
==22277== Access not within mapped region at address 0x0
==22277== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22277== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22277== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22277== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22277== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22277== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22277== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22277== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22277== by 0x8062D4E: main (nginx.c:382)
==22277== If you believe this happened as a result of a stack
==22277== overflow in your program's main thread (unlikely but
==22277== possible), you can try to increase the size of the
==22277== main thread stack using the --main-stacksize= flag.
==22277== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 20: lua_max_pending_timers - Can't connect to 127.0.0.1:1984: Connection refused ==22279== Invalid read of size 4
==22279== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22279== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22279== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22279== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22279== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22279== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22279== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22279== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22279== by 0x8062D4E: main (nginx.c:382)
==22279== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22279==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
106-timer.t TEST 20: lua_max_pending_timers - Can't connect to 127.0.0.1:1984: Connection refused ==22279==
==22279== Process terminating with default action of signal 11 (SIGSEGV)
==22279== Access not within mapped region at address 0x0
==22279== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22279== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22279== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22279== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22279== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22279== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22279== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22279== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22279== by 0x8062D4E: main (nginx.c:382)
==22279== If you believe this happened as a result of a stack
==22279== overflow in your program's main thread (unlikely but
==22279== possible), you can try to increase the size of the
==22279== main thread stack using the --main-stacksize= flag.
==22279== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 2: separated global env - Can't connect to 127.0.0.1:1984: Connection refused ==22281== Invalid read of size 4
==22281== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22281== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22281== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22281== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22281== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22281== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22281== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22281== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22281== by 0x8062D4E: main (nginx.c:382)
==22281== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22281==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
106-timer.t TEST 2: separated global env - Can't connect to 127.0.0.1:1984: Connection refused ==22281==
==22281== Process terminating with default action of signal 11 (SIGSEGV)
==22281== Access not within mapped region at address 0x0
==22281== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22281== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22281== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22281== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22281== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22281== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22281== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22281== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22281== by 0x8062D4E: main (nginx.c:382)
==22281== If you believe this happened as a result of a stack
==22281== overflow in your program's main thread (unlikely but
==22281== possible), you can try to increase the size of the
==22281== main thread stack using the --main-stacksize= flag.
==22281== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 32: log function location when failed to run a timer (lua file) - Can't connect to 127.0.0.1:1984: Connection refused ==22283== Invalid read of size 4
==22283== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22283== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22283== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22283== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22283== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22283== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22283== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22283== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22283== by 0x8062D4E: main (nginx.c:382)
==22283== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22283==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
106-timer.t TEST 32: log function location when failed to run a timer (lua file) - Can't connect to 127.0.0.1:1984: Connection refused ==22283==
==22283== Process terminating with default action of signal 11 (SIGSEGV)
==22283== Access not within mapped region at address 0x0
==22283== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22283== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22283== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22283== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22283== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22283== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22283== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22283== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22283== by 0x8062D4E: main (nginx.c:382)
==22283== If you believe this happened as a result of a stack
==22283== overflow in your program's main thread (unlikely but
==22283== possible), you can try to increase the size of the
==22283== main thread stack using the --main-stacksize= flag.
==22283== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 18: chained timers (non-zero delay) - Can't connect to 127.0.0.1:1984: Connection refused ==22285== Invalid read of size 4
==22285== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22285== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22285== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22285== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22285== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22285== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22285== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22285== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22285== by 0x8062D4E: main (nginx.c:382)
==22285== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22285==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
106-timer.t TEST 18: chained timers (non-zero delay) - Can't connect to 127.0.0.1:1984: Connection refused ==22285==
==22285== Process terminating with default action of signal 11 (SIGSEGV)
==22285== Access not within mapped region at address 0x0
==22285== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22285== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22285== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22285== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22285== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22285== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22285== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22285== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22285== by 0x8062D4E: main (nginx.c:382)
==22285== If you believe this happened as a result of a stack
==22285== overflow in your program's main thread (unlikely but
==22285== possible), you can try to increase the size of the
==22285== main thread stack using the --main-stacksize= flag.
==22285== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 16: exit in user thread (entry thread is still pending on ngx.sleep) - Can't connect to 127.0.0.1:1984: Connection refused ==22287== Invalid read of size 4
==22287== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22287== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22287== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22287== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22287== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22287== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22287== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22287== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22287== by 0x8062D4E: main (nginx.c:382)
==22287== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22287==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
106-timer.t TEST 16: exit in user thread (entry thread is still pending on ngx.sleep) - Can't connect to 127.0.0.1:1984: Connection refused ==22287==
==22287== Process terminating with default action of signal 11 (SIGSEGV)
==22287== Access not within mapped region at address 0x0
==22287== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22287== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22287== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22287== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22287== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22287== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22287== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22287== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22287== by 0x8062D4E: main (nginx.c:382)
==22287== If you believe this happened as a result of a stack
==22287== overflow in your program's main thread (unlikely but
==22287== possible), you can try to increase the size of the
==22287== main thread stack using the --main-stacksize= flag.
==22287== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 8: udp cosocket in timer handler - Can't connect to 127.0.0.1:1984: Connection refused ==22289== Invalid read of size 4
==22289== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22289== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22289== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22289== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22289== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22289== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22289== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22289== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22289== by 0x8062D4E: main (nginx.c:382)
==22289== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22289==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==22289==
==22289== Process terminating with default action of signal 11 (SIGSEGV)
==22289== Access not within mapped region at address 0x0
==22289== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22289== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22289== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22289== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22289== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22289== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22289== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22289== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22289== by 0x8062D4E: main (nginx.c:382)
==22289== If you believe this happened as a result of a stack
==22289== overflow in your program's main thread (unlikely but
==22289== possible), you can try to increase the size of the
==22289== main thread stack using the --main-stacksize= flag.
==22289== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 25: lua_max_running_timers (just enough) - Can't connect to 127.0.0.1:1984: Connection refused ==22291== Invalid read of size 4
==22291== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22291== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22291== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22291== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22291== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22291== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22291== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22291== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22291== by 0x8062D4E: main (nginx.c:382)
==22291== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22291==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
106-timer.t TEST 25: lua_max_running_timers (just enough) - Can't connect to 127.0.0.1:1984: Connection refused ==22291==
==22291== Process terminating with default action of signal 11 (SIGSEGV)
==22291== Access not within mapped region at address 0x0
==22291== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22291== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22291== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22291== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22291== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22291== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22291== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22291== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22291== by 0x8062D4E: main (nginx.c:382)
==22291== If you believe this happened as a result of a stack
==22291== overflow in your program's main thread (unlikely but
==22291== possible), you can try to increase the size of the
==22291== main thread stack using the --main-stacksize= flag.
==22291== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 21: lua_max_pending_timers (just not exceeding) - Can't connect to 127.0.0.1:1984: Connection refused ==22293== Invalid read of size 4
==22293== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22293== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22293== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22293== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22293== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22293== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22293== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22293== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22293== by 0x8062D4E: main (nginx.c:382)
==22293== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22293==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
106-timer.t TEST 21: lua_max_pending_timers (just not exceeding) - Can't connect to 127.0.0.1:1984: Connection refused ==22293==
==22293== Process terminating with default action of signal 11 (SIGSEGV)
==22293== Access not within mapped region at address 0x0
==22293== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22293== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22293== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22293== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22293== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22293== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22293== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22293== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22293== by 0x8062D4E: main (nginx.c:382)
==22293== If you believe this happened as a result of a stack
==22293== overflow in your program's main thread (unlikely but
==22293== possible), you can try to increase the size of the
==22293== main thread stack using the --main-stacksize= flag.
==22293== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 4: simple at (sleep in the timer callback) - Can't connect to 127.0.0.1:1984: Connection refused ==22295== Invalid read of size 4
==22295== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22295== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22295== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22295== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22295== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22295== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22295== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22295== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22295== by 0x8062D4E: main (nginx.c:382)
==22295== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22295==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
106-timer.t TEST 4: simple at (sleep in the timer callback) - Can't connect to 127.0.0.1:1984: Connection refused ==22295==
==22295== Process terminating with default action of signal 11 (SIGSEGV)
==22295== Access not within mapped region at address 0x0
==22295== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22295== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22295== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22295== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22295== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22295== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22295== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22295== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22295== by 0x8062D4E: main (nginx.c:382)
==22295== If you believe this happened as a result of a stack
==22295== overflow in your program's main thread (unlikely but
==22295== possible), you can try to increase the size of the
==22295== main thread stack using the --main-stacksize= flag.
==22295== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 19: multiple parallel timers - Can't connect to 127.0.0.1:1984: Connection refused ==22297== Invalid read of size 4
==22297== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22297== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22297== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22297== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22297== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22297== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22297== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22297== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22297== by 0x8062D4E: main (nginx.c:382)
==22297== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22297==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
106-timer.t TEST 19: multiple parallel timers - Can't connect to 127.0.0.1:1984: Connection refused ==22297==
==22297== Process terminating with default action of signal 11 (SIGSEGV)
==22297== Access not within mapped region at address 0x0
==22297== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22297== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22297== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22297== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22297== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22297== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22297== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22297== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22297== by 0x8062D4E: main (nginx.c:382)
==22297== If you believe this happened as a result of a stack
==22297== overflow in your program's main thread (unlikely but
==22297== possible), you can try to increase the size of the
==22297== main thread stack using the --main-stacksize= flag.
==22297== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 27: user args - Can't connect to 127.0.0.1:1984: Connection refused ==22299== Invalid read of size 4
==22299== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22299== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22299== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22299== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22299== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22299== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22299== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22299== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22299== by 0x8062D4E: main (nginx.c:382)
==22299== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22299==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
106-timer.t TEST 27: user args - Can't connect to 127.0.0.1:1984: Connection refused ==22299==
==22299== Process terminating with default action of signal 11 (SIGSEGV)
==22299== Access not within mapped region at address 0x0
==22299== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22299== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22299== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22299== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22299== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22299== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22299== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22299== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22299== by 0x8062D4E: main (nginx.c:382)
==22299== If you believe this happened as a result of a stack
==22299== overflow in your program's main thread (unlikely but
==22299== possible), you can try to increase the size of the
==22299== main thread stack using the --main-stacksize= flag.
==22299== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 6: tcp cosocket in timer handler (keep-alive connections) - Can't connect to 127.0.0.1:1984: Connection refused ==22301== Invalid read of size 4
==22301== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22301== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22301== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22301== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22301== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22301== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22301== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22301== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22301== by 0x8062D4E: main (nginx.c:382)
==22301== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22301==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
106-timer.t TEST 6: tcp cosocket in timer handler (keep-alive connections) - Can't connect to 127.0.0.1:1984: Connection refused ==22301==
==22301== Process terminating with default action of signal 11 (SIGSEGV)
==22301== Access not within mapped region at address 0x0
==22301== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22301== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22301== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22301== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22301== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22301== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22301== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22301== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22301== by 0x8062D4E: main (nginx.c:382)
==22301== If you believe this happened as a result of a stack
==22301== overflow in your program's main thread (unlikely but
==22301== possible), you can try to increase the size of the
==22301== main thread stack using the --main-stacksize= flag.
==22301== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 23: lua_max_pending_timers - chained timers (zero delay) - not exceeding - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22303== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
106-timer.t TEST 23: lua_max_pending_timers - chained timers (zero delay) - not exceeding - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22303== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 5: tcp cosocket in timer handler (short connections) - Can't connect to 127.0.0.1:1984: Connection refused ==22305== Invalid read of size 4
==22305== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22305== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22305== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22305== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22305== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22305== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22305== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22305== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22305== by 0x8062D4E: main (nginx.c:382)
==22305== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22305==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
106-timer.t TEST 5: tcp cosocket in timer handler (short connections) - Can't connect to 127.0.0.1:1984: Connection refused ==22305==
==22305== Process terminating with default action of signal 11 (SIGSEGV)
==22305== Access not within mapped region at address 0x0
==22305== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22305== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22305== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22305== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22305== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22305== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22305== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22305== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22305== by 0x8062D4E: main (nginx.c:382)
==22305== If you believe this happened as a result of a stack
==22305== overflow in your program's main thread (unlikely but
==22305== possible), you can try to increase the size of the
==22305== main thread stack using the --main-stacksize= flag.
==22305== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 15: ngx.exit(403) - Can't connect to 127.0.0.1:1984: Connection refused ==22307== Invalid read of size 4
==22307== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22307== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22307== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22307== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22307== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22307== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22307== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22307== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22307== by 0x8062D4E: main (nginx.c:382)
==22307== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22307==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
106-timer.t TEST 15: ngx.exit(403) - Can't connect to 127.0.0.1:1984: Connection refused ==22307==
==22307== Process terminating with default action of signal 11 (SIGSEGV)
==22307== Access not within mapped region at address 0x0
==22307== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22307== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22307== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22307== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22307== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22307== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22307== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22307== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22307== by 0x8062D4E: main (nginx.c:382)
==22307== If you believe this happened as a result of a stack
==22307== overflow in your program's main thread (unlikely but
==22307== possible), you can try to increase the size of the
==22307== main thread stack using the --main-stacksize= flag.
==22307== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 3: lua variable sharing via upvalue - Can't connect to 127.0.0.1:1984: Connection refused ==22309== Invalid read of size 4
==22309== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22309== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22309== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22309== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22309== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22309== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22309== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22309== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22309== by 0x8062D4E: main (nginx.c:382)
==22309== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22309==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
106-timer.t TEST 3: lua variable sharing via upvalue - Can't connect to 127.0.0.1:1984: Connection refused ==22309==
==22309== Process terminating with default action of signal 11 (SIGSEGV)
==22309== Access not within mapped region at address 0x0
==22309== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22309== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22309== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22309== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22309== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22309== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22309== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22309== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22309== by 0x8062D4E: main (nginx.c:382)
==22309== If you believe this happened as a result of a stack
==22309== overflow in your program's main thread (unlikely but
==22309== possible), you can try to increase the size of the
==22309== main thread stack using the --main-stacksize= flag.
==22309== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 7: 0 timer - Can't connect to 127.0.0.1:1984: Connection refused ==22316== Invalid read of size 4
==22316== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22316== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22316== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22316== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22316== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22316== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22316== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22316== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22316== by 0x8062D4E: main (nginx.c:382)
==22316== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22316==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
106-timer.t TEST 7: 0 timer - Can't connect to 127.0.0.1:1984: Connection refused ==22316==
==22316== Process terminating with default action of signal 11 (SIGSEGV)
==22316== Access not within mapped region at address 0x0
==22316== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22316== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22316== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22316== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22316== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22316== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22316== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22316== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22316== by 0x8062D4E: main (nginx.c:382)
==22316== If you believe this happened as a result of a stack
==22316== overflow in your program's main thread (unlikely but
==22316== possible), you can try to increase the size of the
==22316== main thread stack using the --main-stacksize= flag.
==22316== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 22: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - Can't connect to 127.0.0.1:1984: Connection refused ==22318== Invalid read of size 4
==22318== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22318== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22318== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22318== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22318== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22318== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22318== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22318== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22318== by 0x8062D4E: main (nginx.c:382)
==22318== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22318==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
106-timer.t TEST 22: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - Can't connect to 127.0.0.1:1984: Connection refused ==22318==
==22318== Process terminating with default action of signal 11 (SIGSEGV)
==22318== Access not within mapped region at address 0x0
==22318== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22318== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22318== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22318== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22318== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22318== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22318== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22318== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22318== by 0x8062D4E: main (nginx.c:382)
==22318== If you believe this happened as a result of a stack
==22318== overflow in your program's main thread (unlikely but
==22318== possible), you can try to increase the size of the
==22318== main thread stack using the --main-stacksize= flag.
==22318== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 28: use of ngx.ctx - Can't connect to 127.0.0.1:1984: Connection refused ==22320== Invalid read of size 4
==22320== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22320== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22320== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22320== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22320== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22320== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22320== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22320== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22320== by 0x8062D4E: main (nginx.c:382)
==22320== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22320==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
106-timer.t TEST 28: use of ngx.ctx - Can't connect to 127.0.0.1:1984: Connection refused ==22320==
==22320== Process terminating with default action of signal 11 (SIGSEGV)
==22320== Access not within mapped region at address 0x0
==22320== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22320== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22320== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22320== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22320== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22320== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22320== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22320== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22320== by 0x8062D4E: main (nginx.c:382)
==22320== If you believe this happened as a result of a stack
==22320== overflow in your program's main thread (unlikely but
==22320== possible), you can try to increase the size of the
==22320== main thread stack using the --main-stacksize= flag.
==22320== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 24: lua_max_running_timers (just not enough) - Can't connect to 127.0.0.1:1984: Connection refused ==22322== Invalid read of size 4
==22322== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22322== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22322== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22322== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22322== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22322== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22322== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22322== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22322== by 0x8062D4E: main (nginx.c:382)
==22322== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22322==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
106-timer.t TEST 24: lua_max_running_timers (just not enough) - Can't connect to 127.0.0.1:1984: Connection refused ==22322==
==22322== Process terminating with default action of signal 11 (SIGSEGV)
==22322== Access not within mapped region at address 0x0
==22322== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22322== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22322== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22322== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22322== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22322== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22322== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22322== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22322== by 0x8062D4E: main (nginx.c:382)
==22322== If you believe this happened as a result of a stack
==22322== overflow in your program's main thread (unlikely but
==22322== possible), you can try to increase the size of the
==22322== main thread stack using the --main-stacksize= flag.
==22322== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: simple at - Can't connect to 127.0.0.1:1984: Connection refused ==22324== Invalid read of size 4
==22324== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22324== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22324== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22324== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22324== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22324== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22324== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22324== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22324== by 0x8062D4E: main (nginx.c:382)
==22324== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22324==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
106-timer.t TEST 1: simple at - Can't connect to 127.0.0.1:1984: Connection refused ==22324==
==22324== Process terminating with default action of signal 11 (SIGSEGV)
==22324== Access not within mapped region at address 0x0
==22324== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22324== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22324== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22324== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22324== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22324== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22324== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22324== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22324== by 0x8062D4E: main (nginx.c:382)
==22324== If you believe this happened as a result of a stack
==22324== overflow in your program's main thread (unlikely but
==22324== possible), you can try to increase the size of the
==22324== main thread stack using the --main-stacksize= flag.
==22324== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 31: log function location when failed to run a timer (anonymous function) - Can't connect to 127.0.0.1:1984: Connection refused ==22326== Invalid read of size 4
==22326== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22326== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22326== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22326== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22326== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22326== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22326== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22326== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22326== by 0x8062D4E: main (nginx.c:382)
==22326== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22326==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
106-timer.t TEST 31: log function location when failed to run a timer (anonymous function) - Can't connect to 127.0.0.1:1984: Connection refused ==22326==
==22326== Process terminating with default action of signal 11 (SIGSEGV)
==22326== Access not within mapped region at address 0x0
==22326== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22326== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22326== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22326== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22326== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22326== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22326== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22326== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22326== by 0x8062D4E: main (nginx.c:382)
==22326== If you believe this happened as a result of a stack
==22326== overflow in your program's main thread (unlikely but
==22326== possible), you can try to increase the size of the
==22326== main thread stack using the --main-stacksize= flag.
==22326== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 14: ngx.exit(0) - Can't connect to 127.0.0.1:1984: Connection refused ==22328== Invalid read of size 4
==22328== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22328== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22328== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22328== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22328== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22328== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22328== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22328== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22328== by 0x8062D4E: main (nginx.c:382)
==22328== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22328==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
106-timer.t TEST 14: ngx.exit(0) - Can't connect to 127.0.0.1:1984: Connection refused ==22328==
==22328== Process terminating with default action of signal 11 (SIGSEGV)
==22328== Access not within mapped region at address 0x0
==22328== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22328== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22328== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22328== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22328== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22328== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22328== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22328== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22328== by 0x8062D4E: main (nginx.c:382)
==22328== If you believe this happened as a result of a stack
==22328== overflow in your program's main thread (unlikely but
==22328== possible), you can try to increase the size of the
==22328== main thread stack using the --main-stacksize= flag.
==22328== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 13: shared dict - Can't connect to 127.0.0.1:1984: Connection refused ==22330== Invalid read of size 4
==22330== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22330== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22330== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22330== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22330== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22330== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22330== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22330== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22330== by 0x8062D4E: main (nginx.c:382)
==22330== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22330==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
106-timer.t TEST 13: shared dict - Can't connect to 127.0.0.1:1984: Connection refused ==22330==
==22330== Process terminating with default action of signal 11 (SIGSEGV)
==22330== Access not within mapped region at address 0x0
==22330== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22330== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22330== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22330== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22330== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22330== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22330== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22330== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22330== by 0x8062D4E: main (nginx.c:382)
==22330== If you believe this happened as a result of a stack
==22330== overflow in your program's main thread (unlikely but
==22330== possible), you can try to increase the size of the
==22330== main thread stack using the --main-stacksize= flag.
==22330== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 12: ngx.thread API - Can't connect to 127.0.0.1:1984: Connection refused ==22332== Invalid read of size 4
==22332== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22332== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22332== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22332== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22332== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22332== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22332== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22332== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22332== by 0x8062D4E: main (nginx.c:382)
==22332== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22332==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
106-timer.t TEST 12: ngx.thread API - Can't connect to 127.0.0.1:1984: Connection refused ==22332==
==22332== Process terminating with default action of signal 11 (SIGSEGV)
==22332== Access not within mapped region at address 0x0
==22332== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22332== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22332== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22332== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22332== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22332== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22332== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22332== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22332== by 0x8062D4E: main (nginx.c:382)
==22332== If you believe this happened as a result of a stack
==22332== overflow in your program's main thread (unlikely but
==22332== possible), you can try to increase the size of the
==22332== main thread stack using the --main-stacksize= flag.
==22332== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 30: log function location when failed to run a timer - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22334== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
106-timer.t TEST 30: log function location when failed to run a timer - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22334== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
106-timer.t TEST 17: chained timers (0 delay) - Can't connect to 127.0.0.1:1984: Connection refused ==22336== Invalid read of size 4
==22336== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22336== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22336== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22336== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22336== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22336== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22336== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22336== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22336== by 0x8062D4E: main (nginx.c:382)
==22336== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22336==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
106-timer.t TEST 17: chained timers (0 delay) - Can't connect to 127.0.0.1:1984: Connection refused ==22336==
==22336== Process terminating with default action of signal 11 (SIGSEGV)
==22336== Access not within mapped region at address 0x0
==22336== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22336== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22336== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22336== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22336== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22336== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22336== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22336== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22336== by 0x8062D4E: main (nginx.c:382)
==22336== If you believe this happened as a result of a stack
==22336== overflow in your program's main thread (unlikely but
==22336== possible), you can try to increase the size of the
==22336== main thread stack using the --main-stacksize= flag.
==22336== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 11: coroutine API - Can't connect to 127.0.0.1:1984: Connection refused ==22338== Invalid read of size 4
==22338== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22338== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22338== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22338== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22338== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22338== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22338== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22338== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22338== by 0x8062D4E: main (nginx.c:382)
==22338== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22338==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
106-timer.t TEST 11: coroutine API - Can't connect to 127.0.0.1:1984: Connection refused ==22338==
==22338== Process terminating with default action of signal 11 (SIGSEGV)
==22338== Access not within mapped region at address 0x0
==22338== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22338== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22338== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22338== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22338== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22338== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22338== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22338== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22338== by 0x8062D4E: main (nginx.c:382)
==22338== If you believe this happened as a result of a stack
==22338== overflow in your program's main thread (unlikely but
==22338== possible), you can try to increase the size of the
==22338== main thread stack using the --main-stacksize= flag.
==22338== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
107-timer-errors.t TEST 4: ngx.on_abort - Can't connect to 127.0.0.1:1984: Connection refused ==22343== Invalid read of size 4
==22343== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22343== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22343== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22343== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22343== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22343== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22343== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22343== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22343== by 0x8062D4E: main (nginx.c:382)
==22343== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22343==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
107-timer-errors.t TEST 4: ngx.on_abort - Can't connect to 127.0.0.1:1984: Connection refused ==22343==
==22343== Process terminating with default action of signal 11 (SIGSEGV)
==22343== Access not within mapped region at address 0x0
==22343== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22343== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22343== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22343== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22343== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22343== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22343== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22343== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22343== by 0x8062D4E: main (nginx.c:382)
==22343== If you believe this happened as a result of a stack
==22343== overflow in your program's main thread (unlikely but
==22343== possible), you can try to increase the size of the
==22343== main thread stack using the --main-stacksize= flag.
==22343== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 2: ngx.print() - Can't connect to 127.0.0.1:1984: Connection refused ==22345== Invalid read of size 4
==22345== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22345== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22345== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22345== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22345== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22345== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22345== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22345== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22345== by 0x8062D4E: main (nginx.c:382)
==22345== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22345==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
107-timer-errors.t TEST 2: ngx.print() - Can't connect to 127.0.0.1:1984: Connection refused ==22345==
==22345== Process terminating with default action of signal 11 (SIGSEGV)
==22345== Access not within mapped region at address 0x0
==22345== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22345== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22345== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22345== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22345== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22345== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22345== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22345== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22345== by 0x8062D4E: main (nginx.c:382)
==22345== If you believe this happened as a result of a stack
==22345== overflow in your program's main thread (unlikely but
==22345== possible), you can try to increase the size of the
==22345== main thread stack using the --main-stacksize= flag.
==22345== 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() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 6: ngx.req.socket - Can't connect to 127.0.0.1:1984: Connection refused ==22347== Invalid read of size 4
==22347== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22347== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22347== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22347== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22347== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22347== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22347== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22347== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22347== by 0x8062D4E: main (nginx.c:382)
==22347== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22347==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
107-timer-errors.t TEST 6: ngx.req.socket - Can't connect to 127.0.0.1:1984: Connection refused ==22347==
==22347== Process terminating with default action of signal 11 (SIGSEGV)
==22347== Access not within mapped region at address 0x0
==22347== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22347== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22347== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22347== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22347== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22347== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22347== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22347== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22347== by 0x8062D4E: main (nginx.c:382)
==22347== If you believe this happened as a result of a stack
==22347== overflow in your program's main thread (unlikely but
==22347== possible), you can try to increase the size of the
==22347== main thread stack using the --main-stacksize= flag.
==22347== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 3: ngx.flush() - Can't connect to 127.0.0.1:1984: Connection refused ==22349== Invalid read of size 4
==22349== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22349== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22349== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22349== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22349== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22349== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22349== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22349== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22349== by 0x8062D4E: main (nginx.c:382)
==22349== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22349==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
107-timer-errors.t TEST 3: ngx.flush() - Can't connect to 127.0.0.1:1984: Connection refused ==22349==
==22349== Process terminating with default action of signal 11 (SIGSEGV)
==22349== Access not within mapped region at address 0x0
==22349== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22349== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22349== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22349== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22349== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22349== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22349== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22349== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22349== by 0x8062D4E: main (nginx.c:382)
==22349== If you believe this happened as a result of a stack
==22349== overflow in your program's main thread (unlikely but
==22349== possible), you can try to increase the size of the
==22349== main thread stack using the --main-stacksize= flag.
==22349== 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() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: ngx.say() - Can't connect to 127.0.0.1:1984: Connection refused ==22351== Invalid read of size 4
==22351== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22351== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22351== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22351== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22351== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22351== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22351== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22351== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22351== by 0x8062D4E: main (nginx.c:382)
==22351== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22351==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
107-timer-errors.t TEST 1: ngx.say() - Can't connect to 127.0.0.1:1984: Connection refused ==22351==
==22351== Process terminating with default action of signal 11 (SIGSEGV)
==22351== Access not within mapped region at address 0x0
==22351== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22351== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22351== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22351== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22351== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22351== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22351== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22351== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22351== by 0x8062D4E: main (nginx.c:382)
==22351== If you believe this happened as a result of a stack
==22351== overflow in your program's main thread (unlikely but
==22351== possible), you can try to increase the size of the
==22351== main thread stack using the --main-stacksize= flag.
==22351== 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() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 5: ngx.eof - Can't connect to 127.0.0.1:1984: Connection refused ==22353== Invalid read of size 4
==22353== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22353== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22353== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22353== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22353== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22353== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22353== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22353== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22353== by 0x8062D4E: main (nginx.c:382)
==22353== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22353==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
107-timer-errors.t TEST 5: ngx.eof - Can't connect to 127.0.0.1:1984: Connection refused ==22353==
==22353== Process terminating with default action of signal 11 (SIGSEGV)
==22353== Access not within mapped region at address 0x0
==22353== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22353== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22353== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22353== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22353== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22353== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22353== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22353== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22353== by 0x8062D4E: main (nginx.c:382)
==22353== If you believe this happened as a result of a stack
==22353== overflow in your program's main thread (unlikely but
==22353== possible), you can try to increase the size of the
==22353== main thread stack using the --main-stacksize= flag.
==22353== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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)
108-timer-safe.t TEST 2: simple at (sleep in the timer callback) - Can't connect to 127.0.0.1:1984: Connection refused ==22358== Invalid read of size 4
==22358== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22358== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22358== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22358== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22358== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22358== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22358== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22358== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22358== by 0x8062D4E: main (nginx.c:382)
==22358== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22358==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
108-timer-safe.t TEST 2: simple at (sleep in the timer callback) - Can't connect to 127.0.0.1:1984: Connection refused ==22358==
==22358== Process terminating with default action of signal 11 (SIGSEGV)
==22358== Access not within mapped region at address 0x0
==22358== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22358== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22358== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22358== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22358== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22358== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22358== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22358== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22358== by 0x8062D4E: main (nginx.c:382)
==22358== If you believe this happened as a result of a stack
==22358== overflow in your program's main thread (unlikely but
==22358== possible), you can try to increase the size of the
==22358== main thread stack using the --main-stacksize= flag.
==22358== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 14: exit in user thread (entry thread is still pending on ngx.sleep) - Can't connect to 127.0.0.1:1984: Connection refused ==22360== Invalid read of size 4
==22360== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22360== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22360== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22360== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22360== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22360== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22360== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22360== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22360== by 0x8062D4E: main (nginx.c:382)
==22360== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22360==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
108-timer-safe.t TEST 14: exit in user thread (entry thread is still pending on ngx.sleep) - Can't connect to 127.0.0.1:1984: Connection refused ==22360==
==22360== Process terminating with default action of signal 11 (SIGSEGV)
==22360== Access not within mapped region at address 0x0
==22360== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22360== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22360== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22360== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22360== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22360== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22360== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22360== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22360== by 0x8062D4E: main (nginx.c:382)
==22360== If you believe this happened as a result of a stack
==22360== overflow in your program's main thread (unlikely but
==22360== possible), you can try to increase the size of the
==22360== main thread stack using the --main-stacksize= flag.
==22360== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 12: ngx.exit(0) - Can't connect to 127.0.0.1:1984: Connection refused ==22362== Invalid read of size 4
==22362== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22362== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22362== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22362== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22362== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22362== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22362== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22362== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22362== by 0x8062D4E: main (nginx.c:382)
==22362== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22362==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
108-timer-safe.t TEST 12: ngx.exit(0) - Can't connect to 127.0.0.1:1984: Connection refused ==22362==
==22362== Process terminating with default action of signal 11 (SIGSEGV)
==22362== Access not within mapped region at address 0x0
==22362== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22362== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22362== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22362== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22362== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22362== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22362== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22362== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22362== by 0x8062D4E: main (nginx.c:382)
==22362== If you believe this happened as a result of a stack
==22362== overflow in your program's main thread (unlikely but
==22362== possible), you can try to increase the size of the
==22362== main thread stack using the --main-stacksize= flag.
==22362== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 4: tcp cosocket in timer handler (keep-alive connections) - Can't connect to 127.0.0.1:1984: Connection refused ==22364== Invalid read of size 4
==22364== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22364== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22364== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22364== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22364== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22364== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22364== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22364== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22364== by 0x8062D4E: main (nginx.c:382)
==22364== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22364==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
108-timer-safe.t TEST 4: tcp cosocket in timer handler (keep-alive connections) - Can't connect to 127.0.0.1:1984: Connection refused ==22364==
==22364== Process terminating with default action of signal 11 (SIGSEGV)
==22364== Access not within mapped region at address 0x0
==22364== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22364== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22364== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22364== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22364== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22364== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22364== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22364== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22364== by 0x8062D4E: main (nginx.c:382)
==22364== If you believe this happened as a result of a stack
==22364== overflow in your program's main thread (unlikely but
==22364== possible), you can try to increase the size of the
==22364== main thread stack using the --main-stacksize= flag.
==22364== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 15: chained timers (non-zero delay) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22366== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
108-timer-safe.t TEST 15: chained timers (non-zero delay) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22366== by 0x8062D4E: main (nginx.c:382)
==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.

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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 3: tcp cosocket in timer handler (short connections) - Can't connect to 127.0.0.1:1984: Connection refused ==22368== Invalid read of size 4
==22368== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22368== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22368== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22368== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22368== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22368== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22368== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22368== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22368== by 0x8062D4E: main (nginx.c:382)
==22368== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22368==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
108-timer-safe.t TEST 3: tcp cosocket in timer handler (short connections) - Can't connect to 127.0.0.1:1984: Connection refused ==22368==
==22368== Process terminating with default action of signal 11 (SIGSEGV)
==22368== Access not within mapped region at address 0x0
==22368== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22368== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22368== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22368== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22368== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22368== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22368== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22368== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22368== by 0x8062D4E: main (nginx.c:382)
==22368== If you believe this happened as a result of a stack
==22368== overflow in your program's main thread (unlikely but
==22368== possible), you can try to increase the size of the
==22368== main thread stack using the --main-stacksize= flag.
==22368== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 6: udp cosocket in timer handler - Can't connect to 127.0.0.1:1984: Connection refused ==22370== Invalid read of size 4
==22370== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22370== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22370== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22370== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22370== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22370== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22370== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22370== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22370== by 0x8062D4E: main (nginx.c:382)
==22370== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22370==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
108-timer-safe.t TEST 6: udp cosocket in timer handler - Can't connect to 127.0.0.1:1984: Connection refused ==22370==
==22370== Process terminating with default action of signal 11 (SIGSEGV)
==22370== Access not within mapped region at address 0x0
==22370== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22370== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22370== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22370== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22370== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22370== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22370== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22370== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22370== by 0x8062D4E: main (nginx.c:382)
==22370== If you believe this happened as a result of a stack
==22370== overflow in your program's main thread (unlikely but
==22370== possible), you can try to increase the size of the
==22370== main thread stack using the --main-stacksize= flag.
==22370== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 10: ngx.thread API - Can't connect to 127.0.0.1:1984: Connection refused ==22372== Invalid read of size 4
==22372== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22372== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22372== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22372== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22372== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22372== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22372== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22372== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22372== by 0x8062D4E: main (nginx.c:382)
==22372== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22372==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
108-timer-safe.t TEST 10: ngx.thread API - Can't connect to 127.0.0.1:1984: Connection refused ==22372==
==22372== Process terminating with default action of signal 11 (SIGSEGV)
==22372== Access not within mapped region at address 0x0
==22372== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22372== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22372== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22372== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22372== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22372== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22372== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22372== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22372== by 0x8062D4E: main (nginx.c:382)
==22372== If you believe this happened as a result of a stack
==22372== overflow in your program's main thread (unlikely but
==22372== possible), you can try to increase the size of the
==22372== main thread stack using the --main-stacksize= flag.
==22372== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 5: 0 timer - Can't connect to 127.0.0.1:1984: Connection refused ==22374== Invalid read of size 4
==22374== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22374== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22374== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22374== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22374== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22374== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22374== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22374== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22374== by 0x8062D4E: main (nginx.c:382)
==22374== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22374==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
108-timer-safe.t TEST 5: 0 timer - Can't connect to 127.0.0.1:1984: Connection refused ==22374==
==22374== Process terminating with default action of signal 11 (SIGSEGV)
==22374== Access not within mapped region at address 0x0
==22374== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22374== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22374== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22374== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22374== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22374== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22374== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22374== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22374== by 0x8062D4E: main (nginx.c:382)
==22374== If you believe this happened as a result of a stack
==22374== overflow in your program's main thread (unlikely but
==22374== possible), you can try to increase the size of the
==22374== main thread stack using the --main-stacksize= flag.
==22374== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: simple at - Can't connect to 127.0.0.1:1984: Connection refused ==22376== Invalid read of size 4
==22376== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22376== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22376== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22376== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22376== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22376== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22376== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22376== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22376== by 0x8062D4E: main (nginx.c:382)
==22376== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22376==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
108-timer-safe.t TEST 1: simple at - Can't connect to 127.0.0.1:1984: Connection refused ==22376==
==22376== Process terminating with default action of signal 11 (SIGSEGV)
==22376== Access not within mapped region at address 0x0
==22376== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22376== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22376== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22376== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22376== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22376== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22376== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22376== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22376== by 0x8062D4E: main (nginx.c:382)
==22376== If you believe this happened as a result of a stack
==22376== overflow in your program's main thread (unlikely but
==22376== possible), you can try to increase the size of the
==22376== main thread stack using the --main-stacksize= flag.
==22376== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 11: shared dict - Can't connect to 127.0.0.1:1984: Connection refused ==22378== Invalid read of size 4
==22378== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22378== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22378== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22378== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22378== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22378== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22378== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22378== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22378== by 0x8062D4E: main (nginx.c:382)
==22378== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22378==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
108-timer-safe.t TEST 11: shared dict - Can't connect to 127.0.0.1:1984: Connection refused ==22378==
==22378== Process terminating with default action of signal 11 (SIGSEGV)
==22378== Access not within mapped region at address 0x0
==22378== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22378== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22378== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22378== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22378== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22378== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22378== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22378== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22378== by 0x8062D4E: main (nginx.c:382)
==22378== If you believe this happened as a result of a stack
==22378== overflow in your program's main thread (unlikely but
==22378== possible), you can try to increase the size of the
==22378== main thread stack using the --main-stacksize= flag.
==22378== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 9: coroutine API - Can't connect to 127.0.0.1:1984: Connection refused ==22380== Invalid read of size 4
==22380== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22380== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22380== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22380== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22380== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22380== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22380== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22380== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22380== by 0x8062D4E: main (nginx.c:382)
==22380== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22380==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
108-timer-safe.t TEST 9: coroutine API - Can't connect to 127.0.0.1:1984: Connection refused ==22380==
==22380== Process terminating with default action of signal 11 (SIGSEGV)
==22380== Access not within mapped region at address 0x0
==22380== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22380== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22380== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22380== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22380== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22380== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22380== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22380== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22380== by 0x8062D4E: main (nginx.c:382)
==22380== If you believe this happened as a result of a stack
==22380== overflow in your program's main thread (unlikely but
==22380== possible), you can try to increase the size of the
==22380== main thread stack using the --main-stacksize= flag.
==22380== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 13: ngx.exit(403) - Can't connect to 127.0.0.1:1984: Connection refused ==22382== Invalid read of size 4
==22382== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22382== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22382== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22382== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22382== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22382== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22382== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22382== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22382== by 0x8062D4E: main (nginx.c:382)
==22382== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22382==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
108-timer-safe.t TEST 13: ngx.exit(403) - Can't connect to 127.0.0.1:1984: Connection refused ==22382==
==22382== Process terminating with default action of signal 11 (SIGSEGV)
==22382== Access not within mapped region at address 0x0
==22382== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22382== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22382== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22382== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22382== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22382== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22382== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22382== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22382== by 0x8062D4E: main (nginx.c:382)
==22382== If you believe this happened as a result of a stack
==22382== overflow in your program's main thread (unlikely but
==22382== possible), you can try to increase the size of the
==22382== main thread stack using the --main-stacksize= flag.
==22382== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
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 ==22391== Invalid read of size 4
==22391== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22391== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22391== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22391== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22391== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22391== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22391== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22391== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22391== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22391== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22391== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==22391== by 0x8062D5B: main (nginx.c:385)
==22391== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22391==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_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 ==22391==
==22391== Process terminating with default action of signal 11 (SIGSEGV)
==22391== Access not within mapped region at address 0x0
==22391== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22391== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22391== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22391== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22391== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22391== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22391== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22391== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22391== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22391== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22391== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==22391== by 0x8062D5B: main (nginx.c:385)
==22391== If you believe this happened as a result of a stack
==22391== overflow in your program's main thread (unlikely but
==22391== possible), you can try to increase the size of the
==22391== main thread stack using the --main-stacksize= flag.
==22391== 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 ==22393== Invalid read of size 4
==22393== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22393== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22393== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22393== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22393== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22393== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22393== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22393== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22393== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22393== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22393== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22393== by 0x8062D5B: main (nginx.c:385)
==22393== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22393==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_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 ==22393==
==22393== Process terminating with default action of signal 11 (SIGSEGV)
==22393== Access not within mapped region at address 0x0
==22393== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22393== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22393== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22393== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22393== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22393== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22393== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22393== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22393== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22393== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22393== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22393== by 0x8062D5B: main (nginx.c:385)
==22393== If you believe this happened as a result of a stack
==22393== overflow in your program's main thread (unlikely but
==22393== possible), you can try to increase the size of the
==22393== main thread stack using the --main-stacksize= flag.
==22393== 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:52:12 [alert] 22390\#0: worker process 22391 exited on signal 11" (req 1) 2020/10/27 04:52:12 [debug] 22390\#0: shmtx forced unlock
2020/10/27 04:52:12 [debug] 22393\#0: *4 reusable connection: 0
2020/10/27 04:52:12 [debug] 22393\#0: *4 malloc: 050834C0:24
2020/10/27 04:52:12 [debug] 22390\#0: wake up, sigio 0
2020/10/27 04:52:12 [debug] 22393\#0: *4 malloc: 05083508:784
2020/10/27 04:52:12 [debug] 22390\#0: reap children
2020/10/27 04:52:12 [debug] 22393\#0: *4 malloc: 05083848:8
2020/10/27 04:52:12 [debug] 22393\#0: *4 malloc: 05083880:480
2020/10/27 04:52:12 [debug] 22393\#0: *4 malloc: 05083A90:8
'
109-timer-hup.t TEST 4: trying to add new timer after HUP reload ==22406== Invalid read of size 4
==22406== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22406== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22406== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22406== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22406== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22406== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22406== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22406== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22406== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22406== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22406== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22406== by 0x8062D5B: main (nginx.c:385)
==22406== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22406==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_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 ==22406==
==22406== Process terminating with default action of signal 11 (SIGSEGV)
==22406== Access not within mapped region at address 0x0
==22406== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22406== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22406== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22406== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22406== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22406== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22406== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22406== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22406== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22406== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22406== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22406== by 0x8062D5B: main (nginx.c:385)
==22406== If you believe this happened as a result of a stack
==22406== overflow in your program's main thread (unlikely but
==22406== possible), you can try to increase the size of the
==22406== main thread stack using the --main-stacksize= flag.
==22406== 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:52:14 [alert] 22390\#0: worker process 22393 exited on signal 11" (req 0) 2020/10/27 04:52:14 [debug] 22390\#0: shmtx forced unlock
2020/10/27 04:52:14 [debug] 22390\#0: wake up, sigio 0
2020/10/27 04:52:14 [debug] 22390\#0: reap children
2020/10/27 04:52:14 [debug] 22390\#0: child: 0 22401 e:1 t:0 d:0 r:1 j:0
2020/10/27 04:52:14 [debug] 22406\#0: epoll: fd:9 ev:0001 d:056DC11C
2020/10/27 04:52:14 [debug] 22390\#0: child: 1 22393 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:52:14 [debug] 22390\#0: pass close channel s:1 pid:22393 to:22401
2020/10/27 04:52:14 [debug] 22390\#0: pass close channel s:1 pid:22393 to:22406
2020/10/27 04:52:14 [debug] 22406\#0: channel handler
'
109-timer-hup.t TEST 4: trying to add new timer after HUP reload ==22428== Invalid read of size 4
==22428== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22428== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22428== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22428== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22428== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22428== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22428== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22428== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22428== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22428== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22428== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22428== by 0x8062D5B: main (nginx.c:385)
==22428== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22428==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_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 ==22428==
==22428== Process terminating with default action of signal 11 (SIGSEGV)
==22428== Access not within mapped region at address 0x0
==22428== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22428== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22428== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22428== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22428== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22428== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22428== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22428== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22428== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22428== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22428== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22428== by 0x8062D5B: main (nginx.c:385)
==22428== If you believe this happened as a result of a stack
==22428== overflow in your program's main thread (unlikely but
==22428== possible), you can try to increase the size of the
==22428== main thread stack using the --main-stacksize= flag.
==22428== 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:52:17 [alert] 22390\#0: worker process 22406 exited on signal 11" (req 1) 2020/10/27 04:52:17 [debug] 22390\#0: shmtx forced unlock
2020/10/27 04:52:17 [debug] 22390\#0: wake up, sigio 0
2020/10/27 04:52:17 [debug] 22390\#0: reap children
2020/10/27 04:52:17 [debug] 22390\#0: child: 0 22428 e:0 t:0 d:0 r:1 j:0
2020/10/27 04:52:17 [debug] 22390\#0: child: 1 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:52:17 [debug] 22390\#0: child: 2 22406 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:52:17 [debug] 22390\#0: pass close channel s:2 pid:22406 to:22428
2020/10/27 04:52:17 [debug] 22390\#0: sigsuspend
2020/10/27 04:52:16 [debug] 22428\#0: testing the EPOLLRDHUP flag: success
'
109-timer-hup.t TEST 2: multiple timers ==22441== Invalid read of size 4
==22441== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22441== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22441== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22441== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22441== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22441== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22441== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22441== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22441== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22441== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22441== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22441== by 0x8062D5B: main (nginx.c:385)
==22441== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22441==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_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 ==22441==
==22441== Process terminating with default action of signal 11 (SIGSEGV)
==22441== Access not within mapped region at address 0x0
==22441== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22441== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22441== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22441== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22441== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22441== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22441== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22441== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22441== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22441== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22441== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22441== by 0x8062D5B: main (nginx.c:385)
==22441== If you believe this happened as a result of a stack
==22441== overflow in your program's main thread (unlikely but
==22441== possible), you can try to increase the size of the
==22441== main thread stack using the --main-stacksize= flag.
==22441== 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 - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:52:19 [alert] 22390\#0: worker process 22428 exited on signal 11" (req 0) 2020/10/27 04:52:19 [debug] 22390\#0: shmtx forced unlock
2020/10/27 04:52:18 [debug] 22441\#0: epoll timer: -1
2020/10/27 04:52:19 [debug] 22390\#0: wake up, sigio 0
2020/10/27 04:52:19 [debug] 22390\#0: reap children
2020/10/27 04:52:19 [debug] 22390\#0: child: 0 22428 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:52:19 [debug] 22390\#0: pass close channel s:0 pid:22428 to:22436
2020/10/27 04:52:19 [debug] 22390\#0: pass close channel s:0 pid:22428 to:22441
2020/10/27 04:52:19 [debug] 22390\#0: child: 1 22436 e:1 t:0 d:0 r:1 j:0
2020/10/27 04:52:19 [debug] 22390\#0: child: 2 22441 e:0 t:0 d:0 r:1 j:0
'
109-timer-hup.t TEST 2: multiple timers ==22463== Invalid read of size 4
==22463== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22463== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22463== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22463== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22463== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22463== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22463== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22463== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22463== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22463== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22463== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22463== by 0x8062D5B: main (nginx.c:385)
==22463== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22463==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_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 ==22463==
==22463== Process terminating with default action of signal 11 (SIGSEGV)
==22463== Access not within mapped region at address 0x0
==22463== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22463== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22463== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22463== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22463== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22463== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22463== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22463== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22463== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22463== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22463== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22463== by 0x8062D5B: main (nginx.c:385)
==22463== If you believe this happened as a result of a stack
==22463== overflow in your program's main thread (unlikely but
==22463== possible), you can try to increase the size of the
==22463== main thread stack using the --main-stacksize= flag.
==22463== 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:52:22 [alert] 22390\#0: worker process 22441 exited on signal 11" (req 1) 2020/10/27 04:52:22 [debug] 22390\#0: shmtx forced unlock
2020/10/27 04:52:22 [debug] 22390\#0: wake up, sigio 0
2020/10/27 04:52:22 [debug] 22390\#0: reap children
2020/10/27 04:52:22 [debug] 22390\#0: child: 0 22463 e:0 t:0 d:0 r:1 j:0
2020/10/27 04:52:22 [debug] 22390\#0: child: 1 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:52:22 [debug] 22390\#0: child: 2 22441 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:52:22 [debug] 22390\#0: pass close channel s:2 pid:22441 to:22463
2020/10/27 04:52:22 [debug] 22390\#0: sigsuspend
2020/10/27 04:52:21 [debug] 22463\#0: malloc: 04B6ABB0:12
'
109-timer-hup.t TEST 5: HUP reload should abort pending timers ==22476== Invalid read of size 4
==22476== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22476== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22476== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22476== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22476== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22476== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22476== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22476== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22476== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22476== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22476== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22476== by 0x8062D5B: main (nginx.c:385)
==22476== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22476==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_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 ==22476==
==22476== Process terminating with default action of signal 11 (SIGSEGV)
==22476== Access not within mapped region at address 0x0
==22476== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22476== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22476== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22476== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22476== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22476== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22476== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22476== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22476== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22476== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22476== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22476== by 0x8062D5B: main (nginx.c:385)
==22476== If you believe this happened as a result of a stack
==22476== overflow in your program's main thread (unlikely but
==22476== possible), you can try to increase the size of the
==22476== main thread stack using the --main-stacksize= flag.
==22476== The main thread stack size used in this run was 8388608.
==22476== 512 bytes in 1 blocks are definitely lost in loss record 2,650 of 2,876
==22476== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==22476== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==22476== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22476== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22476== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==22476== by 0x408A8C6: ir_nextk (lj_ir.c:175)
==22476== by 0x408A8C6: lj_ir_kgc (lj_ir.c:286)
==22476== by 0x409ED21: lj_record_ins (lj_record.c:2110)
==22476== by 0x40BB16A: trace_state (lj_trace.c:680)
==22476== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22476== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22476== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==22476== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22476== by 0x407FA29: lua_resume (lj_api.c:1296)
==22476== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22476== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==22476== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==22476== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22476== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22476== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22476== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22476== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22476== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==22476== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22476== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22476== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22476== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22476== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22476== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22476== by 0x8062D5B: main (nginx.c:385)
==22476==
{
<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 - pattern "[alert]" should not match any line in error.log but matches line "2020/10/27 04:52:25 [alert] 22390\#0: worker process 22463 exited on signal 11" (req 0) 2020/10/27 04:52:25 [debug] 22390\#0: shmtx forced unlock
2020/10/27 04:52:25 [debug] 22390\#0: wake up, sigio 0
2020/10/27 04:52:25 [debug] 22390\#0: reap children
2020/10/27 04:52:25 [debug] 22390\#0: child: 0 22463 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:52:25 [debug] 22390\#0: pass close channel s:0 pid:22463 to:22468
2020/10/27 04:52:25 [debug] 22390\#0: pass close channel s:0 pid:22463 to:22476
2020/10/27 04:52:25 [debug] 22390\#0: child: 1 22468 e:1 t:0 d:0 r:1 j:0
2020/10/27 04:52:25 [debug] 22390\#0: child: 2 22476 e:0 t:0 d:0 r:1 j:0
2020/10/27 04:52:25 [debug] 22390\#0: sigsuspend
'
109-timer-hup.t TEST 5: HUP reload should abort pending timers ==22498== Invalid read of size 4
==22498== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22498== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22498== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22498== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22498== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22498== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22498== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22498== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22498== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22498== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22498== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22498== by 0x8062D5B: main (nginx.c:385)
==22498== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22498==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_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 ==22498==
==22498== Process terminating with default action of signal 11 (SIGSEGV)
==22498== Access not within mapped region at address 0x0
==22498== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22498== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22498== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22498== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22498== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22498== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22498== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22498== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22498== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22498== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22498== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22498== by 0x8062D5B: main (nginx.c:385)
==22498== If you believe this happened as a result of a stack
==22498== overflow in your program's main thread (unlikely but
==22498== possible), you can try to increase the size of the
==22498== main thread stack using the --main-stacksize= flag.
==22498== The main thread stack size used in this run was 8388608.
==22498== 512 bytes in 1 blocks are definitely lost in loss record 2,634 of 2,857
==22498== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==22498== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==22498== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22498== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22498== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==22498== by 0x408A8C6: ir_nextk (lj_ir.c:175)
==22498== by 0x408A8C6: lj_ir_kgc (lj_ir.c:286)
==22498== by 0x409ED21: lj_record_ins (lj_record.c:2110)
==22498== by 0x40BB16A: trace_state (lj_trace.c:680)
==22498== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22498== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22498== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==22498== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22498== by 0x407FA29: lua_resume (lj_api.c:1296)
==22498== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22498== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==22498== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==22498== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22498== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22498== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22498== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22498== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22498== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==22498== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22498== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22498== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22498== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22498== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22498== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22498== by 0x8062D5B: main (nginx.c:385)
==22498==
{
<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:52:28 [alert] 22390\#0: worker process 22476 exited on signal 11" (req 1) 2020/10/27 04:52:28 [debug] 22390\#0: shmtx forced unlock
2020/10/27 04:52:28 [debug] 22390\#0: wake up, sigio 0
2020/10/27 04:52:28 [debug] 22390\#0: reap children
2020/10/27 04:52:28 [debug] 22390\#0: child: 0 22498 e:0 t:0 d:0 r:1 j:0
2020/10/27 04:52:28 [debug] 22390\#0: child: 1 -1 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:52:28 [debug] 22390\#0: child: 2 22476 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:52:28 [debug] 22390\#0: pass close channel s:2 pid:22476 to:22498
2020/10/27 04:52:28 [debug] 22390\#0: sigsuspend
2020/10/27 04:52:27 [debug] 22498\#0: malloc: 0513B188:12
'
109-timer-hup.t TEST 7: HUP reload should abort pending timers (fuzz test) ==22511== Invalid read of size 4
==22511== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22511== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22511== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22511== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22511== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22511== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22511== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22511== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22511== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22511== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22511== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22511== by 0x8062D5B: main (nginx.c:385)
==22511== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22511==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_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) ==22511==
==22511== Process terminating with default action of signal 11 (SIGSEGV)
==22511== Access not within mapped region at address 0x0
==22511== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22511== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22511== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22511== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22511== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22511== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22511== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22511== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22511== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22511== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22511== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22511== by 0x8062D5B: main (nginx.c:385)
==22511== If you believe this happened as a result of a stack
==22511== overflow in your program's main thread (unlikely but
==22511== possible), you can try to increase the size of the
==22511== main thread stack using the --main-stacksize= flag.
==22511== The main thread stack size used in this run was 8388608.
==22511== 256 bytes in 1 blocks are definitely lost in loss record 2,452 of 2,859
==22511== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==22511== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==22511== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22511== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22511== by 0x408A24F: lj_ir_growtop (lj_ir.c:81)
==22511== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==22511== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==22511== by 0x40A2F62: lj_record_setup (lj_record.c:2601)
==22511== by 0x40BAA40: trace_start (lj_trace.c:476)
==22511== by 0x40BAFE0: trace_state (lj_trace.c:661)
==22511== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22511== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22511== by 0x40BC168: lj_trace_hot (lj_trace.c:756)
==22511== by 0x4069029: lj_vm_hotloop (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22511== by 0x407FA29: lua_resume (lj_api.c:1296)
==22511== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22511== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==22511== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==22511== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22511== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22511== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22511== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22511== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22511== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==22511== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22511== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22511== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22511== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22511== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22511== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22511== by 0x8062D5B: main (nginx.c:385)
==22511==
{
<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) ==22533== Invalid read of size 4
==22533== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22533== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22533== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22533== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22533== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22533== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22533== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22533== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22533== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22533== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22533== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22533== by 0x8062D5B: main (nginx.c:385)
==22533== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22533==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_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) ==22533==
==22533== Process terminating with default action of signal 11 (SIGSEGV)
==22533== Access not within mapped region at address 0x0
==22533== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22533== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22533== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22533== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22533== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22533== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22533== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22533== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22533== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22533== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22533== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22533== by 0x8062D5B: main (nginx.c:385)
==22533== If you believe this happened as a result of a stack
==22533== overflow in your program's main thread (unlikely but
==22533== possible), you can try to increase the size of the
==22533== main thread stack using the --main-stacksize= flag.
==22533== The main thread stack size used in this run was 8388608.
==22533== 256 bytes in 1 blocks are definitely lost in loss record 2,456 of 2,863
==22533== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==22533== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==22533== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22533== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22533== by 0x408A24F: lj_ir_growtop (lj_ir.c:81)
==22533== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==22533== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==22533== by 0x40A2F62: lj_record_setup (lj_record.c:2601)
==22533== by 0x40BAA40: trace_start (lj_trace.c:476)
==22533== by 0x40BAFE0: trace_state (lj_trace.c:661)
==22533== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22533== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22533== by 0x40BC168: lj_trace_hot (lj_trace.c:756)
==22533== by 0x4069029: lj_vm_hotloop (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22533== by 0x407FA29: lua_resume (lj_api.c:1296)
==22533== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22533== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==22533== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==22533== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22533== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22533== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22533== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22533== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22533== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==22533== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22533== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22533== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22533== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22533== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22533== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22533== by 0x8062D5B: main (nginx.c:385)
==22533==
{
<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:52:39 [alert] 22390\#0: worker process 22511 exited on signal 11" (req 1) 2020/10/27 04:52:39 [debug] 22390\#0: shmtx forced unlock
2020/10/27 04:52:39 [debug] 22390\#0: wake up, sigio 0
2020/10/27 04:52:39 [debug] 22390\#0: reap children
2020/10/27 04:52:39 [debug] 22390\#0: child: 0 22511 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:52:39 [debug] 22390\#0: pass close channel s:0 pid:22511 to:22533
2020/10/27 04:52:39 [debug] 22390\#0: child: 1 22533 e:0 t:0 d:0 r:1 j:0
2020/10/27 04:52:39 [debug] 22390\#0: sigsuspend
2020/10/27 04:52:38 [debug] 22533\#0: malloc: 05B0F760:12
2020/10/27 04:52:38 [debug] 22533\#0: malloc: 0496F758:8
'
109-timer-hup.t TEST 1: single timer ==22546== Invalid read of size 4
==22546== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22546== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22546== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22546== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22546== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22546== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22546== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22546== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22546== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22546== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22546== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22546== by 0x8062D5B: main (nginx.c:385)
==22546== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22546==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_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 ==22546==
==22546== Process terminating with default action of signal 11 (SIGSEGV)
==22546== Access not within mapped region at address 0x0
==22546== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22546== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22546== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22546== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22546== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22546== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22546== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22546== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22546== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22546== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22546== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22546== by 0x8062D5B: main (nginx.c:385)
==22546== If you believe this happened as a result of a stack
==22546== overflow in your program's main thread (unlikely but
==22546== possible), you can try to increase the size of the
==22546== main thread stack using the --main-stacksize= flag.
==22546== 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 ==22568== Invalid read of size 4
==22568== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22568== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22568== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22568== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22568== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22568== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22568== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22568== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22568== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22568== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22568== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22568== by 0x8062D5B: main (nginx.c:385)
==22568== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22568==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_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 ==22568==
==22568== Process terminating with default action of signal 11 (SIGSEGV)
==22568== Access not within mapped region at address 0x0
==22568== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22568== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22568== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22568== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22568== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22568== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22568== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22568== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22568== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22568== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22568== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==22568== by 0x8062D5B: main (nginx.c:385)
==22568== If you believe this happened as a result of a stack
==22568== overflow in your program's main thread (unlikely but
==22568== possible), you can try to increase the size of the
==22568== main thread stack using the --main-stacksize= flag.
==22568== 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:52:51 [alert] 22390\#0: worker process 22546 exited on signal 11" (req 1) 2020/10/27 04:52:51 [debug] 22390\#0: shmtx forced unlock
2020/10/27 04:52:51 [debug] 22390\#0: wake up, sigio 0
2020/10/27 04:52:51 [debug] 22390\#0: reap children
2020/10/27 04:52:51 [debug] 22390\#0: child: 0 22568 e:0 t:0 d:0 r:1 j:0
2020/10/27 04:52:51 [debug] 22390\#0: child: 1 22546 e:1 t:1 d:0 r:1 j:0
2020/10/27 04:52:51 [debug] 22390\#0: pass close channel s:1 pid:22546 to:22568
2020/10/27 04:52:51 [debug] 22390\#0: sigsuspend
2020/10/27 04:52:50 [debug] 22568\#0: malloc: 04A69B48:12
2020/10/27 04:52:50 [debug] 22568\#0: malloc: 04B62D70:8
'
114-config.t TEST 1: ngx.config.debug - Can't connect to 127.0.0.1:1984: Connection refused ==22574== Invalid read of size 4
==22574== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22574== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22574== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22574== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22574== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22574== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22574== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22574== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22574== by 0x8062D4E: main (nginx.c:382)
==22574== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22574==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
114-config.t TEST 1: ngx.config.debug - Can't connect to 127.0.0.1:1984: Connection refused ==22574==
==22574== Process terminating with default action of signal 11 (SIGSEGV)
==22574== Access not within mapped region at address 0x0
==22574== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22574== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22574== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22574== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22574== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22574== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22574== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22574== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22574== by 0x8062D4E: main (nginx.c:382)
==22574== If you believe this happened as a result of a stack
==22574== overflow in your program's main thread (unlikely but
==22574== possible), you can try to increase the size of the
==22574== main thread stack using the --main-stacksize= flag.
==22574== 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 (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==22576== Invalid read of size 4
==22576== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22576== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22576== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22576== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22576== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22576== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22576== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22576== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22576== by 0x8062D4E: main (nginx.c:382)
==22576== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22576==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
114-config.t TEST 2: ngx.config.subystem - Can't connect to 127.0.0.1:1984: Connection refused ==22576==
==22576== Process terminating with default action of signal 11 (SIGSEGV)
==22576== Access not within mapped region at address 0x0
==22576== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22576== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22576== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22576== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22576== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22576== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22576== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22576== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22576== by 0x8062D4E: main (nginx.c:382)
==22576== If you believe this happened as a result of a stack
==22576== overflow in your program's main thread (unlikely but
==22576== possible), you can try to increase the size of the
==22576== main thread stack using the --main-stacksize= flag.
==22576== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 2: \t - Can't connect to 127.0.0.1:1984: Connection refused ==22581== Invalid read of size 4
==22581== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22581== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22581== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22581== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22581== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22581== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22581== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22581== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22581== by 0x8062D4E: main (nginx.c:382)
==22581== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22581==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
115-quote-sql-str.t TEST 2: \t - Can't connect to 127.0.0.1:1984: Connection refused ==22581==
==22581== Process terminating with default action of signal 11 (SIGSEGV)
==22581== Access not within mapped region at address 0x0
==22581== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22581== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22581== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22581== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22581== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22581== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22581== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22581== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22581== by 0x8062D4E: main (nginx.c:382)
==22581== If you believe this happened as a result of a stack
==22581== overflow in your program's main thread (unlikely but
==22581== possible), you can try to increase the size of the
==22581== main thread stack using the --main-stacksize= flag.
==22581== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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'
'
115-quote-sql-str.t TEST 4: \Z - Can't connect to 127.0.0.1:1984: Connection refused ==22583== Invalid read of size 4
==22583== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22583== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22583== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22583== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22583== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22583== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22583== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22583== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22583== by 0x8062D4E: main (nginx.c:382)
==22583== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22583==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
115-quote-sql-str.t TEST 4: \Z - Can't connect to 127.0.0.1:1984: Connection refused ==22583==
==22583== Process terminating with default action of signal 11 (SIGSEGV)
==22583== Access not within mapped region at address 0x0
==22583== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22583== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22583== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22583== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22583== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22583== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22583== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22583== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22583== by 0x8062D4E: main (nginx.c:382)
==22583== If you believe this happened as a result of a stack
==22583== overflow in your program's main thread (unlikely but
==22583== possible), you can try to increase the size of the
==22583== main thread stack using the --main-stacksize= flag.
==22583== 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 (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==22585== Invalid read of size 4
==22585== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22585== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22585== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22585== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22585== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22585== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22585== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22585== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22585== by 0x8062D4E: main (nginx.c:382)
==22585== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22585==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
115-quote-sql-str.t TEST 3: \b - Can't connect to 127.0.0.1:1984: Connection refused ==22585==
==22585== Process terminating with default action of signal 11 (SIGSEGV)
==22585== Access not within mapped region at address 0x0
==22585== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22585== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22585== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22585== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22585== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22585== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22585== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22585== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22585== by 0x8062D4E: main (nginx.c:382)
==22585== If you believe this happened as a result of a stack
==22585== overflow in your program's main thread (unlikely but
==22585== possible), you can try to increase the size of the
==22585== main thread stack using the --main-stacksize= flag.
==22585== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==22587== Invalid read of size 4
==22587== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22587== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22587== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22587== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22587== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22587== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22587== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22587== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22587== by 0x8062D4E: main (nginx.c:382)
==22587== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22587==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
115-quote-sql-str.t TEST 1: \0 - Can't connect to 127.0.0.1:1984: Connection refused ==22587==
==22587== Process terminating with default action of signal 11 (SIGSEGV)
==22587== Access not within mapped region at address 0x0
==22587== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22587== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22587== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22587== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22587== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22587== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22587== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22587== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22587== by 0x8062D4E: main (nginx.c:382)
==22587== If you believe this happened as a result of a stack
==22587== overflow in your program's main thread (unlikely but
==22587== possible), you can try to increase the size of the
==22587== main thread stack using the --main-stacksize= flag.
==22587== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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'
'
116-raw-req-socket.t TEST 4: ngx.print after ngx.req.socket(true) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22592== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
116-raw-req-socket.t TEST 4: ngx.print after ngx.req.socket(true) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22592== by 0x8062D4E: main (nginx.c:382)
==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.

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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - Can't connect to 127.0.0.1:1984: Connection refused ==22594== Invalid read of size 4
==22594== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22594== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22594== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22594== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22594== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22594== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22594== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22594== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22594== by 0x8062D4E: main (nginx.c:382)
==22594== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22594==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
116-raw-req-socket.t TEST 3: ngx.say after ngx.req.socket(true) - Can't connect to 127.0.0.1:1984: Connection refused ==22594==
==22594== Process terminating with default action of signal 11 (SIGSEGV)
==22594== Access not within mapped region at address 0x0
==22594== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22594== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22594== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22594== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22594== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22594== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22594== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22594== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22594== by 0x8062D4E: main (nginx.c:382)
==22594== If you believe this happened as a result of a stack
==22594== overflow in your program's main thread (unlikely but
==22594== possible), you can try to increase the size of the
==22594== main thread stack using the --main-stacksize= flag.
==22594== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 2: multiple raw req sockets - Can't connect to 127.0.0.1:1984: Connection refused ==22596== Invalid read of size 4
==22596== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22596== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22596== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22596== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22596== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22596== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22596== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22596== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22596== by 0x8062D4E: main (nginx.c:382)
==22596== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22596==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
116-raw-req-socket.t TEST 2: multiple raw req sockets - Can't connect to 127.0.0.1:1984: Connection refused ==22596==
==22596== Process terminating with default action of signal 11 (SIGSEGV)
==22596== Access not within mapped region at address 0x0
==22596== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22596== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22596== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22596== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22596== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22596== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22596== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22596== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22596== by 0x8062D4E: main (nginx.c:382)
==22596== If you believe this happened as a result of a stack
==22596== overflow in your program's main thread (unlikely but
==22596== possible), you can try to increase the size of the
==22596== main thread stack using the --main-stacksize= flag.
==22596== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - pattern "server: failed to get raw req socket2: duplicate call" should match a line in error.log (req 1)
116-raw-req-socket.t TEST 14: simulated lingering close - Can't connect to 127.0.0.1:1984: Connection refused ==22598== Invalid read of size 4
==22598== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22598== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22598== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22598== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22598== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22598== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22598== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22598== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22598== by 0x8062D4E: main (nginx.c:382)
==22598== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22598==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
116-raw-req-socket.t TEST 14: simulated lingering close - Can't connect to 127.0.0.1:1984: Connection refused ==22598==
==22598== Process terminating with default action of signal 11 (SIGSEGV)
==22598== Access not within mapped region at address 0x0
==22598== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22598== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22598== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22598== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22598== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22598== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22598== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22598== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22598== by 0x8062D4E: main (nginx.c:382)
==22598== If you believe this happened as a result of a stack
==22598== overflow in your program's main thread (unlikely but
==22598== possible), you can try to increase the size of the
==22598== main thread stack using the --main-stacksize= flag.
==22598== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - pattern "stream lua shutdown socket write direction" should match a line in error.log (req 1)
116-raw-req-socket.t TEST 10: receiveuntil - Can't connect to 127.0.0.1:1984: Connection refused ==22600== Invalid read of size 4
==22600== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22600== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22600== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22600== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22600== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22600== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22600== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22600== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22600== by 0x8062D4E: main (nginx.c:382)
==22600== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22600==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
116-raw-req-socket.t TEST 10: receiveuntil - Can't connect to 127.0.0.1:1984: Connection refused ==22600==
==22600== Process terminating with default action of signal 11 (SIGSEGV)
==22600== Access not within mapped region at address 0x0
==22600== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22600== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22600== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22600== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22600== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22600== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22600== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22600== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22600== by 0x8062D4E: main (nginx.c:382)
==22600== If you believe this happened as a result of a stack
==22600== overflow in your program's main thread (unlikely but
==22600== possible), you can try to increase the size of the
==22600== main thread stack using the --main-stacksize= flag.
==22600== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "stream lua shutdown socket write direction" should match a line in error.log (req 1)
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 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22602== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
116-raw-req-socket.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22602== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 8: on_abort called during ngx.sleep() - Can't connect to 127.0.0.1:1984: Connection refused ==22604== Invalid read of size 4
==22604== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22604== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22604== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22604== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22604== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22604== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22604== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22604== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22604== by 0x8062D4E: main (nginx.c:382)
==22604== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22604==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
116-raw-req-socket.t TEST 8: on_abort called during ngx.sleep() - Can't connect to 127.0.0.1:1984: Connection refused ==22604==
==22604== Process terminating with default action of signal 11 (SIGSEGV)
==22604== Access not within mapped region at address 0x0
==22604== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22604== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22604== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22604== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22604== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22604== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22604== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22604== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22604== by 0x8062D4E: main (nginx.c:382)
==22604== If you believe this happened as a result of a stack
==22604== overflow in your program's main thread (unlikely but
==22604== possible), you can try to increase the size of the
==22604== main thread stack using the --main-stacksize= flag.
==22604== 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() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 8: on_abort called during ngx.sleep() - pattern "msg received: hello" should match a line in error.log (req 1)
116-raw-req-socket.t TEST 13: shutdown can only be called once and prevents all further output - Can't connect to 127.0.0.1:1984: Connection refused ==22606== Invalid read of size 4
==22606== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22606== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22606== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22606== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22606== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22606== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22606== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22606== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22606== by 0x8062D4E: main (nginx.c:382)
==22606== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22606==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
116-raw-req-socket.t TEST 13: shutdown can only be called once and prevents all further output - Can't connect to 127.0.0.1:1984: Connection refused ==22606==
==22606== Process terminating with default action of signal 11 (SIGSEGV)
==22606== Access not within mapped region at address 0x0
==22606== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22606== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22606== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22606== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22606== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22606== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22606== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22606== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22606== by 0x8062D4E: main (nginx.c:382)
==22606== If you believe this happened as a result of a stack
==22606== overflow in your program's main thread (unlikely but
==22606== possible), you can try to increase the size of the
==22606== main thread stack using the --main-stacksize= flag.
==22606== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 13: shutdown can only be called once and prevents all further output - pattern "stream lua shutdown socket write direction" should match a line in error.log (req 1)
116-raw-req-socket.t TEST 5: ngx.eof after ngx.req.socket(true) - Can't connect to 127.0.0.1:1984: Connection refused ==22608== Invalid read of size 4
==22608== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22608== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22608== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22608== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22608== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22608== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22608== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22608== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22608== by 0x8062D4E: main (nginx.c:382)
==22608== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22608==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
116-raw-req-socket.t TEST 5: ngx.eof after ngx.req.socket(true) - Can't connect to 127.0.0.1:1984: Connection refused ==22608==
==22608== Process terminating with default action of signal 11 (SIGSEGV)
==22608== Access not within mapped region at address 0x0
==22608== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22608== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22608== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22608== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22608== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22608== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22608== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22608== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22608== by 0x8062D4E: main (nginx.c:382)
==22608== If you believe this happened as a result of a stack
==22608== overflow in your program's main thread (unlikely but
==22608== possible), you can try to increase the size of the
==22608== main thread stack using the --main-stacksize= flag.
==22608== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 12: read chunked request body with raw req socket - Can't connect to 127.0.0.1:1984: Connection refused ==22610== Invalid read of size 4
==22610== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22610== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22610== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22610== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22610== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22610== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22610== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22610== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22610== by 0x8062D4E: main (nginx.c:382)
==22610== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22610==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==22610==
==22610== Process terminating with default action of signal 11 (SIGSEGV)
==22610== Access not within mapped region at address 0x0
==22610== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22610== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22610== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22610== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22610== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22610== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22610== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22610== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22610== by 0x8062D4E: main (nginx.c:382)
==22610== If you believe this happened as a result of a stack
==22610== overflow in your program's main thread (unlikely but
==22610== possible), you can try to increase the size of the
==22610== main thread stack using the --main-stacksize= flag.
==22610== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 11: request body not read yet - Can't connect to 127.0.0.1:1984: Connection refused ==22612== Invalid read of size 4
==22612== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22612== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22612== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22612== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22612== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22612== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22612== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22612== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22612== by 0x8062D4E: main (nginx.c:382)
==22612== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22612==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
116-raw-req-socket.t TEST 11: request body not read yet - Can't connect to 127.0.0.1:1984: Connection refused ==22612==
==22612== Process terminating with default action of signal 11 (SIGSEGV)
==22612== Access not within mapped region at address 0x0
==22612== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22612== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22612== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22612== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22612== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22612== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22612== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22612== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22612== by 0x8062D4E: main (nginx.c:382)
==22612== If you believe this happened as a result of a stack
==22612== overflow in your program's main thread (unlikely but
==22612== possible), you can try to increase the size of the
==22612== main thread stack using the --main-stacksize= flag.
==22612== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 7: receive timeout - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22614== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
116-raw-req-socket.t TEST 7: receive timeout - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22614== by 0x8062D4E: main (nginx.c:382)
==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.

116-raw-req-socket.t TEST 7: receive timeout - status code ok got: ''
expected: '200'
116-raw-req-socket.t TEST 7: receive timeout - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "stream lua tcp socket read timed out" should match a line in error.log (req 1)
116-raw-req-socket.t TEST 7: receive timeout - pattern "server: 1: failed to receive: timeout, received: ab" should match a line in error.log (req 1)
116-raw-req-socket.t TEST 7: receive timeout - pattern "server: 2: failed to receive: timeout, received: " should match a line in error.log (req 1)
116-raw-req-socket.t TEST 6: ngx.flush after ngx.req.socket(true) - Can't connect to 127.0.0.1:1984: Connection refused ==22616== Invalid read of size 4
==22616== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22616== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22616== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22616== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22616== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22616== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22616== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22616== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22616== by 0x8062D4E: main (nginx.c:382)
==22616== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22616==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
116-raw-req-socket.t TEST 6: ngx.flush after ngx.req.socket(true) - Can't connect to 127.0.0.1:1984: Connection refused ==22616==
==22616== Process terminating with default action of signal 11 (SIGSEGV)
==22616== Access not within mapped region at address 0x0
==22616== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22616== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22616== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22616== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22616== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22616== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22616== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22616== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22616== by 0x8062D4E: main (nginx.c:382)
==22616== If you believe this happened as a result of a stack
==22616== overflow in your program's main thread (unlikely but
==22616== possible), you can try to increase the size of the
==22616== main thread stack using the --main-stacksize= flag.
==22616== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
116-raw-req-socket.t TEST 6: ngx.flush after ngx.req.socket(true) - status code ok got: ''
expected: '200'
117-raw-req-socket-timeout.t TEST 1: pending response data - Can't connect to 127.0.0.1:1984: Connection refused ==22622== Invalid read of size 4
==22622== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22622== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22622== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22622== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22622== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22622== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==22622== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==22622== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22622== by 0x8062D4E: main (nginx.c:382)
==22622== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22622==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_process_cycle
fun:main
}
117-raw-req-socket-timeout.t TEST 1: pending response data - Can't connect to 127.0.0.1:1984: Connection refused ==22622==
==22622== Process terminating with default action of signal 11 (SIGSEGV)
==22622== Access not within mapped region at address 0x0
==22622== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22622== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22622== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22622== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22622== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22622== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==22622== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==22622== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22622== by 0x8062D4E: main (nginx.c:382)
==22622== If you believe this happened as a result of a stack
==22622== overflow in your program's main thread (unlikely but
==22622== possible), you can try to increase the size of the
==22622== main thread stack using the --main-stacksize= flag.
==22622== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
117-raw-req-socket-timeout.t TEST 1: pending response data - pattern "server: failed to get raw req socket: pending data to write" should match a line in error.log (req 1)
117-raw-req-socket-timeout.t TEST 2: send timeout - Can't connect to 127.0.0.1:1984: Connection refused ==22624== Invalid read of size 4
==22624== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22624== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22624== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22624== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22624== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22624== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==22624== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==22624== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22624== by 0x8062D4E: main (nginx.c:382)
==22624== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22624==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_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 ==22624==
==22624== Process terminating with default action of signal 11 (SIGSEGV)
==22624== Access not within mapped region at address 0x0
==22624== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22624== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22624== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22624== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22624== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22624== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==22624== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==22624== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22624== by 0x8062D4E: main (nginx.c:382)
==22624== If you believe this happened as a result of a stack
==22624== overflow in your program's main thread (unlikely but
==22624== possible), you can try to increase the size of the
==22624== main thread stack using the --main-stacksize= flag.
==22624== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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)
119-config-prefix.t TEST 1: content_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==22629== Invalid read of size 4
==22629== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22629== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22629== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22629== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22629== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22629== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22629== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22629== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22629== by 0x8062D4E: main (nginx.c:382)
==22629== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22629==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
119-config-prefix.t TEST 1: content_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==22629==
==22629== Process terminating with default action of signal 11 (SIGSEGV)
==22629== Access not within mapped region at address 0x0
==22629== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22629== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22629== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22629== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22629== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22629== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22629== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22629== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22629== by 0x8062D4E: main (nginx.c:382)
==22629== If you believe this happened as a result of a stack
==22629== overflow in your program's main thread (unlikely but
==22629== possible), you can try to increase the size of the
==22629== main thread stack using the --main-stacksize= flag.
==22629== 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 (aborted) '
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 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==22634== Invalid read of size 4
==22634== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22634== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22634== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22634== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22634== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22634== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22634== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22634== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22634== by 0x8062D4E: main (nginx.c:382)
==22634== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22634==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
120-re-find.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==22634==
==22634== Process terminating with default action of signal 11 (SIGSEGV)
==22634== Access not within mapped region at address 0x0
==22634== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22634== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22634== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22634== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22634== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22634== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22634== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22634== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22634== by 0x8062D4E: main (nginx.c:382)
==22634== If you believe this happened as a result of a stack
==22634== overflow in your program's main thread (unlikely but
==22634== possible), you can try to increase the size of the
==22634== main thread stack using the --main-stacksize= flag.
==22634== The main thread stack size used in this run was 8388608.
==22634== 1,024 bytes in 1 blocks are definitely lost in loss record 2,759 of 2,862
==22634== at 0x402C768: realloc (vg_replace_malloc.c:834)
==22634== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22634== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22634== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==22634== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==22634== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==22634== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==22634== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==22634== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==22634== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22634== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==22634== by 0x40BB675: trace_state (lj_trace.c:690)
==22634== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22634== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22634== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==22634== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22634== by 0x407FA29: lua_resume (lj_api.c:1296)
==22634== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22634== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==22634== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==22634== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22634== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22634== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22634== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22634== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22634== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==22634== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22634== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22634== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22634== by 0x8062D4E: main (nginx.c:382)
==22634==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 19: named subpatterns w/ extraction - Can't connect to 127.0.0.1:1984: Connection refused ==22636== Invalid read of size 4
==22636== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22636== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22636== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22636== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22636== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22636== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22636== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22636== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22636== by 0x8062D4E: main (nginx.c:382)
==22636== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22636==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
120-re-find.t TEST 19: named subpatterns w/ extraction - Can't connect to 127.0.0.1:1984: Connection refused ==22636==
==22636== Process terminating with default action of signal 11 (SIGSEGV)
==22636== Access not within mapped region at address 0x0
==22636== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22636== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22636== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22636== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22636== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22636== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22636== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22636== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22636== by 0x8062D4E: main (nginx.c:382)
==22636== If you believe this happened as a result of a stack
==22636== overflow in your program's main thread (unlikely but
==22636== possible), you can try to increase the size of the
==22636== main thread stack using the --main-stacksize= flag.
==22636== The main thread stack size used in this run was 8388608.
==22636== 1,024 bytes in 1 blocks are definitely lost in loss record 2,766 of 2,870
==22636== at 0x402C768: realloc (vg_replace_malloc.c:834)
==22636== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22636== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22636== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==22636== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==22636== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==22636== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==22636== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==22636== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==22636== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22636== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==22636== by 0x40BB675: trace_state (lj_trace.c:690)
==22636== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22636== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22636== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==22636== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22636== by 0x407FA29: lua_resume (lj_api.c:1296)
==22636== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22636== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==22636== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==22636== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22636== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22636== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22636== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22636== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22636== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==22636== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22636== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22636== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22636== by 0x8062D4E: main (nginx.c:382)
==22636==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 11: single-line mode (dot all) - Can't connect to 127.0.0.1:1984: Connection refused ==22638== Invalid read of size 4
==22638== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22638== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22638== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22638== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22638== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22638== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22638== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22638== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22638== by 0x8062D4E: main (nginx.c:382)
==22638== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22638==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
120-re-find.t TEST 11: single-line mode (dot all) - Can't connect to 127.0.0.1:1984: Connection refused ==22638==
==22638== Process terminating with default action of signal 11 (SIGSEGV)
==22638== Access not within mapped region at address 0x0
==22638== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22638== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22638== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22638== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22638== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22638== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22638== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22638== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22638== by 0x8062D4E: main (nginx.c:382)
==22638== If you believe this happened as a result of a stack
==22638== overflow in your program's main thread (unlikely but
==22638== possible), you can try to increase the size of the
==22638== main thread stack using the --main-stacksize= flag.
==22638== The main thread stack size used in this run was 8388608.
==22638== 1,024 bytes in 1 blocks are definitely lost in loss record 2,767 of 2,868
==22638== at 0x402C768: realloc (vg_replace_malloc.c:834)
==22638== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22638== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22638== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==22638== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==22638== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==22638== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==22638== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==22638== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==22638== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22638== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==22638== by 0x40BB675: trace_state (lj_trace.c:690)
==22638== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22638== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22638== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==22638== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22638== by 0x407FA29: lua_resume (lj_api.c:1296)
==22638== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22638== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==22638== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==22638== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22638== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22638== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22638== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22638== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22638== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==22638== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22638== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22638== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22638== by 0x8062D4E: main (nginx.c:382)
==22638==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 18: match with ctx and a pos - Can't connect to 127.0.0.1:1984: Connection refused ==22640== Invalid read of size 4
==22640== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22640== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22640== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22640== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22640== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22640== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22640== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22640== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22640== by 0x8062D4E: main (nginx.c:382)
==22640== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22640==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
120-re-find.t TEST 18: match with ctx and a pos - Can't connect to 127.0.0.1:1984: Connection refused ==22640==
==22640== Process terminating with default action of signal 11 (SIGSEGV)
==22640== Access not within mapped region at address 0x0
==22640== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22640== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22640== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22640== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22640== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22640== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22640== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22640== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22640== by 0x8062D4E: main (nginx.c:382)
==22640== If you believe this happened as a result of a stack
==22640== overflow in your program's main thread (unlikely but
==22640== possible), you can try to increase the size of the
==22640== main thread stack using the --main-stacksize= flag.
==22640== The main thread stack size used in this run was 8388608.
==22640== 1,024 bytes in 1 blocks are definitely lost in loss record 2,756 of 2,857
==22640== at 0x402C768: realloc (vg_replace_malloc.c:834)
==22640== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22640== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22640== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==22640== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==22640== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==22640== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==22640== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==22640== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==22640== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22640== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==22640== by 0x40BB675: trace_state (lj_trace.c:690)
==22640== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22640== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22640== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==22640== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22640== by 0x407FA29: lua_resume (lj_api.c:1296)
==22640== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22640== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==22640== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==22640== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22640== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22640== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22640== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22640== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22640== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==22640== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22640== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22640== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22640== by 0x8062D4E: main (nginx.c:382)
==22640==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 4: not matched - Can't connect to 127.0.0.1:1984: Connection refused ==22642== Invalid read of size 4
==22642== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22642== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22642== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22642== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22642== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22642== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22642== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22642== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22642== by 0x8062D4E: main (nginx.c:382)
==22642== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22642==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
120-re-find.t TEST 4: not matched - Can't connect to 127.0.0.1:1984: Connection refused ==22642==
==22642== Process terminating with default action of signal 11 (SIGSEGV)
==22642== Access not within mapped region at address 0x0
==22642== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22642== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22642== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22642== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22642== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22642== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22642== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22642== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22642== by 0x8062D4E: main (nginx.c:382)
==22642== If you believe this happened as a result of a stack
==22642== overflow in your program's main thread (unlikely but
==22642== possible), you can try to increase the size of the
==22642== main thread stack using the --main-stacksize= flag.
==22642== The main thread stack size used in this run was 8388608.
==22642== 1,024 bytes in 1 blocks are definitely lost in loss record 2,754 of 2,857
==22642== at 0x402C768: realloc (vg_replace_malloc.c:834)
==22642== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22642== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22642== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==22642== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==22642== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==22642== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==22642== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==22642== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==22642== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22642== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==22642== by 0x40BB675: trace_state (lj_trace.c:690)
==22642== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22642== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22642== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==22642== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22642== by 0x407FA29: lua_resume (lj_api.c:1296)
==22642== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22642== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==22642== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==22642== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22642== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22642== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22642== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22642== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22642== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==22642== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22642== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22642== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22642== by 0x8062D4E: main (nginx.c:382)
==22642==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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.
'
120-re-find.t TEST 25: specify the group (0) - Can't connect to 127.0.0.1:1984: Connection refused ==22644== Invalid read of size 4
==22644== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22644== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22644== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22644== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22644== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22644== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22644== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22644== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22644== by 0x8062D4E: main (nginx.c:382)
==22644== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22644==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
120-re-find.t TEST 25: specify the group (0) - Can't connect to 127.0.0.1:1984: Connection refused ==22644==
==22644== Process terminating with default action of signal 11 (SIGSEGV)
==22644== Access not within mapped region at address 0x0
==22644== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22644== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22644== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22644== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22644== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22644== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22644== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22644== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22644== by 0x8062D4E: main (nginx.c:382)
==22644== If you believe this happened as a result of a stack
==22644== overflow in your program's main thread (unlikely but
==22644== possible), you can try to increase the size of the
==22644== main thread stack using the --main-stacksize= flag.
==22644== The main thread stack size used in this run was 8388608.
==22644== 1,024 bytes in 1 blocks are definitely lost in loss record 2,768 of 2,870
==22644== at 0x402C768: realloc (vg_replace_malloc.c:834)
==22644== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22644== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22644== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==22644== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==22644== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==22644== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==22644== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==22644== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==22644== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22644== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==22644== by 0x40BB675: trace_state (lj_trace.c:690)
==22644== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22644== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22644== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==22644== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22644== by 0x407FA29: lua_resume (lj_api.c:1296)
==22644== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22644== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==22644== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==22644== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22644== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22644== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22644== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22644== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22644== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==22644== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22644== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22644== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22644== by 0x8062D4E: main (nginx.c:382)
==22644==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 20: bad UTF-8 - Can't connect to 127.0.0.1:1984: Connection refused ==22646== Invalid read of size 4
==22646== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22646== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22646== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22646== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22646== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22646== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22646== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22646== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22646== by 0x8062D4E: main (nginx.c:382)
==22646== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22646==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
120-re-find.t TEST 20: bad UTF-8 - Can't connect to 127.0.0.1:1984: Connection refused ==22646==
==22646== Process terminating with default action of signal 11 (SIGSEGV)
==22646== Access not within mapped region at address 0x0
==22646== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22646== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22646== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22646== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22646== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22646== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22646== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22646== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22646== by 0x8062D4E: main (nginx.c:382)
==22646== If you believe this happened as a result of a stack
==22646== overflow in your program's main thread (unlikely but
==22646== possible), you can try to increase the size of the
==22646== main thread stack using the --main-stacksize= flag.
==22646== The main thread stack size used in this run was 8388608.
==22646== 1,024 bytes in 1 blocks are definitely lost in loss record 2,897 of 3,022
==22646== at 0x402C768: realloc (vg_replace_malloc.c:834)
==22646== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22646== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22646== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==22646== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==22646== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==22646== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==22646== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==22646== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==22646== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22646== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==22646== by 0x40BB675: trace_state (lj_trace.c:690)
==22646== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22646== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22646== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==22646== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22646== by 0x407FA29: lua_resume (lj_api.c:1296)
==22646== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22646== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==22646== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==22646== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22646== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22646== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22646== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22646== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22646== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==22646== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22646== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22646== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22646== by 0x8062D4E: main (nginx.c:382)
==22646==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 9: multi-line mode (. does not match \n) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22648== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
120-re-find.t TEST 9: multi-line mode (. does not match \n) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22648== by 0x8062D4E: main (nginx.c:382)
==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.
==22648== 1,024 bytes in 1 blocks are definitely lost in loss record 2,758 of 2,860
==22648== at 0x402C768: realloc (vg_replace_malloc.c:834)
==22648== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22648== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22648== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==22648== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==22648== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==22648== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==22648== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==22648== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==22648== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22648== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==22648== by 0x40BB675: trace_state (lj_trace.c:690)
==22648== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22648== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22648== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==22648== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22648== by 0x407FA29: lua_resume (lj_api.c:1296)
==22648== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22648== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==22648== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==22648== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22648== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22648== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22648== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22648== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22648== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22648== by 0x8062D4E: main (nginx.c:382)
==22648==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 10: single-line mode (^ as normal) - Can't connect to 127.0.0.1:1984: Connection refused ==22650== Invalid read of size 4
==22650== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22650== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22650== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22650== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22650== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22650== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22650== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22650== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22650== by 0x8062D4E: main (nginx.c:382)
==22650== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22650==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
120-re-find.t TEST 10: single-line mode (^ as normal) - Can't connect to 127.0.0.1:1984: Connection refused ==22650==
==22650== Process terminating with default action of signal 11 (SIGSEGV)
==22650== Access not within mapped region at address 0x0
==22650== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22650== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22650== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22650== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22650== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22650== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22650== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22650== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22650== by 0x8062D4E: main (nginx.c:382)
==22650== If you believe this happened as a result of a stack
==22650== overflow in your program's main thread (unlikely but
==22650== possible), you can try to increase the size of the
==22650== main thread stack using the --main-stacksize= flag.
==22650== The main thread stack size used in this run was 8388608.
==22650== 1,024 bytes in 1 blocks are definitely lost in loss record 2,887 of 3,009
==22650== at 0x402C768: realloc (vg_replace_malloc.c:834)
==22650== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22650== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22650== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==22650== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==22650== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==22650== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==22650== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==22650== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==22650== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22650== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==22650== by 0x40BB675: trace_state (lj_trace.c:690)
==22650== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22650== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22650== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==22650== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22650== by 0x407FA29: lua_resume (lj_api.c:1296)
==22650== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22650== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==22650== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==22650== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22650== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22650== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22650== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22650== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22650== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==22650== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22650== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22650== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22650== by 0x8062D4E: main (nginx.c:382)
==22650==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 7: UTF-8 mode - Can't connect to 127.0.0.1:1984: Connection refused ==22652== Invalid read of size 4
==22652== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22652== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22652== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22652== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22652== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22652== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22652== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22652== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22652== by 0x8062D4E: main (nginx.c:382)
==22652== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22652==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
120-re-find.t TEST 7: UTF-8 mode - Can't connect to 127.0.0.1:1984: Connection refused ==22652==
==22652== Process terminating with default action of signal 11 (SIGSEGV)
==22652== Access not within mapped region at address 0x0
==22652== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22652== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22652== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22652== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22652== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22652== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22652== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22652== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22652== by 0x8062D4E: main (nginx.c:382)
==22652== If you believe this happened as a result of a stack
==22652== overflow in your program's main thread (unlikely but
==22652== possible), you can try to increase the size of the
==22652== main thread stack using the --main-stacksize= flag.
==22652== The main thread stack size used in this run was 8388608.
==22652== 1,024 bytes in 1 blocks are definitely lost in loss record 2,751 of 2,852
==22652== at 0x402C768: realloc (vg_replace_malloc.c:834)
==22652== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22652== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22652== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==22652== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==22652== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==22652== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==22652== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==22652== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==22652== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22652== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==22652== by 0x40BB675: trace_state (lj_trace.c:690)
==22652== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22652== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22652== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==22652== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22652== by 0x407FA29: lua_resume (lj_api.c:1296)
==22652== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22652== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==22652== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==22652== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22652== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22652== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22652== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22652== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22652== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==22652== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22652== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22652== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22652== by 0x8062D4E: main (nginx.c:382)
==22652==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 16: anchored match (succeeded) - Can't connect to 127.0.0.1:1984: Connection refused ==22654== Invalid read of size 4
==22654== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22654== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22654== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22654== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22654== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22654== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22654== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22654== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22654== by 0x8062D4E: main (nginx.c:382)
==22654== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22654==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
120-re-find.t TEST 16: anchored match (succeeded) - Can't connect to 127.0.0.1:1984: Connection refused ==22654==
==22654== Process terminating with default action of signal 11 (SIGSEGV)
==22654== Access not within mapped region at address 0x0
==22654== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22654== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22654== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22654== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22654== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22654== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22654== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22654== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22654== by 0x8062D4E: main (nginx.c:382)
==22654== If you believe this happened as a result of a stack
==22654== overflow in your program's main thread (unlikely but
==22654== possible), you can try to increase the size of the
==22654== main thread stack using the --main-stacksize= flag.
==22654== The main thread stack size used in this run was 8388608.
==22654== 1,024 bytes in 1 blocks are definitely lost in loss record 2,915 of 3,040
==22654== at 0x402C768: realloc (vg_replace_malloc.c:834)
==22654== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22654== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22654== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==22654== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==22654== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==22654== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==22654== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==22654== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==22654== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22654== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==22654== by 0x40BB675: trace_state (lj_trace.c:690)
==22654== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22654== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22654== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==22654== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22654== by 0x407FA29: lua_resume (lj_api.c:1296)
==22654== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22654== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==22654== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==22654== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22654== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22654== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22654== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22654== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22654== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==22654== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22654== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22654== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22654== by 0x8062D4E: main (nginx.c:382)
==22654==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 5: case sensitive by default - Can't connect to 127.0.0.1:1984: Connection refused ==22656== Invalid read of size 4
==22656== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22656== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22656== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22656== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22656== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22656== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22656== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22656== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22656== by 0x8062D4E: main (nginx.c:382)
==22656== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22656==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
120-re-find.t TEST 5: case sensitive by default - Can't connect to 127.0.0.1:1984: Connection refused ==22656==
==22656== Process terminating with default action of signal 11 (SIGSEGV)
==22656== Access not within mapped region at address 0x0
==22656== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22656== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22656== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22656== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22656== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22656== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22656== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22656== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22656== by 0x8062D4E: main (nginx.c:382)
==22656== If you believe this happened as a result of a stack
==22656== overflow in your program's main thread (unlikely but
==22656== possible), you can try to increase the size of the
==22656== main thread stack using the --main-stacksize= flag.
==22656== The main thread stack size used in this run was 8388608.
==22656== 1,024 bytes in 1 blocks are definitely lost in loss record 2,742 of 2,845
==22656== at 0x402C768: realloc (vg_replace_malloc.c:834)
==22656== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22656== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22656== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==22656== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==22656== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==22656== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==22656== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==22656== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==22656== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22656== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==22656== by 0x40BB675: trace_state (lj_trace.c:690)
==22656== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22656== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22656== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==22656== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22656== by 0x407FA29: lua_resume (lj_api.c:1296)
==22656== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22656== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==22656== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==22656== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22656== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22656== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22656== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22656== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22656== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==22656== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22656== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22656== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22656== by 0x8062D4E: main (nginx.c:382)
==22656==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 28: specify the group (4) - Can't connect to 127.0.0.1:1984: Connection refused ==22658== Invalid read of size 4
==22658== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22658== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22658== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22658== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22658== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22658== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22658== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22658== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22658== by 0x8062D4E: main (nginx.c:382)
==22658== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22658==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
120-re-find.t TEST 28: specify the group (4) - Can't connect to 127.0.0.1:1984: Connection refused ==22658==
==22658== Process terminating with default action of signal 11 (SIGSEGV)
==22658== Access not within mapped region at address 0x0
==22658== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22658== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22658== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22658== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22658== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22658== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22658== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22658== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22658== by 0x8062D4E: main (nginx.c:382)
==22658== If you believe this happened as a result of a stack
==22658== overflow in your program's main thread (unlikely but
==22658== possible), you can try to increase the size of the
==22658== main thread stack using the --main-stacksize= flag.
==22658== The main thread stack size used in this run was 8388608.
==22658== 1,024 bytes in 1 blocks are definitely lost in loss record 2,772 of 2,875
==22658== at 0x402C768: realloc (vg_replace_malloc.c:834)
==22658== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22658== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22658== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==22658== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==22658== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==22658== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==22658== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==22658== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==22658== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22658== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==22658== by 0x40BB675: trace_state (lj_trace.c:690)
==22658== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22658== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22658== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==22658== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22658== by 0x407FA29: lua_resume (lj_api.c:1296)
==22658== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22658== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==22658== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==22658== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22658== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22658== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22658== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22658== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22658== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==22658== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22658== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22658== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22658== by 0x8062D4E: main (nginx.c:382)
==22658==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 24: specify the group (1) - Can't connect to 127.0.0.1:1984: Connection refused ==22660== Invalid read of size 4
==22660== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22660== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22660== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22660== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22660== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22660== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22660== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22660== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22660== by 0x8062D4E: main (nginx.c:382)
==22660== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22660==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
120-re-find.t TEST 24: specify the group (1) - Can't connect to 127.0.0.1:1984: Connection refused ==22660==
==22660== Process terminating with default action of signal 11 (SIGSEGV)
==22660== Access not within mapped region at address 0x0
==22660== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22660== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22660== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22660== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22660== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22660== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22660== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22660== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22660== by 0x8062D4E: main (nginx.c:382)
==22660== If you believe this happened as a result of a stack
==22660== overflow in your program's main thread (unlikely but
==22660== possible), you can try to increase the size of the
==22660== main thread stack using the --main-stacksize= flag.
==22660== The main thread stack size used in this run was 8388608.
==22660== 1,024 bytes in 1 blocks are definitely lost in loss record 2,853 of 2,973
==22660== at 0x402C768: realloc (vg_replace_malloc.c:834)
==22660== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22660== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22660== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==22660== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==22660== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==22660== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==22660== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==22660== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==22660== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22660== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==22660== by 0x40BB675: trace_state (lj_trace.c:690)
==22660== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22660== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22660== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==22660== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22660== by 0x407FA29: lua_resume (lj_api.c:1296)
==22660== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22660== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==22660== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==22660== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22660== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22660== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22660== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22660== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22660== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==22660== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22660== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22660== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22660== by 0x8062D4E: main (nginx.c:382)
==22660==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 13: bad pattern - Can't connect to 127.0.0.1:1984: Connection refused ==22662== Invalid read of size 4
==22662== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22662== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22662== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22662== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22662== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22662== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22662== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22662== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22662== by 0x8062D4E: main (nginx.c:382)
==22662== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22662==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
120-re-find.t TEST 13: bad pattern - Can't connect to 127.0.0.1:1984: Connection refused ==22662==
==22662== Process terminating with default action of signal 11 (SIGSEGV)
==22662== Access not within mapped region at address 0x0
==22662== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22662== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22662== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22662== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22662== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22662== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22662== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22662== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22662== by 0x8062D4E: main (nginx.c:382)
==22662== If you believe this happened as a result of a stack
==22662== overflow in your program's main thread (unlikely but
==22662== possible), you can try to increase the size of the
==22662== main thread stack using the --main-stacksize= flag.
==22662== The main thread stack size used in this run was 8388608.
==22662== 1,024 bytes in 1 blocks are definitely lost in loss record 2,746 of 2,849
==22662== at 0x402C768: realloc (vg_replace_malloc.c:834)
==22662== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22662== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22662== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==22662== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==22662== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==22662== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==22662== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==22662== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==22662== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22662== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==22662== by 0x40BB675: trace_state (lj_trace.c:690)
==22662== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22662== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22662== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==22662== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22662== by 0x407FA29: lua_resume (lj_api.c:1296)
==22662== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22662== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==22662== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==22662== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22662== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22662== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22662== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22662== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22662== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==22662== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22662== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22662== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22662== by 0x8062D4E: main (nginx.c:382)
==22662==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 8: multi-line mode (^ at line head) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22664== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
120-re-find.t TEST 8: multi-line mode (^ at line head) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22664== by 0x8062D4E: main (nginx.c:382)
==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.
==22664== 1,024 bytes in 1 blocks are definitely lost in loss record 2,755 of 2,857
==22664== at 0x402C768: realloc (vg_replace_malloc.c:834)
==22664== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22664== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22664== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==22664== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==22664== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==22664== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==22664== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==22664== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==22664== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22664== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==22664== by 0x40BB675: trace_state (lj_trace.c:690)
==22664== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22664== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22664== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==22664== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22664== by 0x407FA29: lua_resume (lj_api.c:1296)
==22664== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22664== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==22664== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==22664== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22664== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22664== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22664== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22664== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22664== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22664== by 0x8062D4E: main (nginx.c:382)
==22664==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 3: multiple captures (with o) - Can't connect to 127.0.0.1:1984: Connection refused ==22666== Invalid read of size 4
==22666== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22666== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22666== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22666== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22666== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22666== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22666== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22666== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22666== by 0x8062D4E: main (nginx.c:382)
==22666== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22666==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
120-re-find.t TEST 3: multiple captures (with o) - Can't connect to 127.0.0.1:1984: Connection refused ==22666==
==22666== Process terminating with default action of signal 11 (SIGSEGV)
==22666== Access not within mapped region at address 0x0
==22666== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22666== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22666== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22666== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22666== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22666== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22666== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22666== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22666== by 0x8062D4E: main (nginx.c:382)
==22666== If you believe this happened as a result of a stack
==22666== overflow in your program's main thread (unlikely but
==22666== possible), you can try to increase the size of the
==22666== main thread stack using the --main-stacksize= flag.
==22666== The main thread stack size used in this run was 8388608.
==22666== 1,024 bytes in 1 blocks are definitely lost in loss record 2,911 of 3,036
==22666== at 0x402C768: realloc (vg_replace_malloc.c:834)
==22666== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22666== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22666== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==22666== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==22666== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==22666== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==22666== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==22666== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==22666== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22666== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==22666== by 0x40BB675: trace_state (lj_trace.c:690)
==22666== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22666== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22666== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==22666== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22666== by 0x407FA29: lua_resume (lj_api.c:1296)
==22666== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22666== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==22666== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==22666== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22666== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22666== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22666== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22666== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22666== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==22666== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22666== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22666== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22666== by 0x8062D4E: main (nginx.c:382)
==22666==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 23: just not hit match limit - Can't connect to 127.0.0.1:1984: Connection refused ==22668== Invalid read of size 4
==22668== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22668== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22668== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22668== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22668== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22668== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22668== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22668== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22668== by 0x8062D4E: main (nginx.c:382)
==22668== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22668==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==22668==
==22668== Process terminating with default action of signal 11 (SIGSEGV)
==22668== Access not within mapped region at address 0x0
==22668== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22668== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22668== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22668== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22668== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22668== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22668== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22668== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22668== by 0x8062D4E: main (nginx.c:382)
==22668== If you believe this happened as a result of a stack
==22668== overflow in your program's main thread (unlikely but
==22668== possible), you can try to increase the size of the
==22668== main thread stack using the --main-stacksize= flag.
==22668== The main thread stack size used in this run was 8388608.
==22668== 1,024 bytes in 1 blocks are definitely lost in loss record 2,774 of 2,877
==22668== at 0x402C768: realloc (vg_replace_malloc.c:834)
==22668== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22668== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22668== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==22668== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==22668== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==22668== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==22668== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==22668== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==22668== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22668== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==22668== by 0x40BB675: trace_state (lj_trace.c:690)
==22668== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22668== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22668== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==22668== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22668== by 0x407FA29: lua_resume (lj_api.c:1296)
==22668== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22668== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==22668== by 0x8152E9D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==22668== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22668== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22668== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22668== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22668== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22668== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==22668== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22668== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22668== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22668== by 0x8062D4E: main (nginx.c:382)
==22668==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_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_single_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 (aborted) '
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 14: bad option - Can't connect to 127.0.0.1:1984: Connection refused ==22670== Invalid read of size 4
==22670== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22670== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22670== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22670== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22670== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22670== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22670== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22670== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22670== by 0x8062D4E: main (nginx.c:382)
==22670== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22670==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
120-re-find.t TEST 14: bad option - Can't connect to 127.0.0.1:1984: Connection refused ==22670==
==22670== Process terminating with default action of signal 11 (SIGSEGV)
==22670== Access not within mapped region at address 0x0
==22670== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22670== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22670== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22670== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22670== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22670== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22670== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22670== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22670== by 0x8062D4E: main (nginx.c:382)
==22670== If you believe this happened as a result of a stack
==22670== overflow in your program's main thread (unlikely but
==22670== possible), you can try to increase the size of the
==22670== main thread stack using the --main-stacksize= flag.
==22670== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
120-re-find.t TEST 14: bad option - status code ok got: ''
expected: '200'
120-re-find.t TEST 14: bad option - pattern "unknown flag "H"" should match a line in error.log (req 1)
120-re-find.t TEST 29: nil submatch (2nd) - Can't connect to 127.0.0.1:1984: Connection refused ==22672== Invalid read of size 4
==22672== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22672== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22672== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22672== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22672== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22672== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22672== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22672== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22672== by 0x8062D4E: main (nginx.c:382)
==22672== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22672==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
120-re-find.t TEST 29: nil submatch (2nd) - Can't connect to 127.0.0.1:1984: Connection refused ==22672==
==22672== Process terminating with default action of signal 11 (SIGSEGV)
==22672== Access not within mapped region at address 0x0
==22672== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22672== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22672== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22672== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22672== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22672== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22672== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22672== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22672== by 0x8062D4E: main (nginx.c:382)
==22672== If you believe this happened as a result of a stack
==22672== overflow in your program's main thread (unlikely but
==22672== possible), you can try to increase the size of the
==22672== main thread stack using the --main-stacksize= flag.
==22672== The main thread stack size used in this run was 8388608.
==22672== 1,024 bytes in 1 blocks are definitely lost in loss record 2,772 of 2,875
==22672== at 0x402C768: realloc (vg_replace_malloc.c:834)
==22672== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22672== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22672== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==22672== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==22672== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==22672== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==22672== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==22672== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==22672== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22672== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==22672== by 0x40BB675: trace_state (lj_trace.c:690)
==22672== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22672== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22672== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==22672== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22672== by 0x407FA29: lua_resume (lj_api.c:1296)
==22672== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22672== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==22672== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==22672== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22672== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22672== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22672== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22672== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22672== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==22672== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22672== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22672== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22672== by 0x8062D4E: main (nginx.c:382)
==22672==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 26: specify the group (2) - Can't connect to 127.0.0.1:1984: Connection refused ==22674== Invalid read of size 4
==22674== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22674== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22674== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22674== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22674== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22674== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22674== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22674== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22674== by 0x8062D4E: main (nginx.c:382)
==22674== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22674==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
120-re-find.t TEST 26: specify the group (2) - Can't connect to 127.0.0.1:1984: Connection refused ==22674==
==22674== Process terminating with default action of signal 11 (SIGSEGV)
==22674== Access not within mapped region at address 0x0
==22674== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22674== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22674== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22674== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22674== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22674== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22674== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22674== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22674== by 0x8062D4E: main (nginx.c:382)
==22674== If you believe this happened as a result of a stack
==22674== overflow in your program's main thread (unlikely but
==22674== possible), you can try to increase the size of the
==22674== main thread stack using the --main-stacksize= flag.
==22674== The main thread stack size used in this run was 8388608.
==22674== 1,024 bytes in 1 blocks are definitely lost in loss record 2,884 of 3,004
==22674== at 0x402C768: realloc (vg_replace_malloc.c:834)
==22674== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22674== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22674== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==22674== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==22674== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==22674== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==22674== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==22674== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==22674== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22674== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==22674== by 0x40BB675: trace_state (lj_trace.c:690)
==22674== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22674== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22674== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==22674== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22674== by 0x407FA29: lua_resume (lj_api.c:1296)
==22674== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22674== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==22674== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==22674== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22674== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22674== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22674== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22674== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22674== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==22674== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22674== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22674== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22674== by 0x8062D4E: main (nginx.c:382)
==22674==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 21: UTF-8 mode without UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused ==22676== Invalid read of size 4
==22676== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22676== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22676== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22676== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22676== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22676== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22676== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22676== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22676== by 0x8062D4E: main (nginx.c:382)
==22676== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22676==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
120-re-find.t TEST 21: UTF-8 mode without UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused ==22676==
==22676== Process terminating with default action of signal 11 (SIGSEGV)
==22676== Access not within mapped region at address 0x0
==22676== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22676== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22676== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22676== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22676== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22676== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22676== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22676== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22676== by 0x8062D4E: main (nginx.c:382)
==22676== If you believe this happened as a result of a stack
==22676== overflow in your program's main thread (unlikely but
==22676== possible), you can try to increase the size of the
==22676== main thread stack using the --main-stacksize= flag.
==22676== The main thread stack size used in this run was 8388608.
==22676== 1,024 bytes in 1 blocks are definitely lost in loss record 2,755 of 2,855
==22676== at 0x402C768: realloc (vg_replace_malloc.c:834)
==22676== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22676== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22676== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==22676== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==22676== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==22676== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==22676== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==22676== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==22676== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22676== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==22676== by 0x40BB675: trace_state (lj_trace.c:690)
==22676== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22676== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22676== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==22676== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22676== by 0x407FA29: lua_resume (lj_api.c:1296)
==22676== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22676== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==22676== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==22676== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22676== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22676== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22676== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22676== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22676== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==22676== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22676== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22676== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22676== by 0x8062D4E: main (nginx.c:382)
==22676==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 22: just hit match limit - Can't connect to 127.0.0.1:1984: Connection refused ==22678== Invalid read of size 4
==22678== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22678== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22678== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22678== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22678== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22678== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22678== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22678== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22678== by 0x8062D4E: main (nginx.c:382)
==22678== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22678==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
120-re-find.t TEST 22: just hit match limit - Can't connect to 127.0.0.1:1984: Connection refused ==22678==
==22678== Process terminating with default action of signal 11 (SIGSEGV)
==22678== Access not within mapped region at address 0x0
==22678== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22678== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22678== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22678== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22678== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22678== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22678== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22678== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22678== by 0x8062D4E: main (nginx.c:382)
==22678== If you believe this happened as a result of a stack
==22678== overflow in your program's main thread (unlikely but
==22678== possible), you can try to increase the size of the
==22678== main thread stack using the --main-stacksize= flag.
==22678== The main thread stack size used in this run was 8388608.
==22678== 1,024 bytes in 1 blocks are definitely lost in loss record 2,756 of 2,858
==22678== at 0x402C768: realloc (vg_replace_malloc.c:834)
==22678== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22678== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22678== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==22678== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==22678== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==22678== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==22678== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==22678== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==22678== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22678== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==22678== by 0x40BB675: trace_state (lj_trace.c:690)
==22678== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22678== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22678== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==22678== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22678== by 0x407FA29: lua_resume (lj_api.c:1296)
==22678== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22678== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==22678== by 0x8152E9D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==22678== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22678== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22678== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22678== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22678== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22678== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==22678== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22678== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22678== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22678== by 0x8062D4E: main (nginx.c:382)
==22678==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_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_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 12: extended mode (ignore whitespaces) - Can't connect to 127.0.0.1:1984: Connection refused ==22680== Invalid read of size 4
==22680== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22680== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22680== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22680== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22680== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22680== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22680== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22680== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22680== by 0x8062D4E: main (nginx.c:382)
==22680== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22680==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
120-re-find.t TEST 12: extended mode (ignore whitespaces) - Can't connect to 127.0.0.1:1984: Connection refused ==22680==
==22680== Process terminating with default action of signal 11 (SIGSEGV)
==22680== Access not within mapped region at address 0x0
==22680== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22680== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22680== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22680== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22680== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22680== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22680== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22680== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22680== by 0x8062D4E: main (nginx.c:382)
==22680== If you believe this happened as a result of a stack
==22680== overflow in your program's main thread (unlikely but
==22680== possible), you can try to increase the size of the
==22680== main thread stack using the --main-stacksize= flag.
==22680== The main thread stack size used in this run was 8388608.
==22680== 1,024 bytes in 1 blocks are definitely lost in loss record 2,754 of 2,857
==22680== at 0x402C768: realloc (vg_replace_malloc.c:834)
==22680== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22680== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22680== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==22680== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==22680== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==22680== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==22680== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==22680== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==22680== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22680== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==22680== by 0x40BB675: trace_state (lj_trace.c:690)
==22680== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22680== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22680== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==22680== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22680== by 0x407FA29: lua_resume (lj_api.c:1296)
==22680== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22680== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==22680== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==22680== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22680== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22680== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22680== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22680== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22680== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==22680== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22680== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22680== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22680== by 0x8062D4E: main (nginx.c:382)
==22680==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 0, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 2
-matched: he
'
120-re-find.t TEST 12: extended mode (ignore whitespaces) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 27: specify the group (3) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22682== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
120-re-find.t TEST 27: specify the group (3) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22682== by 0x8062D4E: main (nginx.c:382)
==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.
==22682== 1,024 bytes in 1 blocks are definitely lost in loss record 2,884 of 3,005
==22682== at 0x402C768: realloc (vg_replace_malloc.c:834)
==22682== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22682== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22682== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==22682== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==22682== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==22682== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==22682== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==22682== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==22682== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22682== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==22682== by 0x40BB675: trace_state (lj_trace.c:690)
==22682== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22682== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22682== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==22682== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22682== by 0x407FA29: lua_resume (lj_api.c:1296)
==22682== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22682== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==22682== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==22682== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22682== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22682== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22682== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22682== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22682== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22682== by 0x8062D4E: main (nginx.c:382)
==22682==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 30: nil submatch (1st) - Can't connect to 127.0.0.1:1984: Connection refused ==22684== Invalid read of size 4
==22684== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22684== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22684== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22684== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22684== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22684== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22684== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22684== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22684== by 0x8062D4E: main (nginx.c:382)
==22684== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22684==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
120-re-find.t TEST 30: nil submatch (1st) - Can't connect to 127.0.0.1:1984: Connection refused ==22684==
==22684== Process terminating with default action of signal 11 (SIGSEGV)
==22684== Access not within mapped region at address 0x0
==22684== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22684== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22684== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22684== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22684== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22684== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22684== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22684== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22684== by 0x8062D4E: main (nginx.c:382)
==22684== If you believe this happened as a result of a stack
==22684== overflow in your program's main thread (unlikely but
==22684== possible), you can try to increase the size of the
==22684== main thread stack using the --main-stacksize= flag.
==22684== The main thread stack size used in this run was 8388608.
==22684== 1,024 bytes in 1 blocks are definitely lost in loss record 2,757 of 2,860
==22684== at 0x402C768: realloc (vg_replace_malloc.c:834)
==22684== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22684== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22684== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==22684== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==22684== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==22684== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==22684== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==22684== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==22684== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22684== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==22684== by 0x40BB675: trace_state (lj_trace.c:690)
==22684== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22684== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22684== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==22684== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22684== by 0x407FA29: lua_resume (lj_api.c:1296)
==22684== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22684== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==22684== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==22684== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22684== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22684== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22684== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22684== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22684== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==22684== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22684== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22684== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22684== by 0x8062D4E: main (nginx.c:382)
==22684==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 15: anchored match (failed) - Can't connect to 127.0.0.1:1984: Connection refused ==22686== Invalid read of size 4
==22686== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22686== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22686== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22686== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22686== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22686== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22686== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22686== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22686== by 0x8062D4E: main (nginx.c:382)
==22686== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22686==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
120-re-find.t TEST 15: anchored match (failed) - Can't connect to 127.0.0.1:1984: Connection refused ==22686==
==22686== Process terminating with default action of signal 11 (SIGSEGV)
==22686== Access not within mapped region at address 0x0
==22686== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22686== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22686== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22686== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22686== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22686== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22686== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22686== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22686== by 0x8062D4E: main (nginx.c:382)
==22686== If you believe this happened as a result of a stack
==22686== overflow in your program's main thread (unlikely but
==22686== possible), you can try to increase the size of the
==22686== main thread stack using the --main-stacksize= flag.
==22686== The main thread stack size used in this run was 8388608.
==22686== 1,024 bytes in 1 blocks are definitely lost in loss record 2,741 of 2,844
==22686== at 0x402C768: realloc (vg_replace_malloc.c:834)
==22686== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22686== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22686== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==22686== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==22686== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==22686== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==22686== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==22686== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==22686== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22686== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==22686== by 0x40BB675: trace_state (lj_trace.c:690)
==22686== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22686== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22686== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==22686== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22686== by 0x407FA29: lua_resume (lj_api.c:1296)
==22686== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22686== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==22686== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==22686== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22686== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22686== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22686== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22686== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22686== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==22686== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22686== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22686== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22686== by 0x8062D4E: main (nginx.c:382)
==22686==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 17: match with ctx but no pos - Can't connect to 127.0.0.1:1984: Connection refused ==22688== Invalid read of size 4
==22688== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22688== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22688== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22688== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22688== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22688== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22688== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22688== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22688== by 0x8062D4E: main (nginx.c:382)
==22688== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22688==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
120-re-find.t TEST 17: match with ctx but no pos - Can't connect to 127.0.0.1:1984: Connection refused ==22688==
==22688== Process terminating with default action of signal 11 (SIGSEGV)
==22688== Access not within mapped region at address 0x0
==22688== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22688== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22688== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22688== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22688== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22688== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22688== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22688== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22688== by 0x8062D4E: main (nginx.c:382)
==22688== If you believe this happened as a result of a stack
==22688== overflow in your program's main thread (unlikely but
==22688== possible), you can try to increase the size of the
==22688== main thread stack using the --main-stacksize= flag.
==22688== The main thread stack size used in this run was 8388608.
==22688== 1,024 bytes in 1 blocks are definitely lost in loss record 2,767 of 2,870
==22688== at 0x402C768: realloc (vg_replace_malloc.c:834)
==22688== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22688== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22688== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==22688== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==22688== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==22688== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==22688== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==22688== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==22688== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22688== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==22688== by 0x40BB675: trace_state (lj_trace.c:690)
==22688== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22688== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22688== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==22688== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22688== by 0x407FA29: lua_resume (lj_api.c:1296)
==22688== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22688== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==22688== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==22688== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22688== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22688== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22688== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22688== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22688== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==22688== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22688== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22688== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22688== by 0x8062D4E: main (nginx.c:382)
==22688==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 2: empty matched string - Can't connect to 127.0.0.1:1984: Connection refused ==22690== Invalid read of size 4
==22690== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22690== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22690== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22690== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22690== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22690== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22690== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22690== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22690== by 0x8062D4E: main (nginx.c:382)
==22690== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22690==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
120-re-find.t TEST 2: empty matched string - Can't connect to 127.0.0.1:1984: Connection refused ==22690==
==22690== Process terminating with default action of signal 11 (SIGSEGV)
==22690== Access not within mapped region at address 0x0
==22690== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22690== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22690== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22690== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22690== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22690== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22690== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22690== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22690== by 0x8062D4E: main (nginx.c:382)
==22690== If you believe this happened as a result of a stack
==22690== overflow in your program's main thread (unlikely but
==22690== possible), you can try to increase the size of the
==22690== main thread stack using the --main-stacksize= flag.
==22690== The main thread stack size used in this run was 8388608.
==22690== 1,024 bytes in 1 blocks are definitely lost in loss record 2,764 of 2,867
==22690== at 0x402C768: realloc (vg_replace_malloc.c:834)
==22690== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22690== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22690== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==22690== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==22690== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==22690== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==22690== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==22690== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==22690== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22690== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==22690== by 0x40BB675: trace_state (lj_trace.c:690)
==22690== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22690== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22690== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==22690== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22690== by 0x407FA29: lua_resume (lj_api.c:1296)
==22690== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22690== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==22690== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==22690== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22690== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22690== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22690== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22690== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22690== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==22690== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22690== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22690== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22690== by 0x8062D4E: main (nginx.c:382)
==22690==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 6: case insensitive - 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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22692== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
120-re-find.t TEST 6: case insensitive - 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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22692== by 0x8062D4E: main (nginx.c:382)
==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.
==22692== 1,024 bytes in 1 blocks are definitely lost in loss record 2,912 of 3,038
==22692== at 0x402C768: realloc (vg_replace_malloc.c:834)
==22692== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22692== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22692== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==22692== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==22692== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==22692== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==22692== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==22692== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==22692== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22692== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==22692== by 0x40BB675: trace_state (lj_trace.c:690)
==22692== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22692== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22692== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==22692== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22692== by 0x407FA29: lua_resume (lj_api.c:1296)
==22692== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22692== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==22692== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==22692== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22692== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22692== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22692== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22692== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22692== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22692== by 0x8062D4E: main (nginx.c:382)
==22692==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_session_handler
fun:ngx_stream_init_connection
fun:ngx_event_accept
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
121-version.t TEST 2: ngx_lua_version - Can't connect to 127.0.0.1:1984: Connection refused ==22697== Invalid read of size 4
==22697== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22697== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22697== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22697== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22697== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22697== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22697== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22697== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22697== by 0x8062D4E: main (nginx.c:382)
==22697== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22697==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
121-version.t TEST 2: ngx_lua_version - Can't connect to 127.0.0.1:1984: Connection refused ==22697==
==22697== Process terminating with default action of signal 11 (SIGSEGV)
==22697== Access not within mapped region at address 0x0
==22697== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22697== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22697== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22697== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22697== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22697== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22697== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22697== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22697== by 0x8062D4E: main (nginx.c:382)
==22697== If you believe this happened as a result of a stack
==22697== overflow in your program's main thread (unlikely but
==22697== possible), you can try to increase the size of the
==22697== main thread stack using the --main-stacksize= flag.
==22697== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: nginx version - Can't connect to 127.0.0.1:1984: Connection refused ==22699== Invalid read of size 4
==22699== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22699== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22699== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22699== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22699== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22699== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22699== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22699== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22699== by 0x8062D4E: main (nginx.c:382)
==22699== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22699==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
121-version.t TEST 1: nginx version - Can't connect to 127.0.0.1:1984: Connection refused ==22699==
==22699== Process terminating with default action of signal 11 (SIGSEGV)
==22699== Access not within mapped region at address 0x0
==22699== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22699== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22699== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22699== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22699== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22699== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22699== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22699== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22699== by 0x8062D4E: main (nginx.c:382)
==22699== If you believe this happened as a result of a stack
==22699== overflow in your program's main thread (unlikely but
==22699== possible), you can try to increase the size of the
==22699== main thread stack using the --main-stacksize= flag.
==22699== 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 (aborted) '
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+$)'
122-worker.t TEST 3: content_by_lua + ngx.worker.pid - Can't connect to 127.0.0.1:1984: Connection refused ==22704== Invalid read of size 4
==22704== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22704== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22704== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22704== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22704== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22704== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22704== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22704== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22704== by 0x8062D4E: main (nginx.c:382)
==22704== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22704==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
122-worker.t TEST 3: content_by_lua + ngx.worker.pid - Can't connect to 127.0.0.1:1984: Connection refused ==22704==
==22704== Process terminating with default action of signal 11 (SIGSEGV)
==22704== Access not within mapped region at address 0x0
==22704== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22704== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22704== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22704== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22704== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22704== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22704== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22704== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22704== by 0x8062D4E: main (nginx.c:382)
==22704== If you believe this happened as a result of a stack
==22704== overflow in your program's main thread (unlikely but
==22704== possible), you can try to increase the size of the
==22704== main thread stack using the --main-stacksize= flag.
==22704== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 5: init_worker_by_lua + ngx.worker.pid - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22706== by 0x8062D4E: main (nginx.c:382)
==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_single_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 ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22706== by 0x8062D4E: main (nginx.c:382)
==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.

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 (aborted) '
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 - Can't connect to 127.0.0.1:1984: Connection refused ==22708== Invalid read of size 4
==22708== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22708== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22708== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22708== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22708== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22708== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22708== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22708== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22708== by 0x8062D4E: main (nginx.c:382)
==22708== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22708==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
122-worker.t TEST 1: content_by_lua + ngx.worker.exiting - Can't connect to 127.0.0.1:1984: Connection refused ==22708==
==22708== Process terminating with default action of signal 11 (SIGSEGV)
==22708== Access not within mapped region at address 0x0
==22708== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22708== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22708== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22708== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22708== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22708== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22708== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22708== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22708== by 0x8062D4E: main (nginx.c:382)
==22708== If you believe this happened as a result of a stack
==22708== overflow in your program's main thread (unlikely but
==22708== possible), you can try to increase the size of the
==22708== main thread stack using the --main-stacksize= flag.
==22708== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
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 ==22714== Invalid read of size 4
==22714== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22714== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22714== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22714== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22714== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22714== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22714== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22714== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22714== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22714== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22714== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==22714== by 0x8062D5B: main (nginx.c:385)
==22714== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22714==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_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 ==22714==
==22714== Process terminating with default action of signal 11 (SIGSEGV)
==22714== Access not within mapped region at address 0x0
==22714== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22714== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22714== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22714== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22714== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22714== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22714== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22714== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22714== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22714== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22714== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==22714== by 0x8062D5B: main (nginx.c:385)
==22714== If you believe this happened as a result of a stack
==22714== overflow in your program's main thread (unlikely but
==22714== possible), you can try to increase the size of the
==22714== main thread stack using the --main-stacksize= flag.
==22714== 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 ==22715== Invalid read of size 4
==22715== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22715== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22715== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22715== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22715== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22715== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22715== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22715== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22715== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22715== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22715== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22715== by 0x8062D5B: main (nginx.c:385)
==22715== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22715==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_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 ==22715==
==22715== Process terminating with default action of signal 11 (SIGSEGV)
==22715== Access not within mapped region at address 0x0
==22715== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22715== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22715== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22715== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22715== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22715== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22715== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22715== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22715== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22715== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22715== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22715== by 0x8062D5B: main (nginx.c:385)
==22715== If you believe this happened as a result of a stack
==22715== overflow in your program's main thread (unlikely but
==22715== possible), you can try to increase the size of the
==22715== main thread stack using the --main-stacksize= flag.
==22715== 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) - Can't connect to 127.0.0.1:1984: Connection refused ==22718== Invalid read of size 4
==22718== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22718== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22718== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22718== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22718== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22718== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22718== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22718== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22718== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22718== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22718== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==22718== by 0x8062D5B: main (nginx.c:385)
==22718== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22718==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_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) - Can't connect to 127.0.0.1:1984: Connection refused ==22718==
==22718== Process terminating with default action of signal 11 (SIGSEGV)
==22718== Access not within mapped region at address 0x0
==22718== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22718== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22718== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22718== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22718== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22718== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22718== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22718== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22718== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22718== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==22718== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==22718== by 0x8062D5B: main (nginx.c:385)
==22718== If you believe this happened as a result of a stack
==22718== overflow in your program's main thread (unlikely but
==22718== possible), you can try to increase the size of the
==22718== main thread stack using the --main-stacksize= flag.
==22718== 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) - Can't connect to 127.0.0.1:1984: Connection refused ==22719== Invalid read of size 4
==22719== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22719== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22719== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22719== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22719== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22719== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22719== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22719== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22719== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22719== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22719== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22719== by 0x8062D5B: main (nginx.c:385)
==22719== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22719==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_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) - Can't connect to 127.0.0.1:1984: Connection refused ==22719==
==22719== Process terminating with default action of signal 11 (SIGSEGV)
==22719== Access not within mapped region at address 0x0
==22719== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22719== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22719== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22719== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22719== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22719== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22719== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22719== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==22719== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==22719== by 0x808C257: ngx_reap_children (ngx_process_cycle.c:678)
==22719== by 0x808C257: ngx_master_process_cycle (ngx_process_cycle.c:180)
==22719== by 0x8062D5B: main (nginx.c:385)
==22719== If you believe this happened as a result of a stack
==22719== overflow in your program's main thread (unlikely but
==22719== possible), you can try to increase the size of the
==22719== main thread stack using the --main-stacksize= flag.
==22719== 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 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 12: ngx.time - Can't connect to 127.0.0.1:1984: Connection refused ==22725== Invalid read of size 4
==22725== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22725== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22725== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22725== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22725== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22725== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22725== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22725== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22725== by 0x8062D4E: main (nginx.c:382)
==22725== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22725==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
124-init-worker.t TEST 12: ngx.time - Can't connect to 127.0.0.1:1984: Connection refused ==22725==
==22725== Process terminating with default action of signal 11 (SIGSEGV)
==22725== Access not within mapped region at address 0x0
==22725== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22725== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22725== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22725== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22725== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22725== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22725== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22725== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22725== by 0x8062D4E: main (nginx.c:382)
==22725== If you believe this happened as a result of a stack
==22725== overflow in your program's main thread (unlikely but
==22725== possible), you can try to increase the size of the
==22725== main thread stack using the --main-stacksize= flag.
==22725== 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 15: connection refused (tcp) - log_errors explicitly on - Can't connect to 127.0.0.1:1984: Connection refused ==22726== Invalid read of size 4
==22726== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22726== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22726== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22726== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22726== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22726== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22726== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22726== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22726== by 0x8062D4E: main (nginx.c:382)
==22726== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22726==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
124-init-worker.t TEST 15: connection refused (tcp) - log_errors explicitly on - Can't connect to 127.0.0.1:1984: Connection refused ==22726==
==22726== Process terminating with default action of signal 11 (SIGSEGV)
==22726== Access not within mapped region at address 0x0
==22726== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22726== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22726== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22726== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22726== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22726== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22726== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22726== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22726== by 0x8062D4E: main (nginx.c:382)
==22726== If you believe this happened as a result of a stack
==22726== overflow in your program's main thread (unlikely but
==22726== possible), you can try to increase the size of the
==22726== main thread stack using the --main-stacksize= flag.
==22726== 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 3: timer.at - Can't connect to 127.0.0.1:1984: Connection refused ==22731== Invalid read of size 4
==22731== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22731== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22731== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22731== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22731== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22731== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22731== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22731== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22731== by 0x8062D4E: main (nginx.c:382)
==22731== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22731==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
124-init-worker.t TEST 3: timer.at - Can't connect to 127.0.0.1:1984: Connection refused ==22731==
==22731== Process terminating with default action of signal 11 (SIGSEGV)
==22731== Access not within mapped region at address 0x0
==22731== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22731== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22731== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22731== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22731== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22731== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22731== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22731== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22731== by 0x8062D4E: main (nginx.c:382)
==22731== If you believe this happened as a result of a stack
==22731== overflow in your program's main thread (unlikely but
==22731== possible), you can try to increase the size of the
==22731== main thread stack using the --main-stacksize= flag.
==22731== 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 11: ngx.re - Can't connect to 127.0.0.1:1984: Connection refused ==22732== Invalid read of size 4
==22732== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22732== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22732== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22732== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22732== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22732== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22732== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22732== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22732== by 0x8062D4E: main (nginx.c:382)
==22732== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22732==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
124-init-worker.t TEST 11: ngx.re - Can't connect to 127.0.0.1:1984: Connection refused ==22732==
==22732== Process terminating with default action of signal 11 (SIGSEGV)
==22732== Access not within mapped region at address 0x0
==22732== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22732== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22732== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22732== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22732== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22732== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22732== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22732== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22732== by 0x8062D4E: main (nginx.c:382)
==22732== If you believe this happened as a result of a stack
==22732== overflow in your program's main thread (unlikely but
==22732== possible), you can try to increase the size of the
==22732== main thread stack using the --main-stacksize= flag.
==22732== 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 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 5: init_worker_by_lua_file (simple global var) - Can't connect to 127.0.0.1:1984: Connection refused ==22734== Invalid read of size 4
==22734== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22734== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22734== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22734== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22734== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22734== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22734== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22734== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22734== by 0x8062D4E: main (nginx.c:382)
==22734== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22734==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
124-init-worker.t TEST 5: init_worker_by_lua_file (simple global var) - Can't connect to 127.0.0.1:1984: Connection refused ==22734==
==22734== Process terminating with default action of signal 11 (SIGSEGV)
==22734== Access not within mapped region at address 0x0
==22734== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22734== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22734== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22734== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22734== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22734== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22734== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22734== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22734== by 0x8062D4E: main (nginx.c:382)
==22734== If you believe this happened as a result of a stack
==22734== overflow in your program's main thread (unlikely but
==22734== possible), you can try to increase the size of the
==22734== main thread stack using the --main-stacksize= flag.
==22734== 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 14: connection refused (tcp) - log_errors on by default - Can't connect to 127.0.0.1:1984: Connection refused ==22735== Invalid read of size 4
==22735== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22735== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22735== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22735== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22735== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22735== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22735== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22735== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22735== by 0x8062D4E: main (nginx.c:382)
==22735== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22735==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
124-init-worker.t TEST 14: connection refused (tcp) - log_errors on by default - Can't connect to 127.0.0.1:1984: Connection refused ==22735==
==22735== Process terminating with default action of signal 11 (SIGSEGV)
==22735== Access not within mapped region at address 0x0
==22735== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22735== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22735== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22735== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22735== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22735== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22735== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22735== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22735== by 0x8062D4E: main (nginx.c:382)
==22735== If you believe this happened as a result of a stack
==22735== overflow in your program's main thread (unlikely but
==22735== possible), you can try to increase the size of the
==22735== main thread stack using the --main-stacksize= flag.
==22735== 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 - Can't connect to 127.0.0.1:1984: Connection refused ==22736== Invalid read of size 4
==22736== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22736== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22736== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22736== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22736== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22736== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22736== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22736== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22736== by 0x8062D4E: main (nginx.c:382)
==22736== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22736==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
124-init-worker.t TEST 9: unescape_uri - Can't connect to 127.0.0.1:1984: Connection refused ==22736==
==22736== Process terminating with default action of signal 11 (SIGSEGV)
==22736== Access not within mapped region at address 0x0
==22736== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22736== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22736== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22736== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22736== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22736== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22736== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22736== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22736== by 0x8062D4E: main (nginx.c:382)
==22736== If you believe this happened as a result of a stack
==22736== overflow in your program's main thread (unlikely but
==22736== possible), you can try to increase the size of the
==22736== main thread stack using the --main-stacksize= flag.
==22736== 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 19: fake module calls ngx_stream_conf_get_module_srv_conf in its merge_srv_conf callback (GitHub issue #554) - Can't connect to 127.0.0.1:1984: Connection refused ==22737== Invalid read of size 4
==22737== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22737== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22737== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22737== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22737== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22737== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22737== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22737== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22737== by 0x8062D4E: main (nginx.c:382)
==22737== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22737==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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) - Can't connect to 127.0.0.1:1984: Connection refused ==22737==
==22737== Process terminating with default action of signal 11 (SIGSEGV)
==22737== Access not within mapped region at address 0x0
==22737== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22737== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22737== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22737== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22737== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22737== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22737== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22737== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22737== by 0x8062D4E: main (nginx.c:382)
==22737== If you believe this happened as a result of a stack
==22737== overflow in your program's main thread (unlikely but
==22737== possible), you can try to increase the size of the
==22737== main thread stack using the --main-stacksize= flag.
==22737== 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 TEST 13: cosocket with resolver - Can't connect to 127.0.0.1:1984: Connection refused ==22738== Invalid read of size 4
==22738== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22738== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22738== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22738== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22738== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22738== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22738== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22738== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22738== by 0x8062D4E: main (nginx.c:382)
==22738== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22738==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
124-init-worker.t TEST 13: cosocket with resolver - Can't connect to 127.0.0.1:1984: Connection refused ==22738==
==22738== Process terminating with default action of signal 11 (SIGSEGV)
==22738== Access not within mapped region at address 0x0
==22738== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22738== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22738== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22738== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22738== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22738== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22738== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22738== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22738== by 0x8062D4E: main (nginx.c:382)
==22738== If you believe this happened as a result of a stack
==22738== overflow in your program's main thread (unlikely but
==22738== possible), you can try to increase the size of the
==22738== main thread stack using the --main-stacksize= flag.
==22738== 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 16: connection refused (tcp) - log_errors explicitly off - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22739== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
124-init-worker.t TEST 16: connection refused (tcp) - log_errors explicitly off - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22739== by 0x8062D4E: main (nginx.c:382)
==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.

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 2: no ngx.say() - Can't connect to 127.0.0.1:1984: Connection refused ==22740== Invalid read of size 4
==22740== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22740== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22740== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22740== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22740== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22740== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22740== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22740== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22740== by 0x8062D4E: main (nginx.c:382)
==22740== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22740==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
124-init-worker.t TEST 2: no ngx.say() - Can't connect to 127.0.0.1:1984: Connection refused ==22740==
==22740== Process terminating with default action of signal 11 (SIGSEGV)
==22740== Access not within mapped region at address 0x0
==22740== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22740== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22740== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22740== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22740== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22740== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22740== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22740== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22740== by 0x8062D4E: main (nginx.c:382)
==22740== If you believe this happened as a result of a stack
==22740== overflow in your program's main thread (unlikely but
==22740== possible), you can try to increase the size of the
==22740== main thread stack using the --main-stacksize= flag.
==22740== 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 7: ngx.ctx - Can't connect to 127.0.0.1:1984: Connection refused ==22741== Invalid read of size 4
==22741== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22741== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22741== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22741== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22741== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22741== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22741== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22741== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22741== by 0x8062D4E: main (nginx.c:382)
==22741== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22741==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
124-init-worker.t TEST 7: ngx.ctx - Can't connect to 127.0.0.1:1984: Connection refused ==22741==
==22741== Process terminating with default action of signal 11 (SIGSEGV)
==22741== Access not within mapped region at address 0x0
==22741== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22741== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22741== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22741== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22741== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22741== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22741== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22741== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22741== by 0x8062D4E: main (nginx.c:382)
==22741== If you believe this happened as a result of a stack
==22741== overflow in your program's main thread (unlikely but
==22741== possible), you can try to increase the size of the
==22741== main thread stack using the --main-stacksize= flag.
==22741== 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 1: set a global lua var - Can't connect to 127.0.0.1:1984: Connection refused ==22742== Invalid read of size 4
==22742== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22742== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22742== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22742== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22742== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22742== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22742== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22742== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22742== by 0x8062D4E: main (nginx.c:382)
==22742== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22742==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
124-init-worker.t TEST 1: set a global lua var - Can't connect to 127.0.0.1:1984: Connection refused ==22742==
==22742== Process terminating with default action of signal 11 (SIGSEGV)
==22742== Access not within mapped region at address 0x0
==22742== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22742== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22742== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22742== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22742== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22742== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22742== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22742== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22742== by 0x8062D4E: main (nginx.c:382)
==22742== If you believe this happened as a result of a stack
==22742== overflow in your program's main thread (unlikely but
==22742== possible), you can try to increase the size of the
==22742== main thread stack using the --main-stacksize= flag.
==22742== 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
'
124-init-worker.t TEST 8: print - Can't connect to 127.0.0.1:1984: Connection refused ==22743== Invalid read of size 4
==22743== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22743== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22743== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22743== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22743== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22743== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22743== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22743== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22743== by 0x8062D4E: main (nginx.c:382)
==22743== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22743==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
124-init-worker.t TEST 8: print - Can't connect to 127.0.0.1:1984: Connection refused ==22743==
==22743== Process terminating with default action of signal 11 (SIGSEGV)
==22743== Access not within mapped region at address 0x0
==22743== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22743== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22743== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22743== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22743== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22743== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22743== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22743== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22743== by 0x8062D4E: main (nginx.c:382)
==22743== If you believe this happened as a result of a stack
==22743== overflow in your program's main thread (unlikely but
==22743== possible), you can try to increase the size of the
==22743== main thread stack using the --main-stacksize= flag.
==22743== 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 10: escape_uri - Can't connect to 127.0.0.1:1984: Connection refused ==22744== Invalid read of size 4
==22744== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22744== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22744== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22744== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22744== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22744== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22744== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22744== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22744== by 0x8062D4E: main (nginx.c:382)
==22744== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22744==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
124-init-worker.t TEST 10: escape_uri - Can't connect to 127.0.0.1:1984: Connection refused ==22744==
==22744== Process terminating with default action of signal 11 (SIGSEGV)
==22744== Access not within mapped region at address 0x0
==22744== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22744== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22744== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22744== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22744== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22744== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22744== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22744== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22744== by 0x8062D4E: main (nginx.c:382)
==22744== If you believe this happened as a result of a stack
==22744== overflow in your program's main thread (unlikely but
==22744== possible), you can try to increase the size of the
==22744== main thread stack using the --main-stacksize= flag.
==22744== 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
'
125-configure-args.t TEST 1: nginx configure - Can't connect to 127.0.0.1:1984: Connection refused ==22748== Invalid read of size 4
==22748== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22748== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22748== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22748== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22748== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22748== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22748== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22748== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22748== by 0x8062D4E: main (nginx.c:382)
==22748== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22748==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
125-configure-args.t TEST 1: nginx configure - Can't connect to 127.0.0.1:1984: Connection refused ==22748==
==22748== Process terminating with default action of signal 11 (SIGSEGV)
==22748== Access not within mapped region at address 0x0
==22748== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22748== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22748== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22748== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22748== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22748== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22748== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22748== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22748== by 0x8062D4E: main (nginx.c:382)
==22748== If you believe this happened as a result of a stack
==22748== overflow in your program's main thread (unlikely but
==22748== possible), you can try to increase the size of the
==22748== main thread stack using the --main-stacksize= flag.
==22748== 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 (aborted) '
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 9: cannot merge in-used big slabs page (forward) - Can't connect to 127.0.0.1:1984: Connection refused ==22753== Invalid read of size 4
==22753== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22753== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22753== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22753== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22753== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22753== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22753== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22753== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22753== by 0x8062D4E: main (nginx.c:382)
==22753== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22753==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
126-shdict-frag.t TEST 9: cannot merge in-used big slabs page (forward) - Can't connect to 127.0.0.1:1984: Connection refused ==22753==
==22753== Process terminating with default action of signal 11 (SIGSEGV)
==22753== Access not within mapped region at address 0x0
==22753== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22753== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22753== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22753== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22753== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22753== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22753== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22753== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22753== by 0x8062D4E: main (nginx.c:382)
==22753== If you believe this happened as a result of a stack
==22753== overflow in your program's main thread (unlikely but
==22753== possible), you can try to increase the size of the
==22753== main thread stack using the --main-stacksize= flag.
==22753== 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 1: merge 2 single-page free blocks (forcibly evicted, merge forward) - Can't connect to 127.0.0.1:1984: Connection refused ==22754== Invalid read of size 4
==22754== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22754== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22754== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22754== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22754== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22754== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22754== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22754== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22754== by 0x8062D4E: main (nginx.c:382)
==22754== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22754==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
126-shdict-frag.t TEST 1: merge 2 single-page free blocks (forcibly evicted, merge forward) - Can't connect to 127.0.0.1:1984: Connection refused ==22754==
==22754== Process terminating with default action of signal 11 (SIGSEGV)
==22754== Access not within mapped region at address 0x0
==22754== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22754== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22754== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22754== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22754== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22754== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22754== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22754== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22754== by 0x8062D4E: main (nginx.c:382)
==22754== If you believe this happened as a result of a stack
==22754== overflow in your program's main thread (unlikely but
==22754== possible), you can try to increase the size of the
==22754== main thread stack using the --main-stacksize= flag.
==22754== 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 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 3: merge 3 single-page free slabs (actively deleted, merge backward AND forward) - Can't connect to 127.0.0.1:1984: Connection refused ==22755== Invalid read of size 4
==22755== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22755== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22755== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22755== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22755== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22755== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22755== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22755== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22755== by 0x8062D4E: main (nginx.c:382)
==22755== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22755==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
126-shdict-frag.t TEST 3: merge 3 single-page free slabs (actively deleted, merge backward AND forward) - Can't connect to 127.0.0.1:1984: Connection refused ==22755==
==22755== Process terminating with default action of signal 11 (SIGSEGV)
==22755== Access not within mapped region at address 0x0
==22755== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22755== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22755== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22755== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22755== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22755== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22755== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22755== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22755== by 0x8062D4E: main (nginx.c:382)
==22755== If you believe this happened as a result of a stack
==22755== overflow in your program's main thread (unlikely but
==22755== possible), you can try to increase the size of the
==22755== main thread stack using the --main-stacksize= flag.
==22755== 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'
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
'
126-shdict-frag.t TEST 6: merge 2 multi-page blocks (forcibly evicted, merge backward) - Can't connect to 127.0.0.1:1984: Connection refused ==22756== Invalid read of size 4
==22756== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22756== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22756== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22756== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22756== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22756== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22756== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22756== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22756== by 0x8062D4E: main (nginx.c:382)
==22756== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22756==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
126-shdict-frag.t TEST 6: merge 2 multi-page blocks (forcibly evicted, merge backward) - Can't connect to 127.0.0.1:1984: Connection refused ==22756==
==22756== Process terminating with default action of signal 11 (SIGSEGV)
==22756== Access not within mapped region at address 0x0
==22756== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22756== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22756== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22756== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22756== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22756== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22756== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22756== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22756== by 0x8062D4E: main (nginx.c:382)
==22756== If you believe this happened as a result of a stack
==22756== overflow in your program's main thread (unlikely but
==22756== possible), you can try to increase the size of the
==22756== main thread stack using the --main-stacksize= flag.
==22756== 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 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 2: merge 2 single-page free slabs (forcibly evicted, merge backward) - Can't connect to 127.0.0.1:1984: Connection refused ==22757== Invalid read of size 4
==22757== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22757== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22757== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22757== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22757== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22757== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22757== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22757== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22757== by 0x8062D4E: main (nginx.c:382)
==22757== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22757==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
126-shdict-frag.t TEST 2: merge 2 single-page free slabs (forcibly evicted, merge backward) - Can't connect to 127.0.0.1:1984: Connection refused ==22757==
==22757== Process terminating with default action of signal 11 (SIGSEGV)
==22757== Access not within mapped region at address 0x0
==22757== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22757== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22757== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22757== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22757== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22757== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22757== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22757== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22757== by 0x8062D4E: main (nginx.c:382)
==22757== If you believe this happened as a result of a stack
==22757== overflow in your program's main thread (unlikely but
==22757== possible), you can try to increase the size of the
==22757== main thread stack using the --main-stacksize= flag.
==22757== 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 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 5: merge one single-page block forward, but no more - Can't connect to 127.0.0.1:1984: Connection refused ==22758== Invalid read of size 4
==22758== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22758== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22758== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22758== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22758== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22758== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22758== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22758== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22758== by 0x8062D4E: main (nginx.c:382)
==22758== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22758==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
126-shdict-frag.t TEST 5: merge one single-page block forward, but no more - Can't connect to 127.0.0.1:1984: Connection refused ==22758==
==22758== Process terminating with default action of signal 11 (SIGSEGV)
==22758== Access not within mapped region at address 0x0
==22758== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22758== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22758== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22758== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22758== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22758== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22758== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22758== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22758== by 0x8062D4E: main (nginx.c:382)
==22758== If you believe this happened as a result of a stack
==22758== overflow in your program's main thread (unlikely but
==22758== possible), you can try to increase the size of the
==22758== main thread stack using the --main-stacksize= flag.
==22758== 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 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 7: merge big slabs (less than max slab size) backward - Can't connect to 127.0.0.1:1984: Connection refused ==22759== Invalid read of size 4
==22759== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22759== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22759== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22759== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22759== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22759== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22759== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22759== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22759== by 0x8062D4E: main (nginx.c:382)
==22759== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22759==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
126-shdict-frag.t TEST 7: merge big slabs (less than max slab size) backward - Can't connect to 127.0.0.1:1984: Connection refused ==22759==
==22759== Process terminating with default action of signal 11 (SIGSEGV)
==22759== Access not within mapped region at address 0x0
==22759== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22759== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22759== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22759== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22759== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22759== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22759== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22759== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22759== by 0x8062D4E: main (nginx.c:382)
==22759== If you believe this happened as a result of a stack
==22759== overflow in your program's main thread (unlikely but
==22759== possible), you can try to increase the size of the
==22759== main thread stack using the --main-stacksize= flag.
==22759== The main thread stack size used in this run was 8388608.
==22759== 1,024 bytes in 1 blocks are definitely lost in loss record 2,779 of 2,885
==22759== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==22759== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==22759== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22759== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22759== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==22759== by 0x408A8C6: ir_nextk (lj_ir.c:175)
==22759== by 0x408A8C6: lj_ir_kgc (lj_ir.c:286)
==22759== by 0x409C767: lj_record_mm_lookup (lj_record.c:999)
==22759== by 0x409E47A: rec_mm_comp_cdata (lj_record.c:1202)
==22759== by 0x40A0BF3: lj_record_ins (lj_record.c:2173)
==22759== by 0x40BB16A: trace_state (lj_trace.c:680)
==22759== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22759== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22759== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==22759== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22759== by 0x407FA29: lua_resume (lj_api.c:1296)
==22759== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22759== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==22759== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==22759== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22759== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22759== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22759== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22759== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22759== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==22759== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22759== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22759== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22759== by 0x8062D4E: main (nginx.c:382)
==22759==
{
<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_single_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 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 4: merge one single-page block backward, but no more - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22760== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
126-shdict-frag.t TEST 4: merge one single-page block backward, but no more - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22760== by 0x8062D4E: main (nginx.c:382)
==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.

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 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 10: fuzz testing - Can't connect to 127.0.0.1:1984: Connection refused ==22761== Invalid read of size 4
==22761== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22761== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22761== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22761== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22761== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22761== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22761== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22761== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22761== by 0x8062D4E: main (nginx.c:382)
==22761== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22761==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
126-shdict-frag.t TEST 10: fuzz testing - Can't connect to 127.0.0.1:1984: Connection refused ==22761==
==22761== Process terminating with default action of signal 11 (SIGSEGV)
==22761== Access not within mapped region at address 0x0
==22761== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22761== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22761== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22761== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22761== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22761== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22761== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22761== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22761== by 0x8062D4E: main (nginx.c:382)
==22761== If you believe this happened as a result of a stack
==22761== overflow in your program's main thread (unlikely but
==22761== possible), you can try to increase the size of the
==22761== main thread stack using the --main-stacksize= flag.
==22761== The main thread stack size used in this run was 8388608.
==22761== 4,096 bytes in 1 blocks are definitely lost in loss record 2,851 of 2,878
==22761== at 0x402C768: realloc (vg_replace_malloc.c:834)
==22761== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22761== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22761== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==22761== by 0x408F5A6: lj_ir_nextins (lj_iropt.h:34)
==22761== by 0x408F5A6: lj_opt_cse (lj_opt_fold.c:2549)
==22761== by 0x409AA39: lj_record_objcmp (lj_record.c:242)
==22761== by 0x40A0354: lj_record_ins (lj_record.c:2181)
==22761== by 0x40BB16A: trace_state (lj_trace.c:680)
==22761== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22761== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22761== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==22761== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22761== by 0x407FA29: lua_resume (lj_api.c:1296)
==22761== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22761== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==22761== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==22761== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22761== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22761== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22761== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22761== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22761== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==22761== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22761== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22761== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22761== by 0x8062D4E: main (nginx.c:382)
==22761==
{
<insert_a_suppression_name_here>
Memcheck: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:lj_record_objcmp
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_single_process_cycle
fun:main
}
126-shdict-frag.t TEST 10: fuzz testing - status code ok got: ''
expected: '200'
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 8: cannot merge in-used big slabs page (backward) - Can't connect to 127.0.0.1:1984: Connection refused ==22762== Invalid read of size 4
==22762== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22762== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22762== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22762== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22762== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22762== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22762== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22762== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22762== by 0x8062D4E: main (nginx.c:382)
==22762== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22762==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
126-shdict-frag.t TEST 8: cannot merge in-used big slabs page (backward) - Can't connect to 127.0.0.1:1984: Connection refused ==22762==
==22762== Process terminating with default action of signal 11 (SIGSEGV)
==22762== Access not within mapped region at address 0x0
==22762== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22762== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22762== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22762== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22762== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22762== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22762== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22762== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22762== by 0x8062D4E: main (nginx.c:382)
==22762== If you believe this happened as a result of a stack
==22762== overflow in your program's main thread (unlikely but
==22762== possible), you can try to increase the size of the
==22762== main thread stack using the --main-stacksize= flag.
==22762== The main thread stack size used in this run was 8388608.
==22762== 2,048 bytes in 1 blocks are definitely lost in loss record 2,827 of 2,886
==22762== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==22762== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==22762== by 0x40CC146: mem_alloc (lib_aux.c:335)
==22762== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==22762== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==22762== by 0x408A511: ir_nextk (lj_ir.c:175)
==22762== by 0x408A511: lj_ir_kint (lj_ir.c:206)
==22762== by 0x40A4B7A: crec_ct_tv (lj_crecord.c:682)
==22762== by 0x40A711A: crec_call_args (lj_crecord.c:1127)
==22762== by 0x40A711A: crec_call (lj_crecord.c:1231)
==22762== by 0x40A711A: recff_cdata_call (lj_crecord.c:1277)
==22762== by 0x40AE0BC: lj_ffrecord_func (lj_ffrecord.c:1254)
==22762== by 0x409F4CA: lj_record_ins (lj_record.c:2479)
==22762== by 0x40BB16A: trace_state (lj_trace.c:680)
==22762== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22762== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==22762== by 0x407596F: lj_dispatch_call (lj_dispatch.c:488)
==22762== by 0x406904F: lj_vm_hotcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22762== by 0x407FA29: lua_resume (lj_api.c:1296)
==22762== by 0x815514C: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==22762== by 0x8152D55: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==22762== by 0x8152F26: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==22762== by 0x8152ACA: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==22762== by 0x80EF62E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==22762== by 0x80EF271: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==22762== by 0x80EDB60: ngx_stream_session_handler (ngx_stream_handler.c:292)
==22762== by 0x80EE12A: ngx_stream_init_connection (ngx_stream_handler.c:201)
==22762== by 0x8083455: ngx_event_accept (ngx_event_accept.c:320)
==22762== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22762== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22762== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22762== by 0x8062D4E: main (nginx.c:382)
==22762==
{
<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_single_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 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
'
127-uthread-kill.t TEST 4: kill pending connect - Can't connect to 127.0.0.1:1984: Connection refused ==22766== Invalid read of size 4
==22766== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22766== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22766== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22766== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22766== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22766== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22766== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22766== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22766== by 0x8062D4E: main (nginx.c:382)
==22766== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22766==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
127-uthread-kill.t TEST 4: kill pending connect - Can't connect to 127.0.0.1:1984: Connection refused ==22766==
==22766== Process terminating with default action of signal 11 (SIGSEGV)
==22766== Access not within mapped region at address 0x0
==22766== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22766== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22766== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22766== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22766== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22766== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22766== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22766== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22766== by 0x8062D4E: main (nginx.c:382)
==22766== If you believe this happened as a result of a stack
==22766== overflow in your program's main thread (unlikely but
==22766== possible), you can try to increase the size of the
==22766== main thread stack using the --main-stacksize= flag.
==22766== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 2: already waited - Can't connect to 127.0.0.1:1984: Connection refused ==22768== Invalid read of size 4
==22768== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22768== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22768== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22768== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22768== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22768== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22768== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22768== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22768== by 0x8062D4E: main (nginx.c:382)
==22768== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22768==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
127-uthread-kill.t TEST 2: already waited - Can't connect to 127.0.0.1:1984: Connection refused ==22768==
==22768== Process terminating with default action of signal 11 (SIGSEGV)
==22768== Access not within mapped region at address 0x0
==22768== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22768== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22768== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22768== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22768== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22768== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22768== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22768== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22768== by 0x8062D4E: main (nginx.c:382)
==22768== If you believe this happened as a result of a stack
==22768== overflow in your program's main thread (unlikely but
==22768== possible), you can try to increase the size of the
==22768== main thread stack using the --main-stacksize= flag.
==22768== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 3: kill pending resolver - Can't connect to 127.0.0.1:1984: Connection refused ==22770== Invalid read of size 4
==22770== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22770== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22770== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22770== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22770== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22770== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22770== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22770== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22770== by 0x8062D4E: main (nginx.c:382)
==22770== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22770==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
127-uthread-kill.t TEST 3: kill pending resolver - Can't connect to 127.0.0.1:1984: Connection refused ==22770==
==22770== Process terminating with default action of signal 11 (SIGSEGV)
==22770== Access not within mapped region at address 0x0
==22770== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22770== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22770== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22770== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22770== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22770== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22770== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22770== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22770== by 0x8062D4E: main (nginx.c:382)
==22770== If you believe this happened as a result of a stack
==22770== overflow in your program's main thread (unlikely but
==22770== possible), you can try to increase the size of the
==22770== main thread stack using the --main-stacksize= flag.
==22770== 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 (aborted) '
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 3: kill pending resolver - pattern "lua tcp socket abort resolver" should match a line in error.log (req 1)
127-uthread-kill.t TEST 3: kill pending resolver - pattern "resolve name done: -2" should match a line in error.log (req 1)
127-uthread-kill.t TEST 5: kill a thread already terminated - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22772== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
127-uthread-kill.t TEST 5: kill a thread already terminated - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22772== by 0x8062D4E: main (nginx.c:382)
==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 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 6: kill self - Can't connect to 127.0.0.1:1984: Connection refused ==22774== Invalid read of size 4
==22774== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22774== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22774== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22774== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22774== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22774== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22774== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22774== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22774== by 0x8062D4E: main (nginx.c:382)
==22774== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22774==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
127-uthread-kill.t TEST 6: kill self - Can't connect to 127.0.0.1:1984: Connection refused ==22774==
==22774== Process terminating with default action of signal 11 (SIGSEGV)
==22774== Access not within mapped region at address 0x0
==22774== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22774== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22774== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22774== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22774== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22774== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22774== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22774== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22774== by 0x8062D4E: main (nginx.c:382)
==22774== If you believe this happened as a result of a stack
==22774== overflow in your program's main thread (unlikely but
==22774== possible), you can try to increase the size of the
==22774== main thread stack using the --main-stacksize= flag.
==22774== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: kill pending sleep - Can't connect to 127.0.0.1:1984: Connection refused ==22776== Invalid read of size 4
==22776== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22776== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22776== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22776== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22776== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22776== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22776== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22776== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22776== by 0x8062D4E: main (nginx.c:382)
==22776== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22776==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
127-uthread-kill.t TEST 1: kill pending sleep - Can't connect to 127.0.0.1:1984: Connection refused ==22776==
==22776== Process terminating with default action of signal 11 (SIGSEGV)
==22776== Access not within mapped region at address 0x0
==22776== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22776== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22776== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22776== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22776== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22776== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22776== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22776== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22776== by 0x8062D4E: main (nginx.c:382)
==22776== If you believe this happened as a result of a stack
==22776== overflow in your program's main thread (unlikely but
==22776== possible), you can try to increase the size of the
==22776== main thread stack using the --main-stacksize= flag.
==22776== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
127-uthread-kill.t TEST 1: kill pending sleep - pattern "lua clean up the timer for pending ngx.sleep" should match a line in error.log (req 1)
128-duplex-tcp-socket.t TEST 4: reads are rejected while writes are not - Can't connect to 127.0.0.1:1984: Connection refused ==22781== Invalid read of size 4
==22781== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22781== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22781== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22781== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22781== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22781== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22781== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22781== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22781== by 0x8062D4E: main (nginx.c:382)
==22781== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22781==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
128-duplex-tcp-socket.t TEST 4: reads are rejected while writes are not - Can't connect to 127.0.0.1:1984: Connection refused ==22781==
==22781== Process terminating with default action of signal 11 (SIGSEGV)
==22781== Access not within mapped region at address 0x0
==22781== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22781== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22781== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22781== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22781== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22781== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22781== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22781== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22781== by 0x8062D4E: main (nginx.c:382)
==22781== If you believe this happened as a result of a stack
==22781== overflow in your program's main thread (unlikely but
==22781== possible), you can try to increase the size of the
==22781== main thread stack using the --main-stacksize= flag.
==22781== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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'
128-duplex-tcp-socket.t TEST 3: writes are rejected while reads are not - Can't connect to 127.0.0.1:1984: Connection refused ==22785== Invalid read of size 4
==22785== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22785== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22785== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22785== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22785== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22785== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22785== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22785== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22785== by 0x8062D4E: main (nginx.c:382)
==22785== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22785==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
128-duplex-tcp-socket.t TEST 3: writes are rejected while reads are not - Can't connect to 127.0.0.1:1984: Connection refused ==22785==
==22785== Process terminating with default action of signal 11 (SIGSEGV)
==22785== Access not within mapped region at address 0x0
==22785== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22785== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22785== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22785== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22785== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22785== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22785== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22785== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22785== by 0x8062D4E: main (nginx.c:382)
==22785== If you believe this happened as a result of a stack
==22785== overflow in your program's main thread (unlikely but
==22785== possible), you can try to increase the size of the
==22785== main thread stack using the --main-stacksize= flag.
==22785== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 6: concurrent operations while resolving - Can't connect to 127.0.0.1:1984: Connection refused ==22789== Invalid read of size 4
==22789== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22789== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22789== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22789== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22789== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22789== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22789== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22789== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22789== by 0x8062D4E: main (nginx.c:382)
==22789== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22789==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
128-duplex-tcp-socket.t TEST 6: concurrent operations while resolving - Can't connect to 127.0.0.1:1984: Connection refused ==22789==
==22789== Process terminating with default action of signal 11 (SIGSEGV)
==22789== Access not within mapped region at address 0x0
==22789== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22789== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22789== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22789== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22789== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22789== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22789== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22789== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22789== by 0x8062D4E: main (nginx.c:382)
==22789== If you believe this happened as a result of a stack
==22789== overflow in your program's main thread (unlikely but
==22789== possible), you can try to increase the size of the
==22789== main thread stack using the --main-stacksize= flag.
==22789== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 8: concurrent operations while reading (receiveuntil) - Can't connect to 127.0.0.1:1984: Connection refused ==22791== Invalid read of size 4
==22791== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22791== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22791== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22791== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22791== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22791== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22791== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22791== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22791== by 0x8062D4E: main (nginx.c:382)
==22791== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22791==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
128-duplex-tcp-socket.t TEST 8: concurrent operations while reading (receiveuntil) - Can't connect to 127.0.0.1:1984: Connection refused ==22791==
==22791== Process terminating with default action of signal 11 (SIGSEGV)
==22791== Access not within mapped region at address 0x0
==22791== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22791== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22791== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22791== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22791== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22791== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22791== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22791== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22791== by 0x8062D4E: main (nginx.c:382)
==22791== If you believe this happened as a result of a stack
==22791== overflow in your program's main thread (unlikely but
==22791== possible), you can try to increase the size of the
==22791== main thread stack using the --main-stacksize= flag.
==22791== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 7: concurrent operations while reading (receive) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22793== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
128-duplex-tcp-socket.t TEST 7: concurrent operations while reading (receive) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22793== by 0x8062D4E: main (nginx.c:382)
==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.

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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: pipelined memcached requests (sent one byte at a time) - Can't connect to 127.0.0.1:1984: Connection refused ==22795== Invalid read of size 4
==22795== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22795== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22795== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22795== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22795== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22795== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22795== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22795== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22795== by 0x8062D4E: main (nginx.c:382)
==22795== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22795==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
128-duplex-tcp-socket.t TEST 1: pipelined memcached requests (sent one byte at a time) - Can't connect to 127.0.0.1:1984: Connection refused ==22795==
==22795== Process terminating with default action of signal 11 (SIGSEGV)
==22795== Access not within mapped region at address 0x0
==22795== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22795== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22795== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22795== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22795== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22795== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22795== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22795== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22795== by 0x8062D4E: main (nginx.c:382)
==22795== If you believe this happened as a result of a stack
==22795== overflow in your program's main thread (unlikely but
==22795== possible), you can try to increase the size of the
==22795== main thread stack using the --main-stacksize= flag.
==22795== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 5: concurrent socket operations while connecting - Can't connect to 127.0.0.1:1984: Connection refused ==22797== Invalid read of size 4
==22797== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22797== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22797== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22797== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22797== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22797== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22797== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22797== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22797== by 0x8062D4E: main (nginx.c:382)
==22797== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22797==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==22797==
==22797== Process terminating with default action of signal 11 (SIGSEGV)
==22797== Access not within mapped region at address 0x0
==22797== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22797== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22797== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22797== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22797== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22797== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22797== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22797== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22797== by 0x8062D4E: main (nginx.c:382)
==22797== If you believe this happened as a result of a stack
==22797== overflow in your program's main thread (unlikely but
==22797== possible), you can try to increase the size of the
==22797== main thread stack using the --main-stacksize= flag.
==22797== 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 (aborted) '
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 2: read timeout errors won't affect writing - Can't connect to 127.0.0.1:1984: Connection refused ==22799== Invalid read of size 4
==22799== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22799== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22799== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22799== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22799== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22799== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22799== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22799== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22799== by 0x8062D4E: main (nginx.c:382)
==22799== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22799==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
128-duplex-tcp-socket.t TEST 2: read timeout errors won't affect writing - Can't connect to 127.0.0.1:1984: Connection refused ==22799==
==22799== Process terminating with default action of signal 11 (SIGSEGV)
==22799== Access not within mapped region at address 0x0
==22799== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22799== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22799== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22799== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22799== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22799== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22799== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22799== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22799== by 0x8062D4E: main (nginx.c:382)
==22799== If you believe this happened as a result of a stack
==22799== overflow in your program's main thread (unlikely but
==22799== possible), you can try to increase the size of the
==22799== main thread stack using the --main-stacksize= flag.
==22799== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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$)'
129-ssl-socket.t TEST 1: www.google.com - Can't connect to 127.0.0.1:1984: Connection refused ==22804== Invalid read of size 4
==22804== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22804== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22804== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22804== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22804== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22804== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22804== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22804== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22804== by 0x8062D4E: main (nginx.c:382)
==22804== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22804==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
129-ssl-socket.t TEST 1: www.google.com - Can't connect to 127.0.0.1:1984: Connection refused ==22804==
==22804== Process terminating with default action of signal 11 (SIGSEGV)
==22804== Access not within mapped region at address 0x0
==22804== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22804== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22804== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22804== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22804== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22804== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22804== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22804== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22804== by 0x8062D4E: main (nginx.c:382)
==22804== If you believe this happened as a result of a stack
==22804== overflow in your program's main thread (unlikely but
==22804== possible), you can try to increase the size of the
==22804== main thread stack using the --main-stacksize= flag.
==22804== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 14: default cipher - Can't connect to 127.0.0.1:1984: Connection refused ==22806== Invalid read of size 4
==22806== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22806== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22806== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22806== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22806== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22806== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22806== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22806== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22806== by 0x8062D4E: main (nginx.c:382)
==22806== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22806==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
129-ssl-socket.t TEST 14: default cipher - Can't connect to 127.0.0.1:1984: Connection refused ==22806==
==22806== Process terminating with default action of signal 11 (SIGSEGV)
==22806== Access not within mapped region at address 0x0
==22806== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22806== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22806== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22806== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22806== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22806== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22806== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22806== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22806== by 0x8062D4E: main (nginx.c:382)
==22806== If you believe this happened as a result of a stack
==22806== overflow in your program's main thread (unlikely but
==22806== possible), you can try to increase the size of the
==22806== main thread stack using the --main-stacksize= flag.
==22806== 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 "(?^: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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl server name: "openresty.org"" 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 1)
129-ssl-socket.t TEST 29: unix domain ssl cosocket (keepalive) - Can't connect to 127.0.0.1:1984: Connection refused ==22808== Invalid read of size 4
==22808== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22808== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22808== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22808== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22808== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22808== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22808== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22808== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22808== by 0x8062D4E: main (nginx.c:382)
==22808== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22808==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
129-ssl-socket.t TEST 29: unix domain ssl cosocket (keepalive) - Can't connect to 127.0.0.1:1984: Connection refused ==22808==
==22808== Process terminating with default action of signal 11 (SIGSEGV)
==22808== Access not within mapped region at address 0x0
==22808== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22808== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22808== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22808== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22808== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22808== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22808== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22808== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22808== by 0x8062D4E: main (nginx.c:382)
==22808== If you believe this happened as a result of a stack
==22808== overflow in your program's main thread (unlikely but
==22808== possible), you can try to increase the size of the
==22808== main thread stack using the --main-stacksize= flag.
==22808== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 5: certificate does not match host name (verify) - Can't connect to 127.0.0.1:1984: Connection refused ==22821== Invalid read of size 4
==22821== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22821== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22821== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22821== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22821== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22821== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22821== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22821== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22821== by 0x8062D4E: main (nginx.c:382)
==22821== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22821==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
129-ssl-socket.t TEST 5: certificate does not match host name (verify) - Can't connect to 127.0.0.1:1984: Connection refused ==22821==
==22821== Process terminating with default action of signal 11 (SIGSEGV)
==22821== Access not within mapped region at address 0x0
==22821== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22821== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22821== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22821== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22821== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22821== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22821== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22821== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22821== by 0x8062D4E: main (nginx.c:382)
==22821== If you believe this happened as a result of a stack
==22821== overflow in your program's main thread (unlikely but
==22821== possible), you can try to increase the size of the
==22821== main thread stack using the --main-stacksize= flag.
==22821== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "stream lua ssl server name: "blah.openresty.org"" should match a line in error.log (req 1)
129-ssl-socket.t TEST 13: openresty.org: passing SSL verify with multiple certificates - Can't connect to 127.0.0.1:1984: Connection refused ==22823== Invalid read of size 4
==22823== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22823== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22823== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22823== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22823== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22823== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22823== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22823== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22823== by 0x8062D4E: main (nginx.c:382)
==22823== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22823==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
129-ssl-socket.t TEST 13: openresty.org: passing SSL verify with multiple certificates - Can't connect to 127.0.0.1:1984: Connection refused ==22823==
==22823== Process terminating with default action of signal 11 (SIGSEGV)
==22823== Access not within mapped region at address 0x0
==22823== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22823== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22823== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22823== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22823== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22823== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22823== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22823== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22823== by 0x8062D4E: main (nginx.c:382)
==22823== If you believe this happened as a result of a stack
==22823== overflow in your program's main thread (unlikely but
==22823== possible), you can try to increase the size of the
==22823== main thread stack using the --main-stacksize= flag.
==22823== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl server name: "openresty.org"" should match a line in error.log (req 1)
129-ssl-socket.t TEST 23: unix domain ssl cosocket (no ssl on server) - Can't connect to 127.0.0.1:1984: Connection refused ==22825== Invalid read of size 4
==22825== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22825== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22825== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22825== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22825== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22825== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22825== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22825== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22825== by 0x8062D4E: main (nginx.c:382)
==22825== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22825==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
129-ssl-socket.t TEST 23: unix domain ssl cosocket (no ssl on server) - Can't connect to 127.0.0.1:1984: Connection refused ==22825==
==22825== Process terminating with default action of signal 11 (SIGSEGV)
==22825== Access not within mapped region at address 0x0
==22825== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22825== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22825== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22825== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22825== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22825== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22825== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22825== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22825== by 0x8062D4E: main (nginx.c:382)
==22825== If you believe this happened as a result of a stack
==22825== overflow in your program's main thread (unlikely but
==22825== possible), you can try to increase the size of the
==22825== main thread stack using the --main-stacksize= flag.
==22825== 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 "(?^: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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "(?^:SSL_do_handshake\(\) failed .*?(unknown protocol|wrong version number))" should match a line in error.log (req 1)
129-ssl-socket.t TEST 24: lua_ssl_crl - Can't connect to 127.0.0.1:1984: Connection refused ==22827== Invalid read of size 4
==22827== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22827== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22827== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22827== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22827== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22827== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22827== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22827== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22827== by 0x8062D4E: main (nginx.c:382)
==22827== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22827==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
129-ssl-socket.t TEST 24: lua_ssl_crl - Can't connect to 127.0.0.1:1984: Connection refused ==22827==
==22827== Process terminating with default action of signal 11 (SIGSEGV)
==22827== Access not within mapped region at address 0x0
==22827== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22827== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22827== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22827== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22827== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22827== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22827== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22827== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22827== by 0x8062D4E: main (nginx.c:382)
==22827== If you believe this happened as a result of a stack
==22827== overflow in your program's main thread (unlikely but
==22827== possible), you can try to increase the size of the
==22827== main thread stack using the --main-stacksize= flag.
==22827== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl server name: "test.com"" should match a line in error.log (req 1)
129-ssl-socket.t TEST 10: ssl verify depth not enough (without automatic error logging) - Can't connect to 127.0.0.1:1984: Connection refused ==22829== Invalid read of size 4
==22829== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22829== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22829== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22829== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22829== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22829== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22829== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22829== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22829== by 0x8062D4E: main (nginx.c:382)
==22829== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22829==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
129-ssl-socket.t TEST 10: ssl verify depth not enough (without automatic error logging) - Can't connect to 127.0.0.1:1984: Connection refused ==22829==
==22829== Process terminating with default action of signal 11 (SIGSEGV)
==22829== Access not within mapped region at address 0x0
==22829== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22829== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22829== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22829== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22829== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22829== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22829== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22829== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22829== by 0x8062D4E: main (nginx.c:382)
==22829== If you believe this happened as a result of a stack
==22829== overflow in your program's main thread (unlikely but
==22829== possible), you can try to increase the size of the
==22829== main thread stack using the --main-stacksize= flag.
==22829== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl server name: "openresty.org"" should match a line in error.log (req 1)
129-ssl-socket.t TEST 3: SNI, no verify - Can't connect to 127.0.0.1:1984: Connection refused ==22831== Invalid read of size 4
==22831== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22831== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22831== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22831== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22831== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22831== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22831== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22831== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22831== by 0x8062D4E: main (nginx.c:382)
==22831== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22831==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
129-ssl-socket.t TEST 3: SNI, no verify - Can't connect to 127.0.0.1:1984: Connection refused ==22831==
==22831== Process terminating with default action of signal 11 (SIGSEGV)
==22831== Access not within mapped region at address 0x0
==22831== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22831== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22831== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22831== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22831== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22831== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22831== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22831== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22831== by 0x8062D4E: main (nginx.c:382)
==22831== If you believe this happened as a result of a stack
==22831== overflow in your program's main thread (unlikely but
==22831== possible), you can try to increase the size of the
==22831== main thread stack using the --main-stacksize= flag.
==22831== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl server name: "openresty.org"" should match a line in error.log (req 1)
129-ssl-socket.t TEST 9: ssl verify depth not enough (with automatic error logging) - Can't connect to 127.0.0.1:1984: Connection refused ==22833== Invalid read of size 4
==22833== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22833== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22833== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22833== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22833== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22833== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22833== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22833== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22833== by 0x8062D4E: main (nginx.c:382)
==22833== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22833==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
129-ssl-socket.t TEST 9: ssl verify depth not enough (with automatic error logging) - Can't connect to 127.0.0.1:1984: Connection refused ==22833==
==22833== Process terminating with default action of signal 11 (SIGSEGV)
==22833== Access not within mapped region at address 0x0
==22833== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22833== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22833== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22833== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22833== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22833== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22833== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22833== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22833== by 0x8062D4E: main (nginx.c:382)
==22833== If you believe this happened as a result of a stack
==22833== overflow in your program's main thread (unlikely but
==22833== possible), you can try to increase the size of the
==22833== main thread stack using the --main-stacksize= flag.
==22833== 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 "(?^: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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl server name: "openresty.org"" 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 1)
129-ssl-socket.t TEST 11: www.google.com (SSL verify passes) - Can't connect to 127.0.0.1:1984: Connection refused ==22835== Invalid read of size 4
==22835== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22835== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22835== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22835== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22835== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22835== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22835== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22835== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22835== by 0x8062D4E: main (nginx.c:382)
==22835== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22835==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
129-ssl-socket.t TEST 11: www.google.com (SSL verify passes) - Can't connect to 127.0.0.1:1984: Connection refused ==22835==
==22835== Process terminating with default action of signal 11 (SIGSEGV)
==22835== Access not within mapped region at address 0x0
==22835== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22835== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22835== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22835== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22835== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22835== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22835== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22835== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22835== by 0x8062D4E: main (nginx.c:382)
==22835== If you believe this happened as a result of a stack
==22835== overflow in your program's main thread (unlikely but
==22835== possible), you can try to increase the size of the
==22835== main thread stack using the --main-stacksize= flag.
==22835== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl server name: "www.google.com"" should match a line in error.log (req 1)
129-ssl-socket.t TEST 27: unix domain ssl cosocket (no gen session) - Can't connect to 127.0.0.1:1984: Connection refused ==22837== Invalid read of size 4
==22837== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22837== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22837== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22837== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22837== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22837== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22837== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22837== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22837== by 0x8062D4E: main (nginx.c:382)
==22837== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22837==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==22837==
==22837== Process terminating with default action of signal 11 (SIGSEGV)
==22837== Access not within mapped region at address 0x0
==22837== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22837== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22837== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22837== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22837== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22837== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22837== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22837== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22837== by 0x8062D4E: main (nginx.c:382)
==22837== If you believe this happened as a result of a stack
==22837== overflow in your program's main thread (unlikely but
==22837== possible), you can try to increase the size of the
==22837== main thread stack using the --main-stacksize= flag.
==22837== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 12: www.google.com (SSL verify enabled and no corresponding trusted certificates) - Can't connect to 127.0.0.1:1984: Connection refused ==22839== Invalid read of size 4
==22839== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22839== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22839== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22839== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22839== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22839== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22839== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22839== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22839== by 0x8062D4E: main (nginx.c:382)
==22839== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22839==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
129-ssl-socket.t TEST 12: www.google.com (SSL verify enabled and no corresponding trusted certificates) - Can't connect to 127.0.0.1:1984: Connection refused ==22839==
==22839== Process terminating with default action of signal 11 (SIGSEGV)
==22839== Access not within mapped region at address 0x0
==22839== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22839== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22839== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22839== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22839== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22839== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22839== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22839== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22839== by 0x8062D4E: main (nginx.c:382)
==22839== If you believe this happened as a result of a stack
==22839== overflow in your program's main thread (unlikely but
==22839== possible), you can try to increase the size of the
==22839== main thread stack using the --main-stacksize= flag.
==22839== 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 "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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl server name: "www.google.com"" should match a line in error.log (req 1)
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 17: unsupported ssl protocol - Can't connect to 127.0.0.1:1984: Connection refused ==22841== Invalid read of size 4
==22841== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22841== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22841== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22841== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22841== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22841== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22841== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22841== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22841== by 0x8062D4E: main (nginx.c:382)
==22841== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22841==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
129-ssl-socket.t TEST 17: unsupported ssl protocol - Can't connect to 127.0.0.1:1984: Connection refused ==22841==
==22841== Process terminating with default action of signal 11 (SIGSEGV)
==22841== Access not within mapped region at address 0x0
==22841== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22841== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22841== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22841== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22841== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22841== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22841== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22841== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22841== by 0x8062D4E: main (nginx.c:382)
==22841== If you believe this happened as a result of a stack
==22841== overflow in your program's main thread (unlikely but
==22841== possible), you can try to increase the size of the
==22841== main thread stack using the --main-stacksize= flag.
==22841== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "(?^:\[(crit|error)\] .*?SSL_do_handshake\(\) failed .*?(unsupported protocol|no protocols available))" should match a line in error.log (req 1)
129-ssl-socket.t TEST 17: unsupported ssl protocol - pattern "lua ssl server name: "openresty.org"" should match a line in error.log (req 1)
129-ssl-socket.t TEST 26: handshake timed out - Can't connect to 127.0.0.1:1984: Connection refused ==22843== Invalid read of size 4
==22843== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22843== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22843== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22843== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22843== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22843== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22843== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22843== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22843== by 0x8062D4E: main (nginx.c:382)
==22843== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22843==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
129-ssl-socket.t TEST 26: handshake timed out - Can't connect to 127.0.0.1:1984: Connection refused ==22843==
==22843== Process terminating with default action of signal 11 (SIGSEGV)
==22843== Access not within mapped region at address 0x0
==22843== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22843== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22843== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22843== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22843== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22843== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22843== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22843== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22843== by 0x8062D4E: main (nginx.c:382)
==22843== If you believe this happened as a result of a stack
==22843== overflow in your program's main thread (unlikely but
==22843== possible), you can try to increase the size of the
==22843== main thread stack using the --main-stacksize= flag.
==22843== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl server name: "openresty.org"" 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) - Can't connect to 127.0.0.1:1984: Connection refused ==22845== Invalid read of size 4
==22845== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22845== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22845== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22845== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22845== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22845== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22845== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22845== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22845== by 0x8062D4E: main (nginx.c:382)
==22845== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22845==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
129-ssl-socket.t TEST 30: unix domain ssl cosocket (verify cert but no host name check, passed) - Can't connect to 127.0.0.1:1984: Connection refused ==22845==
==22845== Process terminating with default action of signal 11 (SIGSEGV)
==22845== Access not within mapped region at address 0x0
==22845== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22845== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22845== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22845== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22845== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22845== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22845== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22845== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22845== by 0x8062D4E: main (nginx.c:382)
==22845== If you believe this happened as a result of a stack
==22845== overflow in your program's main thread (unlikely but
==22845== possible), you can try to increase the size of the
==22845== main thread stack using the --main-stacksize= flag.
==22845== 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) - 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - 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 20: downstream cosockets do not support ssl handshake - Can't connect to 127.0.0.1:1984: Connection refused ==22847== Invalid read of size 4
==22847== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22847== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22847== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22847== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22847== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22847== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22847== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22847== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22847== by 0x8062D4E: main (nginx.c:382)
==22847== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22847==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
129-ssl-socket.t TEST 20: downstream cosockets do not support ssl handshake - Can't connect to 127.0.0.1:1984: Connection refused ==22847==
==22847== Process terminating with default action of signal 11 (SIGSEGV)
==22847== Access not within mapped region at address 0x0
==22847== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22847== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22847== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22847== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22847== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22847== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22847== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22847== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22847== by 0x8062D4E: main (nginx.c:382)
==22847== If you believe this happened as a result of a stack
==22847== overflow in your program's main thread (unlikely but
==22847== possible), you can try to increase the size of the
==22847== main thread stack using the --main-stacksize= flag.
==22847== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "attempt to call method 'sslhandshake' (a nil value)" should match a line in error.log (req 1)
129-ssl-socket.t TEST 15: explicit cipher configuration - Can't connect to 127.0.0.1:1984: Connection refused ==22849== Invalid read of size 4
==22849== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22849== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22849== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22849== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22849== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22849== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22849== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22849== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22849== by 0x8062D4E: main (nginx.c:382)
==22849== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22849==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
129-ssl-socket.t TEST 15: explicit cipher configuration - Can't connect to 127.0.0.1:1984: Connection refused ==22849==
==22849== Process terminating with default action of signal 11 (SIGSEGV)
==22849== Access not within mapped region at address 0x0
==22849== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22849== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22849== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22849== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22849== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22849== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22849== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22849== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22849== by 0x8062D4E: main (nginx.c:382)
==22849== If you believe this happened as a result of a stack
==22849== overflow in your program's main thread (unlikely but
==22849== possible), you can try to increase the size of the
==22849== main thread stack using the --main-stacksize= flag.
==22849== 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 "(?^: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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl server name: "test.com"" should match a line in error.log (req 1)
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) - Can't connect to 127.0.0.1:1984: Connection refused ==22851== Invalid read of size 4
==22851== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22851== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22851== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22851== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22851== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22851== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22851== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22851== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22851== by 0x8062D4E: main (nginx.c:382)
==22851== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22851==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
129-ssl-socket.t TEST 31: unix domain ssl cosocket (verify cert but no host name check, NOT passed) - Can't connect to 127.0.0.1:1984: Connection refused ==22851==
==22851== Process terminating with default action of signal 11 (SIGSEGV)
==22851== Access not within mapped region at address 0x0
==22851== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22851== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22851== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22851== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22851== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22851== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22851== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22851== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22851== by 0x8062D4E: main (nginx.c:382)
==22851== If you believe this happened as a result of a stack
==22851== overflow in your program's main thread (unlikely but
==22851== possible), you can try to increase the size of the
==22851== main thread stack using the --main-stacksize= flag.
==22851== 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 "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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl certificate verify error: (18: self signed certificate)" should match a line in error.log (req 1)
129-ssl-socket.t TEST 2: no SNI, no verify - Can't connect to 127.0.0.1:1984: Connection refused ==22853== Invalid read of size 4
==22853== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22853== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22853== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22853== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22853== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22853== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22853== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22853== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22853== by 0x8062D4E: main (nginx.c:382)
==22853== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22853==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
129-ssl-socket.t TEST 2: no SNI, no verify - Can't connect to 127.0.0.1:1984: Connection refused ==22853==
==22853== Process terminating with default action of signal 11 (SIGSEGV)
==22853== Access not within mapped region at address 0x0
==22853== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22853== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22853== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22853== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22853== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22853== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22853== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22853== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22853== by 0x8062D4E: main (nginx.c:382)
==22853== If you believe this happened as a result of a stack
==22853== overflow in your program's main thread (unlikely but
==22853== possible), you can try to increase the size of the
==22853== main thread stack using the --main-stacksize= flag.
==22853== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 21: unix domain ssl cosocket (no verify) - Can't connect to 127.0.0.1:1984: Connection refused ==22855== Invalid read of size 4
==22855== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22855== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22855== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22855== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22855== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22855== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22855== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22855== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22855== by 0x8062D4E: main (nginx.c:382)
==22855== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22855==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
129-ssl-socket.t TEST 21: unix domain ssl cosocket (no verify) - Can't connect to 127.0.0.1:1984: Connection refused ==22855==
==22855== Process terminating with default action of signal 11 (SIGSEGV)
==22855== Access not within mapped region at address 0x0
==22855== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22855== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22855== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22855== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22855== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22855== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22855== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22855== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22855== by 0x8062D4E: main (nginx.c:382)
==22855== If you believe this happened as a result of a stack
==22855== overflow in your program's main thread (unlikely but
==22855== possible), you can try to increase the size of the
==22855== main thread stack using the --main-stacksize= flag.
==22855== 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) - 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - 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 28: unix domain ssl cosocket (gen session, true) - Can't connect to 127.0.0.1:1984: Connection refused ==22857== Invalid read of size 4
==22857== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22857== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22857== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22857== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22857== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22857== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22857== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22857== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22857== by 0x8062D4E: main (nginx.c:382)
==22857== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22857==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
129-ssl-socket.t TEST 28: unix domain ssl cosocket (gen session, true) - Can't connect to 127.0.0.1:1984: Connection refused ==22857==
==22857== Process terminating with default action of signal 11 (SIGSEGV)
==22857== Access not within mapped region at address 0x0
==22857== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22857== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22857== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22857== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22857== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22857== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22857== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22857== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22857== by 0x8062D4E: main (nginx.c:382)
==22857== If you believe this happened as a result of a stack
==22857== overflow in your program's main thread (unlikely but
==22857== possible), you can try to increase the size of the
==22857== main thread stack using the --main-stacksize= flag.
==22857== 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) - 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - 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 22: unix domain ssl cosocket (verify) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22859== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
129-ssl-socket.t TEST 22: unix domain ssl cosocket (verify) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22859== by 0x8062D4E: main (nginx.c:382)
==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.

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) - 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - 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 22: unix domain ssl cosocket (verify) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1)
129-ssl-socket.t TEST 16: explicit ssl protocol configuration - Can't connect to 127.0.0.1:1984: Connection refused ==22861== Invalid read of size 4
==22861== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22861== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22861== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22861== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22861== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22861== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22861== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22861== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22861== by 0x8062D4E: main (nginx.c:382)
==22861== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22861==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
129-ssl-socket.t TEST 16: explicit ssl protocol configuration - Can't connect to 127.0.0.1:1984: Connection refused ==22861==
==22861== Process terminating with default action of signal 11 (SIGSEGV)
==22861== Access not within mapped region at address 0x0
==22861== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22861== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22861== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22861== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22861== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22861== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22861== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22861== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22861== by 0x8062D4E: main (nginx.c:382)
==22861== If you believe this happened as a result of a stack
==22861== overflow in your program's main thread (unlikely but
==22861== possible), you can try to increase the size of the
==22861== main thread stack using the --main-stacksize= flag.
==22861== 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 "(?^: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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl server name: "test.com"" 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 1)
129-ssl-socket.t TEST 18: openresty.org: passing SSL verify: keepalive (reuse the ssl session) - Can't connect to 127.0.0.1:1984: Connection refused ==22863== Invalid read of size 4
==22863== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22863== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22863== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22863== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22863== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22863== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22863== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22863== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22863== by 0x8062D4E: main (nginx.c:382)
==22863== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22863==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
129-ssl-socket.t TEST 18: openresty.org: passing SSL verify: keepalive (reuse the ssl session) - Can't connect to 127.0.0.1:1984: Connection refused ==22863==
==22863== Process terminating with default action of signal 11 (SIGSEGV)
==22863== Access not within mapped region at address 0x0
==22863== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22863== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22863== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22863== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22863== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22863== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22863== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22863== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22863== by 0x8062D4E: main (nginx.c:382)
==22863== If you believe this happened as a result of a stack
==22863== overflow in your program's main thread (unlikely but
==22863== possible), you can try to increase the size of the
==22863== main thread stack using the --main-stacksize= flag.
==22863== 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 "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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua tcp socket get keepalive peer: using connection" should match a line in error.log (req 1)
129-ssl-socket.t TEST 8: openresty.org: passing SSL verify - Can't connect to 127.0.0.1:1984: Connection refused ==22865== Invalid read of size 4
==22865== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22865== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22865== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22865== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22865== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22865== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22865== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22865== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22865== by 0x8062D4E: main (nginx.c:382)
==22865== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22865==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
129-ssl-socket.t TEST 8: openresty.org: passing SSL verify - Can't connect to 127.0.0.1:1984: Connection refused ==22865==
==22865== Process terminating with default action of signal 11 (SIGSEGV)
==22865== Access not within mapped region at address 0x0
==22865== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22865== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22865== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22865== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22865== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22865== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22865== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22865== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22865== by 0x8062D4E: main (nginx.c:382)
==22865== If you believe this happened as a result of a stack
==22865== overflow in your program's main thread (unlikely but
==22865== possible), you can try to increase the size of the
==22865== main thread stack using the --main-stacksize= flag.
==22865== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl server name: "openresty.org"" should match a line in error.log (req 1)
129-ssl-socket.t TEST 6: certificate does not match host name (verify, no log socket errors) - Can't connect to 127.0.0.1:1984: Connection refused ==22867== Invalid read of size 4
==22867== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22867== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22867== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22867== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22867== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22867== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22867== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22867== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22867== by 0x8062D4E: main (nginx.c:382)
==22867== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22867==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
129-ssl-socket.t TEST 6: certificate does not match host name (verify, no log socket errors) - Can't connect to 127.0.0.1:1984: Connection refused ==22867==
==22867== Process terminating with default action of signal 11 (SIGSEGV)
==22867== Access not within mapped region at address 0x0
==22867== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22867== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22867== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22867== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22867== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22867== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22867== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22867== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22867== by 0x8062D4E: main (nginx.c:382)
==22867== If you believe this happened as a result of a stack
==22867== overflow in your program's main thread (unlikely but
==22867== possible), you can try to increase the size of the
==22867== main thread stack using the --main-stacksize= flag.
==22867== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl server name: "blah.openresty.org"" 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) - 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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22869== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
129-ssl-socket.t TEST 19: openresty.org: passing SSL verify: keepalive (no reusing the ssl session) - 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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22869== by 0x8062D4E: main (nginx.c:382)
==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.

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 "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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua tcp socket get keepalive peer: using connection" should match a line in error.log (req 1)
129-ssl-socket.t TEST 4: ssl session reuse - Can't connect to 127.0.0.1:1984: Connection refused ==22871== Invalid read of size 4
==22871== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22871== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22871== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22871== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22871== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22871== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22871== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22871== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22871== by 0x8062D4E: main (nginx.c:382)
==22871== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22871==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
129-ssl-socket.t TEST 4: ssl session reuse - Can't connect to 127.0.0.1:1984: Connection refused ==22871==
==22871== Process terminating with default action of signal 11 (SIGSEGV)
==22871== Access not within mapped region at address 0x0
==22871== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22871== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22871== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22871== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22871== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22871== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22871== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22871== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22871== by 0x8062D4E: main (nginx.c:382)
==22871== If you believe this happened as a result of a stack
==22871== overflow in your program's main thread (unlikely but
==22871== possible), you can try to increase the size of the
==22871== main thread stack using the --main-stacksize= flag.
==22871== 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 "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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "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 25: multiple handshake calls - Can't connect to 127.0.0.1:1984: Connection refused ==22873== Invalid read of size 4
==22873== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22873== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22873== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22873== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22873== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22873== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22873== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22873== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22873== by 0x8062D4E: main (nginx.c:382)
==22873== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22873==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
129-ssl-socket.t TEST 25: multiple handshake calls - Can't connect to 127.0.0.1:1984: Connection refused ==22873==
==22873== Process terminating with default action of signal 11 (SIGSEGV)
==22873== Access not within mapped region at address 0x0
==22873== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22873== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22873== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22873== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22873== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22873== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22873== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22873== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22873== by 0x8062D4E: main (nginx.c:382)
==22873== If you believe this happened as a result of a stack
==22873== overflow in your program's main thread (unlikely but
==22873== possible), you can try to increase the size of the
==22873== main thread stack using the --main-stacksize= flag.
==22873== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl server name: "openresty.org"" should match a line in error.log (req 1)
129-ssl-socket.t TEST 7: certificate does not match host name (no verify) - Can't connect to 127.0.0.1:1984: Connection refused ==22875== Invalid read of size 4
==22875== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22875== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22875== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22875== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22875== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22875== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22875== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22875== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22875== by 0x8062D4E: main (nginx.c:382)
==22875== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22875==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
129-ssl-socket.t TEST 7: certificate does not match host name (no verify) - Can't connect to 127.0.0.1:1984: Connection refused ==22875==
==22875== Process terminating with default action of signal 11 (SIGSEGV)
==22875== Access not within mapped region at address 0x0
==22875== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22875== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22875== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22875== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22875== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22875== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22875== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22875== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22875== by 0x8062D4E: main (nginx.c:382)
==22875== If you believe this happened as a result of a stack
==22875== overflow in your program's main thread (unlikely but
==22875== possible), you can try to increase the size of the
==22875== main thread stack using the --main-stacksize= flag.
==22875== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl server name: "openresty.org"" should match a line in error.log (req 1)
130-internal-api.t TEST 1: req - Can't connect to 127.0.0.1:1984: Connection refused ==22880== Invalid read of size 4
==22880== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22880== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22880== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22880== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22880== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22880== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22880== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22880== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22880== by 0x8062D4E: main (nginx.c:382)
==22880== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22880==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
130-internal-api.t TEST 1: req - Can't connect to 127.0.0.1:1984: Connection refused ==22880==
==22880== Process terminating with default action of signal 11 (SIGSEGV)
==22880== Access not within mapped region at address 0x0
==22880== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22880== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22880== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22880== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22880== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22880== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22880== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22880== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22880== by 0x8062D4E: main (nginx.c:382)
==22880== If you believe this happened as a result of a stack
==22880== overflow in your program's main thread (unlikely but
==22880== possible), you can try to increase the size of the
==22880== main thread stack using the --main-stacksize= flag.
==22880== 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 (aborted) '
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 1: raw downstream cosocket used in two different threads. See issue #481 - Can't connect to 127.0.0.1:1984: Connection refused ==22885== Invalid read of size 4
==22885== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22885== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22885== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22885== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22885== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22885== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==22885== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==22885== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22885== by 0x8062D4E: main (nginx.c:382)
==22885== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22885==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_process_cycle
fun:main
}
131-duplex-req-socket.t TEST 1: raw downstream cosocket used in two different threads. See issue #481 - Can't connect to 127.0.0.1:1984: Connection refused ==22885==
==22885== Process terminating with default action of signal 11 (SIGSEGV)
==22885== Access not within mapped region at address 0x0
==22885== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22885== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22885== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22885== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22885== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22885== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==22885== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==22885== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22885== by 0x8062D4E: main (nginx.c:382)
==22885== If you believe this happened as a result of a stack
==22885== overflow in your program's main thread (unlikely but
==22885== possible), you can try to increase the size of the
==22885== main thread stack using the --main-stacksize= flag.
==22885== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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)
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 ==22887== Invalid read of size 4
==22887== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22887== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22887== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22887== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22887== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22887== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==22887== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==22887== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22887== by 0x8062D4E: main (nginx.c:382)
==22887== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22887==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_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 ==22887==
==22887== Process terminating with default action of signal 11 (SIGSEGV)
==22887== Access not within mapped region at address 0x0
==22887== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22887== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22887== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22887== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22887== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22887== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==22887== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==22887== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22887== by 0x8062D4E: main (nginx.c:382)
==22887== If you believe this happened as a result of a stack
==22887== overflow in your program's main thread (unlikely but
==22887== possible), you can try to increase the size of the
==22887== main thread stack using the --main-stacksize= flag.
==22887== 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 (aborted) '
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)
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 ==22892== Invalid read of size 4
==22892== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22892== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22892== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22892== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22892== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22892== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22892== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22892== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22892== by 0x8062D4E: main (nginx.c:382)
==22892== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22892==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==22892==
==22892== Process terminating with default action of signal 11 (SIGSEGV)
==22892== Access not within mapped region at address 0x0
==22892== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22892== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22892== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22892== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22892== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22892== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22892== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22892== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22892== by 0x8062D4E: main (nginx.c:382)
==22892== If you believe this happened as a result of a stack
==22892== overflow in your program's main thread (unlikely but
==22892== possible), you can try to increase the size of the
==22892== main thread stack using the --main-stacksize= flag.
==22892== 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 (aborted) '
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 8: all in one - Can't connect to 127.0.0.1:1984: Connection refused ==22894== Invalid read of size 4
==22894== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22894== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22894== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22894== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22894== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22894== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22894== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22894== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22894== by 0x8062D4E: main (nginx.c:382)
==22894== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22894==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
132-lua-blocks.t TEST 8: all in one - Can't connect to 127.0.0.1:1984: Connection refused ==22894==
==22894== Process terminating with default action of signal 11 (SIGSEGV)
==22894== Access not within mapped region at address 0x0
==22894== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22894== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22894== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22894== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22894== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22894== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22894== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22894== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22894== by 0x8062D4E: main (nginx.c:382)
==22894== If you believe this happened as a result of a stack
==22894== overflow in your program's main thread (unlikely but
==22894== possible), you can try to increase the size of the
==22894== main thread stack using the --main-stacksize= flag.
==22894== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 8: all in one - pattern "log by lua running "}{!"" should match a line in error.log (req 1)
132-lua-blocks.t TEST 5: content_by_lua_block ("nested" long brackets) - Can't connect to 127.0.0.1:1984: Connection refused ==22896== Invalid read of size 4
==22896== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22896== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22896== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22896== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22896== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22896== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22896== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22896== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22896== by 0x8062D4E: main (nginx.c:382)
==22896== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22896==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
132-lua-blocks.t TEST 5: content_by_lua_block ("nested" long brackets) - Can't connect to 127.0.0.1:1984: Connection refused ==22896==
==22896== Process terminating with default action of signal 11 (SIGSEGV)
==22896== Access not within mapped region at address 0x0
==22896== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22896== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22896== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22896== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22896== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22896== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22896== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22896== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22896== by 0x8062D4E: main (nginx.c:382)
==22896== If you believe this happened as a result of a stack
==22896== overflow in your program's main thread (unlikely but
==22896== possible), you can try to increase the size of the
==22896== main thread stack using the --main-stacksize= flag.
==22896== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 7: content_by_lua_block (cosockets) - Can't connect to 127.0.0.1:1984: Connection refused ==22906== Invalid read of size 4
==22906== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22906== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22906== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22906== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22906== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22906== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22906== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22906== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22906== by 0x8062D4E: main (nginx.c:382)
==22906== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22906==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==22906==
==22906== Process terminating with default action of signal 11 (SIGSEGV)
==22906== Access not within mapped region at address 0x0
==22906== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22906== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22906== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22906== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22906== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22906== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22906== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22906== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22906== by 0x8062D4E: main (nginx.c:382)
==22906== If you believe this happened as a result of a stack
==22906== overflow in your program's main thread (unlikely but
==22906== possible), you can try to increase the size of the
==22906== main thread stack using the --main-stacksize= flag.
==22906== 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 (aborted) '
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 1: content_by_lua_block (nested curly braces) - Can't connect to 127.0.0.1:1984: Connection refused ==22909== Invalid read of size 4
==22909== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22909== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22909== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22909== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22909== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22909== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22909== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22909== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22909== by 0x8062D4E: main (nginx.c:382)
==22909== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22909==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==22909==
==22909== Process terminating with default action of signal 11 (SIGSEGV)
==22909== Access not within mapped region at address 0x0
==22909== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22909== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22909== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22909== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22909== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22909== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22909== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22909== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22909== by 0x8062D4E: main (nginx.c:382)
==22909== If you believe this happened as a result of a stack
==22909== overflow in your program's main thread (unlikely but
==22909== possible), you can try to increase the size of the
==22909== main thread stack using the --main-stacksize= flag.
==22909== 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 (aborted) '
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 3: content_by_lua_block (curly braces in strings, with escaped terminators) - Can't connect to 127.0.0.1:1984: Connection refused ==22915== Invalid read of size 4
==22915== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22915== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22915== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22915== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22915== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22915== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22915== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22915== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22915== by 0x8062D4E: main (nginx.c:382)
==22915== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22915==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==22915==
==22915== Process terminating with default action of signal 11 (SIGSEGV)
==22915== Access not within mapped region at address 0x0
==22915== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22915== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22915== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22915== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22915== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22915== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22915== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22915== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22915== by 0x8062D4E: main (nginx.c:382)
==22915== If you believe this happened as a result of a stack
==22915== overflow in your program's main thread (unlikely but
==22915== possible), you can try to increase the size of the
==22915== main thread stack using the --main-stacksize= flag.
==22915== 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 (aborted) '
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 4: content_by_lua_block (curly braces in long brackets) - Can't connect to 127.0.0.1:1984: Connection refused ==22917== Invalid read of size 4
==22917== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22917== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22917== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22917== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22917== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22917== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22917== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22917== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22917== by 0x8062D4E: main (nginx.c:382)
==22917== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22917==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==22917==
==22917== Process terminating with default action of signal 11 (SIGSEGV)
==22917== Access not within mapped region at address 0x0
==22917== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22917== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22917== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22917== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22917== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22917== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22917== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22917== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22917== by 0x8062D4E: main (nginx.c:382)
==22917== If you believe this happened as a result of a stack
==22917== overflow in your program's main thread (unlikely but
==22917== possible), you can try to increase the size of the
==22917== main thread stack using the --main-stacksize= flag.
==22917== 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 (aborted) '
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 16: ambiguous line comments inside a long bracket string (GitHub #596) - Can't connect to 127.0.0.1:1984: Connection refused ==22919== Invalid read of size 4
==22919== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22919== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22919== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22919== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22919== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22919== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22919== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22919== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22919== by 0x8062D4E: main (nginx.c:382)
==22919== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22919==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
132-lua-blocks.t TEST 16: ambiguous line comments inside a long bracket string (GitHub #596) - Can't connect to 127.0.0.1:1984: Connection refused ==22919==
==22919== Process terminating with default action of signal 11 (SIGSEGV)
==22919== Access not within mapped region at address 0x0
==22919== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22919== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22919== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22919== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22919== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22919== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22919== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22919== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22919== by 0x8062D4E: main (nginx.c:382)
==22919== If you believe this happened as a result of a stack
==22919== overflow in your program's main thread (unlikely but
==22919== possible), you can try to increase the size of the
==22919== main thread stack using the --main-stacksize= flag.
==22919== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
132-lua-blocks.t TEST 2: content_by_lua_block (curly braces in strings) - Can't connect to 127.0.0.1:1984: Connection refused ==22925== Invalid read of size 4
==22925== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22925== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22925== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22925== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22925== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22925== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22925== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22925== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22925== by 0x8062D4E: main (nginx.c:382)
==22925== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22925==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
132-lua-blocks.t TEST 2: content_by_lua_block (curly braces in strings) - Can't connect to 127.0.0.1:1984: Connection refused ==22925==
==22925== Process terminating with default action of signal 11 (SIGSEGV)
==22925== Access not within mapped region at address 0x0
==22925== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22925== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22925== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22925== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22925== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22925== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22925== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22925== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22925== by 0x8062D4E: main (nginx.c:382)
==22925== If you believe this happened as a result of a stack
==22925== overflow in your program's main thread (unlikely but
==22925== possible), you can try to increase the size of the
==22925== main thread stack using the --main-stacksize= flag.
==22925== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 14: content_by_lua_block (compact) - Can't connect to 127.0.0.1:1984: Connection refused ==22931== Invalid read of size 4
==22931== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22931== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22931== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22931== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22931== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22931== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22931== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22931== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22931== by 0x8062D4E: main (nginx.c:382)
==22931== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22931==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
132-lua-blocks.t TEST 14: content_by_lua_block (compact) - Can't connect to 127.0.0.1:1984: Connection refused ==22931==
==22931== Process terminating with default action of signal 11 (SIGSEGV)
==22931== Access not within mapped region at address 0x0
==22931== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22931== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22931== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22931== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22931== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22931== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22931== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22931== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22931== by 0x8062D4E: main (nginx.c:382)
==22931== If you believe this happened as a result of a stack
==22931== overflow in your program's main thread (unlikely but
==22931== possible), you can try to increase the size of the
==22931== main thread stack using the --main-stacksize= flag.
==22931== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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!
'
133-worker-count.t TEST 1: content_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==22936== Invalid read of size 4
==22936== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22936== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22936== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22936== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22936== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22936== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22936== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22936== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22936== by 0x8062D4E: main (nginx.c:382)
==22936== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22936==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
133-worker-count.t TEST 1: content_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==22936==
==22936== Process terminating with default action of signal 11 (SIGSEGV)
==22936== Access not within mapped region at address 0x0
==22936== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22936== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22936== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22936== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22936== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22936== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22936== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22936== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22936== by 0x8062D4E: main (nginx.c:382)
==22936== If you believe this happened as a result of a stack
==22936== overflow in your program's main thread (unlikely but
==22936== possible), you can try to increase the size of the
==22936== main thread stack using the --main-stacksize= flag.
==22936== 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 (aborted) '
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 ==22941== Invalid read of size 4
==22941== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22941== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22941== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22941== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22941== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22941== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22941== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22941== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22941== by 0x8062D4E: main (nginx.c:382)
==22941== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22941==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
134-worker-count-5.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==22941==
==22941== Process terminating with default action of signal 11 (SIGSEGV)
==22941== Access not within mapped region at address 0x0
==22941== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22941== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22941== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22941== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22941== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22941== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22941== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22941== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22941== by 0x8062D4E: main (nginx.c:382)
==22941== If you believe this happened as a result of a stack
==22941== overflow in your program's main thread (unlikely but
==22941== possible), you can try to increase the size of the
==22941== main thread stack using the --main-stacksize= flag.
==22941== 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 (aborted) '
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 ==22946== Invalid read of size 4
==22946== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22946== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22946== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22946== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22946== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22946== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22946== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22946== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22946== by 0x8062D4E: main (nginx.c:382)
==22946== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22946==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
135-worker-id.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==22946==
==22946== Process terminating with default action of signal 11 (SIGSEGV)
==22946== Access not within mapped region at address 0x0
==22946== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22946== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22946== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22946== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22946== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22946== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22946== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22946== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22946== by 0x8062D4E: main (nginx.c:382)
==22946== If you believe this happened as a result of a stack
==22946== overflow in your program's main thread (unlikely but
==22946== possible), you can try to increase the size of the
==22946== main thread stack using the --main-stacksize= flag.
==22946== 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 (aborted) '
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 5: one running timer - Can't connect to 127.0.0.1:1984: Connection refused ==22951== Invalid read of size 4
==22951== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22951== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22951== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22951== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22951== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22951== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22951== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22951== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22951== by 0x8062D4E: main (nginx.c:382)
==22951== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22951==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
136-timer-counts.t TEST 5: one running timer - Can't connect to 127.0.0.1:1984: Connection refused ==22951==
==22951== Process terminating with default action of signal 11 (SIGSEGV)
==22951== Access not within mapped region at address 0x0
==22951== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22951== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22951== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22951== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22951== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22951== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22951== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22951== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22951== by 0x8062D4E: main (nginx.c:382)
==22951== If you believe this happened as a result of a stack
==22951== overflow in your program's main thread (unlikely but
==22951== possible), you can try to increase the size of the
==22951== main thread stack using the --main-stacksize= flag.
==22951== 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 4: pending count with 3 pending timers - Can't connect to 127.0.0.1:1984: Connection refused ==22952== Invalid read of size 4
==22952== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22952== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22952== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22952== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22952== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22952== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22952== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22952== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22952== by 0x8062D4E: main (nginx.c:382)
==22952== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22952==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
136-timer-counts.t TEST 4: pending count with 3 pending timers - Can't connect to 127.0.0.1:1984: Connection refused ==22952==
==22952== Process terminating with default action of signal 11 (SIGSEGV)
==22952== Access not within mapped region at address 0x0
==22952== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22952== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22952== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22952== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22952== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22952== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22952== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22952== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22952== by 0x8062D4E: main (nginx.c:382)
==22952== If you believe this happened as a result of a stack
==22952== overflow in your program's main thread (unlikely but
==22952== possible), you can try to increase the size of the
==22952== main thread stack using the --main-stacksize= flag.
==22952== 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)
136-timer-counts.t TEST 1: running count with no running timers - Can't connect to 127.0.0.1:1984: Connection refused ==22953== Invalid read of size 4
==22953== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22953== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22953== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22953== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22953== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22953== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22953== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22953== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22953== by 0x8062D4E: main (nginx.c:382)
==22953== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22953==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
136-timer-counts.t TEST 1: running count with no running timers - Can't connect to 127.0.0.1:1984: Connection refused ==22953==
==22953== Process terminating with default action of signal 11 (SIGSEGV)
==22953== Access not within mapped region at address 0x0
==22953== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22953== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22953== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22953== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22953== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22953== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22953== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22953== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22953== by 0x8062D4E: main (nginx.c:382)
==22953== If you believe this happened as a result of a stack
==22953== overflow in your program's main thread (unlikely but
==22953== possible), you can try to increase the size of the
==22953== main thread stack using the --main-stacksize= flag.
==22953== 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 - Can't connect to 127.0.0.1:1984: Connection refused ==22954== Invalid read of size 4
==22954== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22954== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22954== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22954== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22954== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22954== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22954== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22954== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22954== by 0x8062D4E: main (nginx.c:382)
==22954== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22954==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
136-timer-counts.t TEST 3: pending count with one pending timer - Can't connect to 127.0.0.1:1984: Connection refused ==22954==
==22954== Process terminating with default action of signal 11 (SIGSEGV)
==22954== Access not within mapped region at address 0x0
==22954== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22954== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22954== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22954== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22954== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22954== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22954== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22954== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22954== by 0x8062D4E: main (nginx.c:382)
==22954== If you believe this happened as a result of a stack
==22954== overflow in your program's main thread (unlikely but
==22954== possible), you can try to increase the size of the
==22954== main thread stack using the --main-stacksize= flag.
==22954== 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 6: 3 running timers - Can't connect to 127.0.0.1:1984: Connection refused ==22955== Invalid read of size 4
==22955== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22955== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22955== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22955== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22955== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22955== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22955== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22955== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22955== by 0x8062D4E: main (nginx.c:382)
==22955== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22955==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
136-timer-counts.t TEST 6: 3 running timers - Can't connect to 127.0.0.1:1984: Connection refused ==22955==
==22955== Process terminating with default action of signal 11 (SIGSEGV)
==22955== Access not within mapped region at address 0x0
==22955== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22955== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22955== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22955== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22955== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22955== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22955== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22955== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22955== by 0x8062D4E: main (nginx.c:382)
==22955== If you believe this happened as a result of a stack
==22955== overflow in your program's main thread (unlikely but
==22955== possible), you can try to increase the size of the
==22955== main thread stack using the --main-stacksize= flag.
==22955== 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 2: running count with no pending timers - Can't connect to 127.0.0.1:1984: Connection refused ==22956== Invalid read of size 4
==22956== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22956== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22956== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22956== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22956== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22956== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22956== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22956== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22956== by 0x8062D4E: main (nginx.c:382)
==22956== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22956==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==22956==
==22956== Process terminating with default action of signal 11 (SIGSEGV)
==22956== Access not within mapped region at address 0x0
==22956== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22956== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22956== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22956== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22956== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22956== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22956== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22956== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22956== by 0x8062D4E: main (nginx.c:382)
==22956== If you believe this happened as a result of a stack
==22956== overflow in your program's main thread (unlikely but
==22956== possible), you can try to increase the size of the
==22956== main thread stack using the --main-stacksize= flag.
==22956== 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)
138-balancer.t TEST 11: set_more_tries bugfix - Can't connect to 127.0.0.1:1984: Connection refused ==22960== Invalid read of size 4
==22960== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22960== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22960== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22960== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22960== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22960== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22960== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22960== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22960== by 0x8062D4E: main (nginx.c:382)
==22960== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22960==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
138-balancer.t TEST 11: set_more_tries bugfix - Can't connect to 127.0.0.1:1984: Connection refused ==22960==
==22960== Process terminating with default action of signal 11 (SIGSEGV)
==22960== Access not within mapped region at address 0x0
==22960== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22960== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22960== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22960== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22960== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22960== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22960== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22960== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22960== by 0x8062D4E: main (nginx.c:382)
==22960== If you believe this happened as a result of a stack
==22960== overflow in your program's main thread (unlikely but
==22960== possible), you can try to increase the size of the
==22960== main thread stack using the --main-stacksize= flag.
==22960== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
138-balancer.t TEST 11: set_more_tries bugfix - status code ok got: ''
expected: '200'
138-balancer.t TEST 11: set_more_tries bugfix - grep_error_log_out (req 1) @@ -1,4 +0,0 @@
-stream proxy next upstream
-stream proxy next upstream
-stream proxy next upstream
-stream proxy next upstream
'
138-balancer.t TEST 2: exit 403 - Can't connect to 127.0.0.1:1984: Connection refused ==22962== Invalid read of size 4
==22962== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22962== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22962== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22962== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22962== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22962== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22962== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22962== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22962== by 0x8062D4E: main (nginx.c:382)
==22962== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22962==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
138-balancer.t TEST 2: exit 403 - Can't connect to 127.0.0.1:1984: Connection refused ==22962==
==22962== Process terminating with default action of signal 11 (SIGSEGV)
==22962== Access not within mapped region at address 0x0
==22962== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22962== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22962== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22962== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22962== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22962== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22962== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22962== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22962== by 0x8062D4E: main (nginx.c:382)
==22962== If you believe this happened as a result of a stack
==22962== overflow in your program's main thread (unlikely but
==22962== possible), you can try to increase the size of the
==22962== main thread stack using the --main-stacksize= flag.
==22962== 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 (aborted) '
138-balancer.t TEST 2: exit 403 - status code ok got: ''
expected: '200'
138-balancer.t TEST 2: exit 403 - pattern "[lua] balancer_by_lua:2: hello from balancer by lua! while connecting to upstream," should match a line in error.log (req 1)
138-balancer.t TEST 2: exit 403 - pattern "lua exit with code 403" should match a line in error.log (req 1)
138-balancer.t TEST 2: exit 403 - pattern "proxy connect: 403" should match a line in error.log (req 1)
138-balancer.t TEST 2: exit 403 - pattern "finalize stream proxy: 403" should match a line in error.log (req 1)
138-balancer.t TEST 2: exit 403 - pattern "finalize stream session: 403" should match a line in error.log (req 1)
138-balancer.t TEST 4: ngx.var works - Can't connect to 127.0.0.1:1984: Connection refused ==22964== Invalid read of size 4
==22964== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22964== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22964== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22964== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22964== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22964== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22964== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22964== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22964== by 0x8062D4E: main (nginx.c:382)
==22964== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22964==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
138-balancer.t TEST 4: ngx.var works - Can't connect to 127.0.0.1:1984: Connection refused ==22964==
==22964== Process terminating with default action of signal 11 (SIGSEGV)
==22964== Access not within mapped region at address 0x0
==22964== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22964== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22964== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22964== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22964== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22964== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22964== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22964== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22964== by 0x8062D4E: main (nginx.c:382)
==22964== If you believe this happened as a result of a stack
==22964== overflow in your program's main thread (unlikely but
==22964== possible), you can try to increase the size of the
==22964== main thread stack using the --main-stacksize= flag.
==22964== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
138-balancer.t TEST 4: ngx.var works - status code ok got: ''
expected: '200'
138-balancer.t TEST 4: ngx.var works - pattern "1: variable remote_addr = 127.0.0.1" should match a line in error.log (req 1)
138-balancer.t TEST 4: ngx.var works - pattern "(?^:\[crit\] .* connect\(\) .*? failed)" should match a line in error.log (req 1)
138-balancer.t TEST 7: ngx.sleep is disabled - Can't connect to 127.0.0.1:1984: Connection refused ==22966== Invalid read of size 4
==22966== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22966== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22966== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22966== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22966== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22966== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22966== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22966== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22966== by 0x8062D4E: main (nginx.c:382)
==22966== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22966==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
138-balancer.t TEST 7: ngx.sleep is disabled - Can't connect to 127.0.0.1:1984: Connection refused ==22966==
==22966== Process terminating with default action of signal 11 (SIGSEGV)
==22966== Access not within mapped region at address 0x0
==22966== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22966== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22966== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22966== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22966== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22966== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22966== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22966== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22966== by 0x8062D4E: main (nginx.c:382)
==22966== If you believe this happened as a result of a stack
==22966== overflow in your program's main thread (unlikely but
==22966== possible), you can try to increase the size of the
==22966== main thread stack using the --main-stacksize= flag.
==22966== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
138-balancer.t TEST 7: ngx.sleep is disabled - status code ok got: ''
expected: '200'
138-balancer.t TEST 7: ngx.sleep is disabled - pattern "(?^:\[error\] .*? failed to run balancer_by_lua\*: balancer_by_lua:2: API disabled in the context of balancer_by_lua\*)" should match a line in error.log (req 1)
138-balancer.t TEST 5: simple logging (by_lua_file) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22968== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
138-balancer.t TEST 5: simple logging (by_lua_file) - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22968== by 0x8062D4E: main (nginx.c:382)
==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.

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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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) - pattern "[lua] a.lua:1: hello from balancer by lua! while connecting to upstream," should match a line in error.log (req 1)
138-balancer.t TEST 5: simple logging (by_lua_file) - pattern "(?^:\[crit\] .*? connect\(\) to 0\.0\.0\.1:1234 failed .*?, upstream: "0\.0\.0\.1:1234")" should match a line in error.log (req 1)
138-balancer.t TEST 6: cosockets are disabled - Can't connect to 127.0.0.1:1984: Connection refused ==22970== Invalid read of size 4
==22970== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22970== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22970== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22970== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22970== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22970== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22970== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22970== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22970== by 0x8062D4E: main (nginx.c:382)
==22970== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22970==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
138-balancer.t TEST 6: cosockets are disabled - Can't connect to 127.0.0.1:1984: Connection refused ==22970==
==22970== Process terminating with default action of signal 11 (SIGSEGV)
==22970== Access not within mapped region at address 0x0
==22970== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22970== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22970== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22970== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22970== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22970== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22970== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22970== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22970== by 0x8062D4E: main (nginx.c:382)
==22970== If you believe this happened as a result of a stack
==22970== overflow in your program's main thread (unlikely but
==22970== possible), you can try to increase the size of the
==22970== main thread stack using the --main-stacksize= flag.
==22970== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
138-balancer.t TEST 6: cosockets are disabled - status code ok got: ''
expected: '200'
138-balancer.t TEST 6: cosockets are disabled - pattern "(?^:\[error\] .*? failed to run balancer_by_lua\*: balancer_by_lua:2: API disabled in the context of balancer_by_lua\*)" should match a line in error.log (req 1)
138-balancer.t TEST 10: test if execeed proxy_next_upstream_limit - Can't connect to 127.0.0.1:1984: Connection refused ==22972== Invalid read of size 4
==22972== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22972== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22972== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22972== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22972== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22972== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22972== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22972== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22972== by 0x8062D4E: main (nginx.c:382)
==22972== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22972==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
138-balancer.t TEST 10: test if execeed proxy_next_upstream_limit - Can't connect to 127.0.0.1:1984: Connection refused ==22972==
==22972== Process terminating with default action of signal 11 (SIGSEGV)
==22972== Access not within mapped region at address 0x0
==22972== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22972== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22972== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22972== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22972== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22972== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22972== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22972== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22972== by 0x8062D4E: main (nginx.c:382)
==22972== If you believe this happened as a result of a stack
==22972== overflow in your program's main thread (unlikely but
==22972== possible), you can try to increase the size of the
==22972== main thread stack using the --main-stacksize= flag.
==22972== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - grep_error_log_out (req 1) @@ -1,5 +0,0 @@
-retry counter: 1
-retry counter: 2
-retry counter: 3
-retry counter: 4
-retry counter: 5
'
138-balancer.t TEST 10: test if execeed proxy_next_upstream_limit - pattern "set more tries: reduced tries due to limit" should match a line in error.log (req 1)
138-balancer.t TEST 9: ngx.log(ngx.ERR, ...) github #816 - Can't connect to 127.0.0.1:1984: Connection refused ==22974== Invalid read of size 4
==22974== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22974== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22974== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22974== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22974== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22974== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22974== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22974== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22974== by 0x8062D4E: main (nginx.c:382)
==22974== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22974==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
138-balancer.t TEST 9: ngx.log(ngx.ERR, ...) github #816 - Can't connect to 127.0.0.1:1984: Connection refused ==22974==
==22974== Process terminating with default action of signal 11 (SIGSEGV)
==22974== Access not within mapped region at address 0x0
==22974== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22974== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22974== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22974== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22974== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22974== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22974== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22974== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22974== by 0x8062D4E: main (nginx.c:382)
==22974== If you believe this happened as a result of a stack
==22974== overflow in your program's main thread (unlikely but
==22974== possible), you can try to increase the size of the
==22974== main thread stack using the --main-stacksize= flag.
==22974== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - pattern "[lua] balancer_by_lua:2: hello from balancer by lua! while connecting to upstream," should match a line in error.log (req 1)
138-balancer.t TEST 9: ngx.log(ngx.ERR, ...) github \#816 - pattern "(?^:\[crit\] .*? connect\(\) to 0\.0\.0\.1:1234 failed .*?, upstream: "0\.0\.0\.1:1234")" should match a line in error.log (req 1)
138-balancer.t TEST 3: exit OK - Can't connect to 127.0.0.1:1984: Connection refused ==22976== Invalid read of size 4
==22976== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22976== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22976== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22976== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22976== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22976== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22976== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22976== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22976== by 0x8062D4E: main (nginx.c:382)
==22976== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22976==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
138-balancer.t TEST 3: exit OK - Can't connect to 127.0.0.1:1984: Connection refused ==22976==
==22976== Process terminating with default action of signal 11 (SIGSEGV)
==22976== Access not within mapped region at address 0x0
==22976== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22976== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22976== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22976== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22976== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22976== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22976== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22976== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22976== by 0x8062D4E: main (nginx.c:382)
==22976== If you believe this happened as a result of a stack
==22976== overflow in your program's main thread (unlikely but
==22976== possible), you can try to increase the size of the
==22976== main thread stack using the --main-stacksize= flag.
==22976== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
138-balancer.t TEST 3: exit OK - status code ok got: ''
expected: '200'
138-balancer.t TEST 3: exit OK - pattern "[lua] balancer_by_lua:2: hello from balancer by lua! while connecting to upstream," should match a line in error.log (req 1)
138-balancer.t TEST 3: exit OK - pattern "(?^:\[crit\] .*? connect\(\) to 0\.0\.0\.1:1234 failed .*?, upstream: "0\.0\.0\.1:1234")" should match a line in error.log (req 1)
138-balancer.t TEST 8: get_phase - Can't connect to 127.0.0.1:1984: Connection refused ==22978== Invalid read of size 4
==22978== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22978== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22978== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22978== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22978== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22978== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22978== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22978== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22978== by 0x8062D4E: main (nginx.c:382)
==22978== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22978==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
138-balancer.t TEST 8: get_phase - Can't connect to 127.0.0.1:1984: Connection refused ==22978==
==22978== Process terminating with default action of signal 11 (SIGSEGV)
==22978== Access not within mapped region at address 0x0
==22978== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22978== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22978== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22978== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22978== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22978== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22978== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22978== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22978== by 0x8062D4E: main (nginx.c:382)
==22978== If you believe this happened as a result of a stack
==22978== overflow in your program's main thread (unlikely but
==22978== possible), you can try to increase the size of the
==22978== main thread stack using the --main-stacksize= flag.
==22978== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
138-balancer.t TEST 8: get_phase - status code ok got: ''
expected: '200'
138-balancer.t TEST 8: get_phase - grep_error_log_out (req 1) got: ''
expected: 'I am in phase balancer
'
138-balancer.t TEST 8: get_phase - pattern "(?^:\[crit\] .*? connect\(\) to 0\.0\.0\.1:1234 failed .*?, upstream: "0\.0\.0\.1:1234")" should match a line in error.log (req 1)
138-balancer.t TEST 1: simple logging - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22980== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
138-balancer.t TEST 1: simple logging - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22980== by 0x8062D4E: main (nginx.c:382)
==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.

138-balancer.t TEST 1: simple logging - status code ok got: ''
expected: '200'
138-balancer.t TEST 1: simple logging - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
138-balancer.t TEST 1: simple logging - status code ok got: ''
expected: '200'
138-balancer.t TEST 1: simple logging - pattern "[lua] balancer_by_lua:2: hello from balancer by lua! while connecting to upstream," should match a line in error.log (req 1)
138-balancer.t TEST 1: simple logging - pattern "(?^:\[crit\] .*? connect\(\) to 0\.0\.0\.1:1234 failed .*?, upstream: "0\.0\.0\.1:1234")" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 11: get phase - Can't connect to 127.0.0.1:1984: Connection refused ==22986== Invalid read of size 4
==22986== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22986== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22986== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22986== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22986== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22986== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22986== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22986== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22986== by 0x8062D4E: main (nginx.c:382)
==22986== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22986==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 11: get phase - Can't connect to 127.0.0.1:1984: Connection refused ==22986==
==22986== Process terminating with default action of signal 11 (SIGSEGV)
==22986== Access not within mapped region at address 0x0
==22986== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22986== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22986== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22986== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22986== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22986== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22986== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22986== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22986== by 0x8062D4E: main (nginx.c:382)
==22986== If you believe this happened as a result of a stack
==22986== overflow in your program's main thread (unlikely but
==22986== possible), you can try to increase the size of the
==22986== main thread stack using the --main-stacksize= flag.
==22986== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl server name: "test.com"" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 11: get phase - pattern "get_phase: ssl_cert" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 11: get phase - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl server name: "test.com"" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 11: get phase - pattern "get_phase: ssl_cert" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 19: get raw_client_addr - IPv4 - Can't connect to 127.0.0.1:1984: Connection refused ==22989== Invalid read of size 4
==22989== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22989== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22989== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22989== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22989== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22989== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22989== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22989== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22989== by 0x8062D4E: main (nginx.c:382)
==22989== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22989==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 19: get raw_client_addr - IPv4 - Can't connect to 127.0.0.1:1984: Connection refused ==22989==
==22989== Process terminating with default action of signal 11 (SIGSEGV)
==22989== Access not within mapped region at address 0x0
==22989== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22989== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22989== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22989== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22989== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22989== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22989== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22989== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22989== by 0x8062D4E: main (nginx.c:382)
==22989== If you believe this happened as a result of a stack
==22989== overflow in your program's main thread (unlikely but
==22989== possible), you can try to increase the size of the
==22989== main thread stack using the --main-stacksize= flag.
==22989== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "client ip: 127.0.0.1" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 19: get raw_client_addr - IPv4 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "client ip: 127.0.0.1" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 10: lua exception - yield - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22992== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 10: lua exception - yield - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22992== by 0x8062D4E: main (nginx.c:382)
==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.

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 "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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "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 2: sleep - Can't connect to 127.0.0.1:1984: Connection refused ==22995== Invalid read of size 4
==22995== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22995== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22995== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22995== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22995== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22995== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22995== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22995== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22995== by 0x8062D4E: main (nginx.c:382)
==22995== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22995==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 2: sleep - Can't connect to 127.0.0.1:1984: Connection refused ==22995==
==22995== Process terminating with default action of signal 11 (SIGSEGV)
==22995== Access not within mapped region at address 0x0
==22995== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22995== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22995== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22995== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22995== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22995== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22995== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22995== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22995== by 0x8062D4E: main (nginx.c:382)
==22995== If you believe this happened as a result of a stack
==22995== overflow in your program's main thread (unlikely but
==22995== possible), you can try to increase the size of the
==22995== main thread stack using the --main-stacksize= flag.
==22995== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl server name: "test.com"" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 2: sleep - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl server name: "test.com"" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 20: get raw_client_addr - unix domain socket - Can't connect to 127.0.0.1:1984: Connection refused ==22998== Invalid read of size 4
==22998== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22998== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22998== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22998== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22998== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22998== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22998== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22998== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22998== by 0x8062D4E: main (nginx.c:382)
==22998== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22998==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 20: get raw_client_addr - unix domain socket - Can't connect to 127.0.0.1:1984: Connection refused ==22998==
==22998== Process terminating with default action of signal 11 (SIGSEGV)
==22998== Access not within mapped region at address 0x0
==22998== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==22998== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==22998== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22998== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==22998== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==22998== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22998== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==22998== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22998== by 0x8062D4E: main (nginx.c:382)
==22998== If you believe this happened as a result of a stack
==22998== overflow in your program's main thread (unlikely but
==22998== possible), you can try to increase the size of the
==22998== main thread stack using the --main-stacksize= flag.
==22998== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "client socket file: " should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 20: get raw_client_addr - unix domain socket - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "client socket file: " should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 5: ngx.exit(0) - no yield - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23001== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 5: ngx.exit(0) - no yield - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23001== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua exit with code 0" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 5: ngx.exit(0) - no yield - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua exit with code 0" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 13: simple logging (by_lua_file) - Can't connect to 127.0.0.1:1984: Connection refused ==23004== Invalid read of size 4
==23004== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23004== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23004== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23004== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23004== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23004== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23004== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23004== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23004== by 0x8062D4E: main (nginx.c:382)
==23004== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23004==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 13: simple logging (by_lua_file) - Can't connect to 127.0.0.1:1984: Connection refused ==23004==
==23004== Process terminating with default action of signal 11 (SIGSEGV)
==23004== Access not within mapped region at address 0x0
==23004== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23004== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23004== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23004== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23004== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23004== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23004== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23004== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23004== by 0x8062D4E: main (nginx.c:382)
==23004== If you believe this happened as a result of a stack
==23004== overflow in your program's main thread (unlikely but
==23004== possible), you can try to increase the size of the
==23004== main thread stack using the --main-stacksize= flag.
==23004== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl server name: "test.com"" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 13: simple logging (by_lua_file) - pattern "a.lua:1: ssl cert by lua is running!" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 13: simple logging (by_lua_file) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl server name: "test.com"" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 13: simple logging (by_lua_file) - pattern "a.lua:1: ssl cert by lua is running!" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 14: coroutine API - Can't connect to 127.0.0.1:1984: Connection refused ==23007== Invalid read of size 4
==23007== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23007== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23007== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23007== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23007== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23007== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23007== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23007== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23007== by 0x8062D4E: main (nginx.c:382)
==23007== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23007==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 14: coroutine API - Can't connect to 127.0.0.1:1984: Connection refused ==23007==
==23007== Process terminating with default action of signal 11 (SIGSEGV)
==23007== Access not within mapped region at address 0x0
==23007== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23007== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23007== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23007== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23007== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23007== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23007== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23007== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23007== by 0x8062D4E: main (nginx.c:382)
==23007== If you believe this happened as a result of a stack
==23007== overflow in your program's main thread (unlikely but
==23007== possible), you can try to increase the size of the
==23007== main thread stack using the --main-stacksize= flag.
==23007== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - grep_error_log_out (req 1) @@ -1,6 +0,0 @@
-co resume, status: suspended
-co yield: 0
-co resume, status: suspended
-co yield: 1
-co resume, status: suspended
-co yield: 2
'
139-ssl-cert-by.t TEST 14: coroutine API - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 14: coroutine API - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - grep_error_log_out (req 2) @@ -1,6 +0,0 @@
-co resume, status: suspended
-co yield: 0
-co resume, status: suspended
-co yield: 1
-co resume, status: suspended
-co yield: 2
'
139-ssl-cert-by.t TEST 14: coroutine API - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 12: connection aborted prematurely - Can't connect to 127.0.0.1:1984: Connection refused ==23010== Invalid read of size 4
==23010== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23010== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23010== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23010== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23010== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23010== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23010== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23010== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23010== by 0x8062D4E: main (nginx.c:382)
==23010== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23010==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 12: connection aborted prematurely - Can't connect to 127.0.0.1:1984: Connection refused ==23010==
==23010== Process terminating with default action of signal 11 (SIGSEGV)
==23010== Access not within mapped region at address 0x0
==23010== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23010== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23010== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23010== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23010== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23010== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23010== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23010== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23010== by 0x8062D4E: main (nginx.c:382)
==23010== If you believe this happened as a result of a stack
==23010== overflow in your program's main thread (unlikely but
==23010== possible), you can try to increase the size of the
==23010== main thread stack using the --main-stacksize= flag.
==23010== 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 "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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl server name: "test.com"" 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 1)
139-ssl-cert-by.t TEST 12: connection aborted prematurely - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl server name: "test.com"" 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 2)
139-ssl-cert-by.t TEST 9: lua exception - no yield - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23013== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 9: lua exception - no yield - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23013== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "runtime error: ssl_certificate_by_lua:2: bad bad bad" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 9: lua exception - no yield - pattern "lua_certificate_by_lua: handler return value: 500, cert cb exit code: 0" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 9: lua exception - no 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 9: lua exception - no yield - pattern "(?^:context: ssl_certificate_by_lua\*, client: \d+\.\d+\.\d+\.\d+, server: \d+\.\d+\.\d+\.\d+:\d+)" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 9: lua exception - no yield - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "runtime error: ssl_certificate_by_lua:2: bad bad bad" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 9: lua exception - no yield - pattern "lua_certificate_by_lua: handler return value: 500, cert cb exit code: 0" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 9: lua exception - no 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 9: lua exception - no yield - pattern "(?^:context: ssl_certificate_by_lua\*, client: \d+\.\d+\.\d+\.\d+, server: \d+\.\d+\.\d+\.\d+:\d+)" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 4: cosocket - Can't connect to 127.0.0.1:1984: Connection refused ==23016== Invalid read of size 4
==23016== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23016== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23016== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23016== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23016== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23016== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23016== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23016== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23016== by 0x8062D4E: main (nginx.c:382)
==23016== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23016==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 4: cosocket - Can't connect to 127.0.0.1:1984: Connection refused ==23016==
==23016== Process terminating with default action of signal 11 (SIGSEGV)
==23016== Access not within mapped region at address 0x0
==23016== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23016== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23016== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23016== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23016== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23016== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23016== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23016== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23016== by 0x8062D4E: main (nginx.c:382)
==23016== If you believe this happened as a result of a stack
==23016== overflow in your program's main thread (unlikely but
==23016== possible), you can try to increase the size of the
==23016== main thread stack using the --main-stacksize= flag.
==23016== 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 "received memc reply: OK" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 4: cosocket - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl server name: "test.com"" 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 1)
139-ssl-cert-by.t TEST 4: cosocket - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl server name: "test.com"" 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 2)
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - Can't connect to 127.0.0.1:1984: Connection refused ==23019== Invalid read of size 4
==23019== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23019== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23019== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23019== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23019== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23019== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23019== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23019== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23019== by 0x8062D4E: main (nginx.c:382)
==23019== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23019==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 8: ngx.exit(ngx.ERROR) - yield - Can't connect to 127.0.0.1:1984: Connection refused ==23019==
==23019== Process terminating with default action of signal 11 (SIGSEGV)
==23019== Access not within mapped region at address 0x0
==23019== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23019== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23019== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23019== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23019== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23019== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23019== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23019== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23019== by 0x8062D4E: main (nginx.c:382)
==23019== If you believe this happened as a result of a stack
==23019== overflow in your program's main thread (unlikely but
==23019== possible), you can try to increase the size of the
==23019== main thread stack using the --main-stacksize= flag.
==23019== 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 "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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "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 3: timer - Can't connect to 127.0.0.1:1984: Connection refused ==23022== Invalid read of size 4
==23022== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23022== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23022== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23022== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23022== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23022== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23022== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23022== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23022== by 0x8062D4E: main (nginx.c:382)
==23022== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23022==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 3: timer - Can't connect to 127.0.0.1:1984: Connection refused ==23022==
==23022== Process terminating with default action of signal 11 (SIGSEGV)
==23022== Access not within mapped region at address 0x0
==23022== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23022== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23022== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23022== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23022== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23022== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23022== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23022== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23022== by 0x8062D4E: main (nginx.c:382)
==23022== If you believe this happened as a result of a stack
==23022== overflow in your program's main thread (unlikely but
==23022== possible), you can try to increase the size of the
==23022== main thread stack using the --main-stacksize= flag.
==23022== 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 "my timer run!" should match a line in error.log (req 0)
139-ssl-cert-by.t TEST 3: timer - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl server name: "test.com"" 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 1)
139-ssl-cert-by.t TEST 3: timer - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl server name: "test.com"" should match a line in error.log (req 2)
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 18: check the count of running timers - Can't connect to 127.0.0.1:1984: Connection refused ==23025== Invalid read of size 4
==23025== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23025== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23025== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23025== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23025== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23025== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23025== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23025== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23025== by 0x8062D4E: main (nginx.c:382)
==23025== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23025==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==23025==
==23025== Process terminating with default action of signal 11 (SIGSEGV)
==23025== Access not within mapped region at address 0x0
==23025== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23025== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23025== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23025== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23025== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23025== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23025== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23025== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23025== by 0x8062D4E: main (nginx.c:382)
==23025== If you believe this happened as a result of a stack
==23025== overflow in your program's main thread (unlikely but
==23025== possible), you can try to increase the size of the
==23025== main thread stack using the --main-stacksize= flag.
==23025== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "ssl_certificate_by_lua:1: ssl cert by lua is running!" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 18: check the count of running timers - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 18: check the count of running timers - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "ssl_certificate_by_lua:1: ssl cert by lua is running!" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 18: check the count of running timers - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 6: ngx.exit(ngx.ERROR) - no yield - Can't connect to 127.0.0.1:1984: Connection refused ==23028== Invalid read of size 4
==23028== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23028== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23028== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23028== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23028== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23028== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23028== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23028== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23028== by 0x8062D4E: main (nginx.c:382)
==23028== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23028==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 6: ngx.exit(ngx.ERROR) - no yield - Can't connect to 127.0.0.1:1984: Connection refused ==23028==
==23028== Process terminating with default action of signal 11 (SIGSEGV)
==23028== Access not within mapped region at address 0x0
==23028== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23028== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23028== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23028== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23028== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23028== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23028== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23028== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23028== by 0x8062D4E: main (nginx.c:382)
==23028== If you believe this happened as a result of a stack
==23028== overflow in your program's main thread (unlikely but
==23028== possible), you can try to increase the size of the
==23028== main thread stack using the --main-stacksize= flag.
==23028== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua_certificate_by_lua: handler return value: -1, cert cb exit code: 0" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 6: ngx.exit(ngx.ERROR) - no 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 6: ngx.exit(ngx.ERROR) - no yield - pattern "lua exit with code -1" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 6: ngx.exit(ngx.ERROR) - no yield - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua_certificate_by_lua: handler return value: -1, cert cb exit code: 0" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 6: ngx.exit(ngx.ERROR) - no 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 6: ngx.exit(ngx.ERROR) - no yield - pattern "lua exit with code -1" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 1: simple logging - Can't connect to 127.0.0.1:1984: Connection refused ==23031== Invalid read of size 4
==23031== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23031== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23031== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23031== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23031== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23031== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23031== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23031== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23031== by 0x8062D4E: main (nginx.c:382)
==23031== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23031==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 1: simple logging - Can't connect to 127.0.0.1:1984: Connection refused ==23031==
==23031== Process terminating with default action of signal 11 (SIGSEGV)
==23031== Access not within mapped region at address 0x0
==23031== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23031== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23031== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23031== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23031== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23031== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23031== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23031== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23031== by 0x8062D4E: main (nginx.c:382)
==23031== If you believe this happened as a result of a stack
==23031== overflow in your program's main thread (unlikely but
==23031== possible), you can try to increase the size of the
==23031== main thread stack using the --main-stacksize= flag.
==23031== 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 - grep_error_log_out (req 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - grep_error_log_out (req 1) ''
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 - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 1: simple logging - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - grep_error_log_out (req 2) ''
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 - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 16: simple logging - use ssl_certificate_by_lua* on the http {} level - Can't connect to 127.0.0.1:1984: Connection refused ==23034== Invalid read of size 4
==23034== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23034== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23034== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23034== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23034== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23034== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23034== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23034== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23034== by 0x8062D4E: main (nginx.c:382)
==23034== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23034==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 16: simple logging - use ssl_certificate_by_lua* on the http {} level - Can't connect to 127.0.0.1:1984: Connection refused ==23034==
==23034== Process terminating with default action of signal 11 (SIGSEGV)
==23034== Access not within mapped region at address 0x0
==23034== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23034== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23034== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23034== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23034== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23034== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23034== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23034== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23034== by 0x8062D4E: main (nginx.c:382)
==23034== If you believe this happened as a result of a stack
==23034== overflow in your program's main thread (unlikely but
==23034== possible), you can try to increase the size of the
==23034== main thread stack using the --main-stacksize= flag.
==23034== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl server name: "test.com"" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 16: simple logging - use ssl_certificate_by_lua* on the http {} level - pattern "ssl_certificate_by_lua:1: ssl cert by lua is running!" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 16: simple logging - use ssl_certificate_by_lua* on the http {} level - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl server name: "test.com"" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 16: simple logging - use ssl_certificate_by_lua* on the http {} level - pattern "ssl_certificate_by_lua:1: ssl cert by lua is running!" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 15: simple user thread wait with yielding - Can't connect to 127.0.0.1:1984: Connection refused ==23037== Invalid read of size 4
==23037== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23037== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23037== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23037== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23037== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23037== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23037== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23037== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23037== by 0x8062D4E: main (nginx.c:382)
==23037== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23037==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 15: simple user thread wait with yielding - Can't connect to 127.0.0.1:1984: Connection refused ==23037==
==23037== Process terminating with default action of signal 11 (SIGSEGV)
==23037== Access not within mapped region at address 0x0
==23037== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23037== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23037== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23037== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23037== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23037== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23037== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23037== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23037== by 0x8062D4E: main (nginx.c:382)
==23037== If you believe this happened as a result of a stack
==23037== overflow in your program's main thread (unlikely but
==23037== possible), you can try to increase the size of the
==23037== main thread stack using the --main-stacksize= flag.
==23037== 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 - 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - grep_error_log_out (req 1) @@ -1,3 +0,0 @@
-uthread: thread created: suspended
-uthread: hello in thread
-uthread: done
'
139-ssl-cert-by.t TEST 15: simple user thread wait with yielding - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 - grep_error_log_out (req 2) @@ -1,3 +0,0 @@
-uthread: thread created: suspended
-uthread: hello in thread
-uthread: done
'
139-ssl-cert-by.t TEST 7: ngx.exit(0) - yield - Can't connect to 127.0.0.1:1984: Connection refused ==23040== Invalid read of size 4
==23040== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23040== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23040== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23040== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23040== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23040== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23040== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23040== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23040== by 0x8062D4E: main (nginx.c:382)
==23040== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23040==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 7: ngx.exit(0) - yield - Can't connect to 127.0.0.1:1984: Connection refused ==23040==
==23040== Process terminating with default action of signal 11 (SIGSEGV)
==23040== Access not within mapped region at address 0x0
==23040== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23040== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23040== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23040== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23040== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23040== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23040== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23040== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23040== by 0x8062D4E: main (nginx.c:382)
==23040== If you believe this happened as a result of a stack
==23040== overflow in your program's main thread (unlikely but
==23040== possible), you can try to increase the size of the
==23040== main thread stack using the --main-stacksize= flag.
==23040== 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 "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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua exit with code 0" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 17: simple logging (syslog) - Can't connect to 127.0.0.1:1984: Connection refused ==23043== Invalid read of size 4
==23043== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23043== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23043== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23043== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23043== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23043== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23043== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23043== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23043== by 0x8062D4E: main (nginx.c:382)
==23043== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23043==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
139-ssl-cert-by.t TEST 17: simple logging (syslog) - Can't connect to 127.0.0.1:1984: Connection refused ==23043==
==23043== Process terminating with default action of signal 11 (SIGSEGV)
==23043== Access not within mapped region at address 0x0
==23043== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23043== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23043== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23043== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23043== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23043== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23043== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23043== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23043== by 0x8062D4E: main (nginx.c:382)
==23043== If you believe this happened as a result of a stack
==23043== overflow in your program's main thread (unlikely but
==23043== possible), you can try to increase the size of the
==23043== main thread stack using the --main-stacksize= flag.
==23043== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "(?^:\[error\] .*? send\(\) failed)" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 17: simple logging (syslog) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1)
139-ssl-cert-by.t TEST 17: simple logging (syslog) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "(?^:\[error\] .*? send\(\) failed)" should match a line in error.log (req 2)
139-ssl-cert-by.t TEST 17: simple logging (syslog) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 2)
140-ssl-c-api.t TEST 8: verify client but client provides no certificate - Can't connect to 127.0.0.1:1984: Connection refused ==23050== Invalid read of size 4
==23050== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23050== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23050== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23050== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23050== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23050== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23050== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23050== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23050== by 0x8062D4E: main (nginx.c:382)
==23050== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23050==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
140-ssl-c-api.t TEST 8: verify client but client provides no certificate - Can't connect to 127.0.0.1:1984: Connection refused ==23050==
==23050== Process terminating with default action of signal 11 (SIGSEGV)
==23050== Access not within mapped region at address 0x0
==23050== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23050== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23050== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23050== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23050== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23050== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23050== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23050== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23050== by 0x8062D4E: main (nginx.c:382)
==23050== If you believe this happened as a result of a stack
==23050== overflow in your program's main thread (unlikely but
==23050== possible), you can try to increase the size of the
==23050== main thread stack using the --main-stacksize= flag.
==23050== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "client certificate subject: nil" should match a line in error.log (req 1)
140-ssl-c-api.t TEST 8: verify client but client provides no certificate - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "client certificate subject: nil" should match a line in error.log (req 2)
140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors - Can't connect to 127.0.0.1:1984: Connection refused ==23053== Invalid read of size 4
==23053== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23053== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23053== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23053== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23053== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23053== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23053== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23053== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23053== by 0x8062D4E: main (nginx.c:382)
==23053== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23053==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors - Can't connect to 127.0.0.1:1984: Connection refused ==23053==
==23053== Process terminating with default action of signal 11 (SIGSEGV)
==23053== Access not within mapped region at address 0x0
==23053== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23053== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23053== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23053== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23053== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23053== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23053== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23053== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23053== by 0x8062D4E: main (nginx.c:382)
==23053== If you believe this happened as a result of a stack
==23053== overflow in your program's main thread (unlikely but
==23053== possible), you can try to increase the size of the
==23053== main thread stack using the --main-stacksize= flag.
==23053== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl server name: "test.com"" should match a line in error.log (req 1)
140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors - pattern "failed to parse PEM cert: PEM_read_bio_X509_AUX()" should match a line in error.log (req 1)
140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors - pattern "failed to parse PEM priv key: PEM_read_bio_PrivateKey() failed" should match a line in error.log (req 1)
140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl server name: "test.com"" should match a line in error.log (req 2)
140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors - pattern "failed to parse PEM cert: PEM_read_bio_X509_AUX()" should match a line in error.log (req 2)
140-ssl-c-api.t TEST 3: Handshake continue when cert_pem_to_der errors - pattern "failed to parse PEM priv key: PEM_read_bio_PrivateKey() failed" should match a line in error.log (req 2)
140-ssl-c-api.t TEST 6: verify client with CA certificates - Can't connect to 127.0.0.1:1984: Connection refused ==23056== Invalid read of size 4
==23056== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23056== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23056== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23056== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23056== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23056== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23056== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23056== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23056== by 0x8062D4E: main (nginx.c:382)
==23056== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23056==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
140-ssl-c-api.t TEST 6: verify client with CA certificates - Can't connect to 127.0.0.1:1984: Connection refused ==23056==
==23056== Process terminating with default action of signal 11 (SIGSEGV)
==23056== Access not within mapped region at address 0x0
==23056== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23056== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23056== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23056== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23056== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23056== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23056== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23056== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23056== by 0x8062D4E: main (nginx.c:382)
==23056== If you believe this happened as a result of a stack
==23056== overflow in your program's main thread (unlikely but
==23056== possible), you can try to increase the size of the
==23056== main thread stack using the --main-stacksize= flag.
==23056== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "client certificate subject: emailAddress=agentzh@gmail.com,CN=test.com" should match a line in error.log (req 1)
140-ssl-c-api.t TEST 6: verify client with CA certificates - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "client certificate subject: emailAddress=agentzh@gmail.com,CN=test.com" should match a line in error.log (req 2)
140-ssl-c-api.t TEST 2: ECDSA cert + private key - Can't connect to 127.0.0.1:1984: Connection refused ==23059== Invalid read of size 4
==23059== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23059== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23059== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23059== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23059== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23059== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23059== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23059== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23059== by 0x8062D4E: main (nginx.c:382)
==23059== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23059==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==23059==
==23059== Process terminating with default action of signal 11 (SIGSEGV)
==23059== Access not within mapped region at address 0x0
==23059== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23059== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23059== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23059== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23059== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23059== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23059== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23059== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23059== by 0x8062D4E: main (nginx.c:382)
==23059== If you believe this happened as a result of a stack
==23059== overflow in your program's main thread (unlikely but
==23059== possible), you can try to increase the size of the
==23059== main thread stack using the --main-stacksize= flag.
==23059== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl server name: "test.com"" should match a line in error.log (req 1)
140-ssl-c-api.t TEST 2: ECDSA cert + private key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl server name: "test.com"" should match a line in error.log (req 2)
140-ssl-c-api.t TEST 7: verify client without CA certificates - Can't connect to 127.0.0.1:1984: Connection refused ==23062== Invalid read of size 4
==23062== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23062== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23062== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23062== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23062== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23062== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23062== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23062== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23062== by 0x8062D4E: main (nginx.c:382)
==23062== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23062==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
140-ssl-c-api.t TEST 7: verify client without CA certificates - Can't connect to 127.0.0.1:1984: Connection refused ==23062==
==23062== Process terminating with default action of signal 11 (SIGSEGV)
==23062== Access not within mapped region at address 0x0
==23062== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23062== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23062== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23062== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23062== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23062== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23062== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23062== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23062== by 0x8062D4E: main (nginx.c:382)
==23062== If you believe this happened as a result of a stack
==23062== overflow in your program's main thread (unlikely but
==23062== possible), you can try to increase the size of the
==23062== main thread stack using the --main-stacksize= flag.
==23062== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "client certificate subject: emailAddress=agentzh@gmail.com,CN=test.com" should match a line in error.log (req 1)
140-ssl-c-api.t TEST 7: verify client without CA certificates - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "client certificate subject: emailAddress=agentzh@gmail.com,CN=test.com" should match a line in error.log (req 2)
140-ssl-c-api.t TEST 1: simple cert + private key - Can't connect to 127.0.0.1:1984: Connection refused ==23065== Invalid read of size 4
==23065== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23065== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23065== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23065== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23065== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23065== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23065== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23065== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23065== by 0x8062D4E: main (nginx.c:382)
==23065== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23065==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
140-ssl-c-api.t TEST 1: simple cert + private key - Can't connect to 127.0.0.1:1984: Connection refused ==23065==
==23065== Process terminating with default action of signal 11 (SIGSEGV)
==23065== Access not within mapped region at address 0x0
==23065== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23065== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23065== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23065== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23065== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23065== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23065== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23065== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23065== by 0x8062D4E: main (nginx.c:382)
==23065== If you believe this happened as a result of a stack
==23065== overflow in your program's main thread (unlikely but
==23065== possible), you can try to increase the size of the
==23065== main thread stack using the --main-stacksize= flag.
==23065== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl server name: "test.com"" should match a line in error.log (req 1)
140-ssl-c-api.t TEST 1: simple cert + private key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl server name: "test.com"" should match a line in error.log (req 2)
140-ssl-c-api.t TEST 4: simple cert + private key cdata - Can't connect to 127.0.0.1:1984: Connection refused ==23068== Invalid read of size 4
==23068== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23068== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23068== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23068== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23068== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23068== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23068== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23068== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23068== by 0x8062D4E: main (nginx.c:382)
==23068== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23068==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
140-ssl-c-api.t TEST 4: simple cert + private key cdata - Can't connect to 127.0.0.1:1984: Connection refused ==23068==
==23068== Process terminating with default action of signal 11 (SIGSEGV)
==23068== Access not within mapped region at address 0x0
==23068== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23068== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23068== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23068== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23068== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23068== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23068== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23068== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23068== by 0x8062D4E: main (nginx.c:382)
==23068== If you believe this happened as a result of a stack
==23068== overflow in your program's main thread (unlikely but
==23068== possible), you can try to increase the size of the
==23068== main thread stack using the --main-stacksize= flag.
==23068== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl server name: "test.com"" should match a line in error.log (req 1)
140-ssl-c-api.t TEST 4: simple cert + private key cdata - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl server name: "test.com"" should match a line in error.log (req 2)
140-ssl-c-api.t TEST 5: ECDSA cert + private key cdata - Can't connect to 127.0.0.1:1984: Connection refused ==23071== Invalid read of size 4
==23071== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23071== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23071== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23071== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23071== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23071== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23071== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23071== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23071== by 0x8062D4E: main (nginx.c:382)
==23071== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23071==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
140-ssl-c-api.t TEST 5: ECDSA cert + private key cdata - Can't connect to 127.0.0.1:1984: Connection refused ==23071==
==23071== Process terminating with default action of signal 11 (SIGSEGV)
==23071== Access not within mapped region at address 0x0
==23071== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23071== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23071== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23071== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23071== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23071== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23071== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23071== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23071== by 0x8062D4E: main (nginx.c:382)
==23071== If you believe this happened as a result of a stack
==23071== overflow in your program's main thread (unlikely but
==23071== possible), you can try to increase the size of the
==23071== main thread stack using the --main-stacksize= flag.
==23071== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl server name: "test.com"" should match a line in error.log (req 1)
140-ssl-c-api.t TEST 5: ECDSA cert + private key cdata - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 "lua ssl server name: "test.com"" should match a line in error.log (req 2)
141-add-variable.t TEST 3: multiple add with same name works - Can't connect to 127.0.0.1:1984: Connection refused ==23077== Invalid read of size 4
==23077== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23077== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23077== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23077== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23077== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23077== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23077== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23077== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23077== by 0x8062D4E: main (nginx.c:382)
==23077== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23077==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
141-add-variable.t TEST 3: multiple add with same name works - Can't connect to 127.0.0.1:1984: Connection refused ==23077==
==23077== Process terminating with default action of signal 11 (SIGSEGV)
==23077== Access not within mapped region at address 0x0
==23077== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23077== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23077== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23077== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23077== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23077== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23077== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23077== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23077== by 0x8062D4E: main (nginx.c:382)
==23077== If you believe this happened as a result of a stack
==23077== overflow in your program's main thread (unlikely but
==23077== possible), you can try to increase the size of the
==23077== main thread stack using the --main-stacksize= flag.
==23077== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 2: works with C code - Can't connect to 127.0.0.1:1984: Connection refused ==23079== Invalid read of size 4
==23079== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23079== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23079== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23079== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23079== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23079== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23079== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23079== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23079== by 0x8062D4E: main (nginx.c:382)
==23079== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23079==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
141-add-variable.t TEST 2: works with C code - Can't connect to 127.0.0.1:1984: Connection refused ==23079==
==23079== Process terminating with default action of signal 11 (SIGSEGV)
==23079== Access not within mapped region at address 0x0
==23079== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23079== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23079== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23079== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23079== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23079== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23079== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23079== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23079== by 0x8062D4E: main (nginx.c:382)
==23079== If you believe this happened as a result of a stack
==23079== overflow in your program's main thread (unlikely but
==23079== possible), you can try to increase the size of the
==23079== main thread stack using the --main-stacksize= flag.
==23079== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23081== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
141-add-variable.t TEST 1: sanity - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23081== by 0x8062D4E: main (nginx.c:382)
==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.

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 (aborted) '
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 4: accessible in log phase - Can't connect to 127.0.0.1:1984: Connection refused ==23083== Invalid read of size 4
==23083== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23083== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23083== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23083== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23083== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23083== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23083== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23083== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23083== by 0x8062D4E: main (nginx.c:382)
==23083== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23083==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
141-add-variable.t TEST 4: accessible in log phase - Can't connect to 127.0.0.1:1984: Connection refused ==23083==
==23083== Process terminating with default action of signal 11 (SIGSEGV)
==23083== Access not within mapped region at address 0x0
==23083== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23083== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23083== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23083== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23083== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23083== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23083== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23083== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23083== by 0x8062D4E: main (nginx.c:382)
==23083== If you believe this happened as a result of a stack
==23083== overflow in your program's main thread (unlikely but
==23083== possible), you can try to increase the size of the
==23083== main thread stack using the --main-stacksize= flag.
==23083== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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
'
141-add-variable.t TEST 4: accessible in log phase - pattern "access log: bar" should match a line in error.log (req 1)
156-slow-network.t TEST 1: receiveany returns anything once socket receives - Can't connect to 127.0.0.1:1984: Connection refused ==23096== Invalid read of size 4
==23096== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23096== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23096== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23096== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23096== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23096== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==23096== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==23096== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23096== by 0x8062D4E: main (nginx.c:382)
==23096== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23096==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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_single_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 ==23096==
==23096== Process terminating with default action of signal 11 (SIGSEGV)
==23096== Access not within mapped region at address 0x0
==23096== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23096== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23096== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23096== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23096== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23096== by 0x80828C0: ngx_event_process_posted (ngx_event_posted.c:35)
==23096== by 0x8082281: ngx_process_events_and_timers (ngx_event.c:274)
==23096== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23096== by 0x8062D4E: main (nginx.c:382)
==23096== If you believe this happened as a result of a stack
==23096== overflow in your program's main thread (unlikely but
==23096== possible), you can try to increase the size of the
==23096== main thread stack using the --main-stacksize= flag.
==23096== 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 (aborted) '
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 +0,0 @@
-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 ==23105== Invalid read of size 4
==23105== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23105== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23105== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23105== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23105== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23105== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23105== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23105== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23105== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23105== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23105== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==23105== by 0x8062D5B: main (nginx.c:385)
==23105== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23105==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_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 ==23105==
==23105== Process terminating with default action of signal 11 (SIGSEGV)
==23105== Access not within mapped region at address 0x0
==23105== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23105== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23105== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23105== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23105== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23105== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23105== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23105== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23105== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23105== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23105== by 0x808BE58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==23105== by 0x8062D5B: main (nginx.c:385)
==23105== If you believe this happened as a result of a stack
==23105== overflow in your program's main thread (unlikely but
==23105== possible), you can try to increase the size of the
==23105== main thread stack using the --main-stacksize= flag.
==23105== 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 ==23107== Invalid read of size 4
==23107== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23107== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23107== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23107== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23107== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23107== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23107== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23107== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23107== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23107== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23107== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23107== by 0x8062D5B: main (nginx.c:385)
==23107== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23107==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_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 ==23107==
==23107== Process terminating with default action of signal 11 (SIGSEGV)
==23107== Access not within mapped region at address 0x0
==23107== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23107== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23107== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23107== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23107== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23107== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23107== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23107== by 0x808B41C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23107== by 0x80899A4: ngx_spawn_process (ngx_process.c:199)
==23107== by 0x808A532: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23107== by 0x808C56B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23107== by 0x8062D5B: main (nginx.c:385)
==23107== If you believe this happened as a result of a stack
==23107== overflow in your program's main thread (unlikely but
==23107== possible), you can try to increase the size of the
==23107== main thread stack using the --main-stacksize= flag.
==23107== 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:08:08 [alert] 23104\#0: worker process 23105 exited on signal 11" (req 1) 2020/10/27 05:08:08 [debug] 23107\#0: *4 reusable connection: 0
2020/10/27 05:08:08 [debug] 23104\#0: shmtx forced unlock
2020/10/27 05:08:08 [debug] 23107\#0: *4 malloc: 05083F38:24
2020/10/27 05:08:08 [debug] 23107\#0: *4 malloc: 05083F80:784
2020/10/27 05:08:08 [debug] 23107\#0: *4 malloc: 050842C0:8
2020/10/27 05:08:08 [debug] 23104\#0: wake up, sigio 0
2020/10/27 05:08:08 [debug] 23104\#0: reap children
2020/10/27 05:08:08 [debug] 23107\#0: *4 malloc: 050842F8:480
2020/10/27 05:08:08 [debug] 23107\#0: *4 malloc: 05084508:8
'
158-global-var.t TEST 9: warn messages for polluting _G table when handling request - 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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23113== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
158-global-var.t TEST 9: warn messages for polluting _G table when handling request - 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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23113== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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: ''
expected: 'writing a global Lua variable ('1')
'
158-global-var.t TEST 2: init_worker_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==23115== Invalid read of size 4
==23115== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23115== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23115== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23115== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23115== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23115== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23115== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23115== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23115== by 0x8062D4E: main (nginx.c:382)
==23115== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23115==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
158-global-var.t TEST 2: init_worker_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==23115==
==23115== Process terminating with default action of signal 11 (SIGSEGV)
==23115== Access not within mapped region at address 0x0
==23115== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23115== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23115== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23115== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23115== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23115== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23115== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23115== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23115== by 0x8062D4E: main (nginx.c:382)
==23115== If you believe this happened as a result of a stack
==23115== overflow in your program's main thread (unlikely but
==23115== possible), you can try to increase the size of the
==23115== main thread stack using the --main-stacksize= flag.
==23115== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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: ''
expected: 'old foo: 2
'
158-global-var.t TEST 8: balancer_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==23117== Invalid read of size 4
==23117== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23117== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23117== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23117== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23117== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23117== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23117== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23117== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23117== by 0x8062D4E: main (nginx.c:382)
==23117== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23117==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
158-global-var.t TEST 8: balancer_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==23117==
==23117== Process terminating with default action of signal 11 (SIGSEGV)
==23117== Access not within mapped region at address 0x0
==23117== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23117== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23117== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23117== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23117== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23117== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23117== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23117== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23117== by 0x8062D4E: main (nginx.c:382)
==23117== If you believe this happened as a result of a stack
==23117== overflow in your program's main thread (unlikely but
==23117== possible), you can try to increase the size of the
==23117== main thread stack using the --main-stacksize= flag.
==23117== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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: ''
expected: 'old foo: 1
'
158-global-var.t TEST 8: balancer_by_lua - pattern "connect() to 0.0.0.1:1234 failed" should match a line in error.log (req 1)
158-global-var.t TEST 6: timer - Can't connect to 127.0.0.1:1984: Connection refused ==23119== Invalid read of size 4
==23119== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23119== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23119== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23119== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23119== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23119== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23119== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23119== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23119== by 0x8062D4E: main (nginx.c:382)
==23119== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23119==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
158-global-var.t TEST 6: timer - Can't connect to 127.0.0.1:1984: Connection refused ==23119==
==23119== Process terminating with default action of signal 11 (SIGSEGV)
==23119== Access not within mapped region at address 0x0
==23119== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23119== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23119== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23119== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23119== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23119== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23119== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23119== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23119== by 0x8062D4E: main (nginx.c:382)
==23119== If you believe this happened as a result of a stack
==23119== overflow in your program's main thread (unlikely but
==23119== possible), you can try to increase the size of the
==23119== main thread stack using the --main-stacksize= flag.
==23119== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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: ''
expected: 'old foo: 1
'
158-global-var.t TEST 1: init_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==23121== Invalid read of size 4
==23121== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23121== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23121== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23121== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23121== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23121== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23121== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23121== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23121== by 0x8062D4E: main (nginx.c:382)
==23121== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23121==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
158-global-var.t TEST 1: init_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==23121==
==23121== Process terminating with default action of signal 11 (SIGSEGV)
==23121== Access not within mapped region at address 0x0
==23121== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23121== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23121== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23121== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23121== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23121== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23121== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23121== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23121== by 0x8062D4E: main (nginx.c:382)
==23121== If you believe this happened as a result of a stack
==23121== overflow in your program's main thread (unlikely but
==23121== possible), you can try to increase the size of the
==23121== main thread stack using the --main-stacksize= flag.
==23121== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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: ''
expected: 'old foo: 2
'
158-global-var.t TEST 7: uthread - Can't connect to 127.0.0.1:1984: Connection refused ==23123== Invalid read of size 4
==23123== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23123== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23123== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23123== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23123== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23123== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23123== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23123== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23123== by 0x8062D4E: main (nginx.c:382)
==23123== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23123==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
158-global-var.t TEST 7: uthread - Can't connect to 127.0.0.1:1984: Connection refused ==23123==
==23123== Process terminating with default action of signal 11 (SIGSEGV)
==23123== Access not within mapped region at address 0x0
==23123== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23123== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23123== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23123== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23123== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23123== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23123== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23123== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23123== by 0x8062D4E: main (nginx.c:382)
==23123== If you believe this happened as a result of a stack
==23123== overflow in your program's main thread (unlikely but
==23123== possible), you can try to increase the size of the
==23123== main thread stack using the --main-stacksize= flag.
==23123== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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: ''
expected: 'old foo: 1
'
158-global-var.t TEST 4: content_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==23125== Invalid read of size 4
==23125== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23125== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23125== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23125== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23125== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23125== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23125== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23125== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23125== by 0x8062D4E: main (nginx.c:382)
==23125== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23125==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
158-global-var.t TEST 4: content_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==23125==
==23125== Process terminating with default action of signal 11 (SIGSEGV)
==23125== Access not within mapped region at address 0x0
==23125== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23125== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23125== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23125== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23125== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23125== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23125== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23125== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23125== by 0x8062D4E: main (nginx.c:382)
==23125== If you believe this happened as a result of a stack
==23125== overflow in your program's main thread (unlikely but
==23125== possible), you can try to increase the size of the
==23125== main thread stack using the --main-stacksize= flag.
==23125== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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: ''
expected: 'old foo: 1
'
158-global-var.t TEST 10: don't show warn messages in init/init_worker - 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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23127== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
158-global-var.t TEST 10: don't show warn messages in init/init_worker - 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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23127== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 5: log_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==23129== Invalid read of size 4
==23129== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23129== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23129== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23129== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23129== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23129== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23129== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23129== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23129== by 0x8062D4E: main (nginx.c:382)
==23129== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23129==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
158-global-var.t TEST 5: log_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==23129==
==23129== Process terminating with default action of signal 11 (SIGSEGV)
==23129== Access not within mapped region at address 0x0
==23129== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23129== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23129== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23129== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23129== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23129== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23129== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23129== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23129== by 0x8062D4E: main (nginx.c:382)
==23129== If you believe this happened as a result of a stack
==23129== overflow in your program's main thread (unlikely but
==23129== possible), you can try to increase the size of the
==23129== main thread stack using the --main-stacksize= flag.
==23129== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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: ''
expected: 'old foo: 1
'
158-global-var.t TEST 3: preread_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==23131== Invalid read of size 4
==23131== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23131== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23131== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23131== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23131== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23131== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23131== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23131== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23131== by 0x8062D4E: main (nginx.c:382)
==23131== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23131==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
158-global-var.t TEST 3: preread_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==23131==
==23131== Process terminating with default action of signal 11 (SIGSEGV)
==23131== Access not within mapped region at address 0x0
==23131== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23131== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23131== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23131== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23131== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23131== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23131== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23131== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23131== by 0x8062D4E: main (nginx.c:382)
==23131== If you believe this happened as a result of a stack
==23131== overflow in your program's main thread (unlikely but
==23131== possible), you can try to increase the size of the
==23131== main thread stack using the --main-stacksize= flag.
==23131== 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 (aborted) '
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: ''
expected: 'old foo: 1
'
159-sa-restart.t TEST 5: lua_sa_restart on (default) - SA_RESTART is effective in log_by_lua* - Can't connect to 127.0.0.1:1984: Connection refused ==23136== Invalid read of size 4
==23136== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23136== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23136== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23136== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23136== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23136== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23136== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23136== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23136== by 0x8062D4E: main (nginx.c:382)
==23136== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23136==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
159-sa-restart.t TEST 5: lua_sa_restart on (default) - SA_RESTART is effective in log_by_lua* - Can't connect to 127.0.0.1:1984: Connection refused ==23136==
==23136== Process terminating with default action of signal 11 (SIGSEGV)
==23136== Access not within mapped region at address 0x0
==23136== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23136== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23136== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23136== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23136== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23136== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23136== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23136== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23136== by 0x8062D4E: main (nginx.c:382)
==23136== If you believe this happened as a result of a stack
==23136== overflow in your program's main thread (unlikely but
==23136== possible), you can try to increase the size of the
==23136== main thread stack using the --main-stacksize= flag.
==23136== 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 3: lua_sa_restart on (default) - sets SA_RESTART if no init_worker_by_lua* phase is defined - Can't connect to 127.0.0.1:1984: Connection refused ==23143== Invalid read of size 4
==23143== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23143== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23143== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23143== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23143== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23143== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23143== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23143== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23143== by 0x8062D4E: main (nginx.c:382)
==23143== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23143==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 - Can't connect to 127.0.0.1:1984: Connection refused ==23143==
==23143== Process terminating with default action of signal 11 (SIGSEGV)
==23143== Access not within mapped region at address 0x0
==23143== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23143== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23143== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23143== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23143== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23143== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23143== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23143== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23143== by 0x8062D4E: main (nginx.c:382)
==23143== If you believe this happened as a result of a stack
==23143== overflow in your program's main thread (unlikely but
==23143== possible), you can try to increase the size of the
==23143== main thread stack using the --main-stacksize= flag.
==23143== 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 1: lua_sa_restart default - sets SA_RESTART in init_worker_by_lua* - Can't connect to 127.0.0.1:1984: Connection refused ==23150== Invalid read of size 4
==23150== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23150== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23150== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23150== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23150== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23150== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23150== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23150== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23150== by 0x8062D4E: main (nginx.c:382)
==23150== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23150==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
159-sa-restart.t TEST 1: lua_sa_restart default - sets SA_RESTART in init_worker_by_lua* - Can't connect to 127.0.0.1:1984: Connection refused ==23150==
==23150== Process terminating with default action of signal 11 (SIGSEGV)
==23150== Access not within mapped region at address 0x0
==23150== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23150== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23150== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23150== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23150== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23150== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23150== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23150== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23150== by 0x8062D4E: main (nginx.c:382)
==23150== If you believe this happened as a result of a stack
==23150== overflow in your program's main thread (unlikely but
==23150== possible), you can try to increase the size of the
==23150== main thread stack using the --main-stacksize= flag.
==23150== 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'
159-sa-restart.t TEST 6: lua_sa_restart on (default) - SA_RESTART is effective in timer phase - Can't connect to 127.0.0.1:1984: Connection refused ==23157== Invalid read of size 4
==23157== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23157== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23157== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23157== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23157== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23157== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23157== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23157== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23157== by 0x8062D4E: main (nginx.c:382)
==23157== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23157==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
159-sa-restart.t TEST 6: lua_sa_restart on (default) - SA_RESTART is effective in timer phase - Can't connect to 127.0.0.1:1984: Connection refused ==23157==
==23157== Process terminating with default action of signal 11 (SIGSEGV)
==23157== Access not within mapped region at address 0x0
==23157== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23157== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23157== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23157== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23157== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23157== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23157== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23157== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23157== by 0x8062D4E: main (nginx.c:382)
==23157== If you believe this happened as a result of a stack
==23157== overflow in your program's main thread (unlikely but
==23157== possible), you can try to increase the size of the
==23157== main thread stack using the --main-stacksize= flag.
==23157== 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 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 ==23164== Invalid read of size 4
==23164== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23164== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23164== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23164== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23164== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23164== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23164== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23164== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23164== by 0x8062D4E: main (nginx.c:382)
==23164== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23164==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==23164==
==23164== Process terminating with default action of signal 11 (SIGSEGV)
==23164== Access not within mapped region at address 0x0
==23164== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23164== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23164== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23164== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23164== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23164== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23164== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23164== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23164== by 0x8062D4E: main (nginx.c:382)
==23164== If you believe this happened as a result of a stack
==23164== overflow in your program's main thread (unlikely but
==23164== possible), you can try to increase the size of the
==23164== main thread stack using the --main-stacksize= flag.
==23164== 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 2: lua_sa_restart off - does not set SA_RESTART - Can't connect to 127.0.0.1:1984: Connection refused ==23171== Invalid read of size 4
==23171== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23171== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23171== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23171== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23171== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23171== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23171== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23171== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23171== by 0x8062D4E: main (nginx.c:382)
==23171== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23171==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
159-sa-restart.t TEST 2: lua_sa_restart off - does not set SA_RESTART - Can't connect to 127.0.0.1:1984: Connection refused ==23171==
==23171== Process terminating with default action of signal 11 (SIGSEGV)
==23171== Access not within mapped region at address 0x0
==23171== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23171== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23171== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23171== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23171== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23171== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23171== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23171== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23171== by 0x8062D4E: main (nginx.c:382)
==23171== If you believe this happened as a result of a stack
==23171== overflow in your program's main thread (unlikely but
==23171== possible), you can try to increase the size of the
==23171== main thread stack using the --main-stacksize= flag.
==23171== 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'
161-load-resty-core.t TEST 4: resty.core loading honors the lua_package_path directive - Can't connect to 127.0.0.1:1984: Connection refused ==23199== Invalid read of size 4
==23199== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23199== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23199== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23199== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23199== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23199== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23199== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23199== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23199== by 0x8062D4E: main (nginx.c:382)
==23199== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23199==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
161-load-resty-core.t TEST 4: resty.core loading honors the lua_package_path directive - Can't connect to 127.0.0.1:1984: Connection refused ==23199==
==23199== Process terminating with default action of signal 11 (SIGSEGV)
==23199== Access not within mapped region at address 0x0
==23199== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23199== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23199== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23199== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23199== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23199== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23199== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23199== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23199== by 0x8062D4E: main (nginx.c:382)
==23199== If you believe this happened as a result of a stack
==23199== overflow in your program's main thread (unlikely but
==23199== possible), you can try to increase the size of the
==23199== main thread stack using the --main-stacksize= flag.
==23199== 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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 7: lua_load_resty_core logs a deprecation warning when specified (on) - Can't connect to 127.0.0.1:1984: Connection refused ==23201== Invalid read of size 4
==23201== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23201== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23201== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23201== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23201== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23201== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23201== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23201== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23201== by 0x8062D4E: main (nginx.c:382)
==23201== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23201==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
161-load-resty-core.t TEST 7: lua_load_resty_core logs a deprecation warning when specified (on) - Can't connect to 127.0.0.1:1984: Connection refused ==23201==
==23201== Process terminating with default action of signal 11 (SIGSEGV)
==23201== Access not within mapped region at address 0x0
==23201== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23201== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23201== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23201== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23201== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23201== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23201== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23201== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23201== by 0x8062D4E: main (nginx.c:382)
==23201== If you believe this happened as a result of a stack
==23201== overflow in your program's main thread (unlikely but
==23201== possible), you can try to increase the size of the
==23201== main thread stack using the --main-stacksize= flag.
==23201== 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) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 8: lua_load_resty_core logs a deprecation warning when specified (off) - Can't connect to 127.0.0.1:1984: Connection refused ==23203== Invalid read of size 4
==23203== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23203== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23203== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23203== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23203== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23203== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23203== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23203== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23203== by 0x8062D4E: main (nginx.c:382)
==23203== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23203==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==23203==
==23203== Process terminating with default action of signal 11 (SIGSEGV)
==23203== Access not within mapped region at address 0x0
==23203== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23203== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23203== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23203== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23203== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23203== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23203== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23203== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23203== by 0x8062D4E: main (nginx.c:382)
==23203== If you believe this happened as a result of a stack
==23203== overflow in your program's main thread (unlikely but
==23203== possible), you can try to increase the size of the
==23203== main thread stack using the --main-stacksize= flag.
==23203== 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 (aborted) '
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' - Can't connect to 127.0.0.1:1984: Connection refused ==23205== Invalid read of size 4
==23205== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23205== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23205== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23205== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23205== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23205== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23205== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23205== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23205== by 0x8062D4E: main (nginx.c:382)
==23205== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23205==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
161-load-resty-core.t TEST 6: resty.core not loading produces an error with 'lua_code_cache off' - Can't connect to 127.0.0.1:1984: Connection refused ==23205==
==23205== Process terminating with default action of signal 11 (SIGSEGV)
==23205== Access not within mapped region at address 0x0
==23205== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23205== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23205== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23205== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23205== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23205== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23205== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23205== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23205== by 0x8062D4E: main (nginx.c:382)
==23205== If you believe this happened as a result of a stack
==23205== overflow in your program's main thread (unlikely but
==23205== possible), you can try to increase the size of the
==23205== main thread stack using the --main-stacksize= flag.
==23205== 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' - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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' - pattern "(?^:\[error\] .*? failed to load the 'resty\.core' module .*? \(reason: module 'resty\.core' not found:)" should match a line in error.log (req 1)
161-load-resty-core.t TEST 3: resty.core is automatically loaded in the Lua VM with 'lua_code_cache off' - Can't connect to 127.0.0.1:1984: Connection refused ==23207== Invalid read of size 4
==23207== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23207== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23207== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23207== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23207== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23207== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23207== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23207== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23207== by 0x8062D4E: main (nginx.c:382)
==23207== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23207==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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' - Can't connect to 127.0.0.1:1984: Connection refused ==23207==
==23207== Process terminating with default action of signal 11 (SIGSEGV)
==23207== Access not within mapped region at address 0x0
==23207== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23207== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23207== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23207== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23207== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23207== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23207== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23207== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23207== by 0x8062D4E: main (nginx.c:382)
==23207== If you believe this happened as a result of a stack
==23207== overflow in your program's main thread (unlikely but
==23207== possible), you can try to increase the size of the
==23207== main thread stack using the --main-stacksize= flag.
==23207== 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' - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 1: lua_load_resty_core is automatically loaded in the Lua VM - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23213== by 0x8062D4E: main (nginx.c:382)
==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_single_process_cycle
fun:main
}
161-load-resty-core.t TEST 1: lua_load_resty_core is automatically loaded in the Lua VM - Can't connect to 127.0.0.1:1984: Connection refused ==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 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23213== by 0x8062D4E: main (nginx.c:382)
==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.

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 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
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 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 ==23215== Invalid read of size 4
==23215== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23215== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23215== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23215== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23215== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23215== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23215== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23215== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23215== by 0x8062D4E: main (nginx.c:382)
==23215== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23215==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_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 ==23215==
==23215== Process terminating with default action of signal 11 (SIGSEGV)
==23215== Access not within mapped region at address 0x0
==23215== at 0x8067948: ngx_vslprintf (ngx_string.c:253)
==23215== by 0x80636C6: ngx_log_error_core (ngx_log.c:137)
==23215== by 0x81256C2: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23215== by 0x8125B9B: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23215== by 0x811E1D7: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23215== by 0x808D897: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23215== by 0x808220F: ngx_process_events_and_timers (ngx_event.c:257)
==23215== by 0x808C7C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23215== by 0x8062D4E: main (nginx.c:382)
==23215== If you believe this happened as a result of a stack
==23215== overflow in your program's main thread (unlikely but
==23215== possible), you can try to increase the size of the
==23215== main thread stack using the --main-stacksize= flag.
==23215== 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 (aborted) '
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
'

Expected Failures

File Name Details
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 close the global Lua VM" 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 decrementing the reference count for Lua VM: 1" 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 close the global Lua VM" 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 18: lua variable sharing via upvalue - pattern "stream lua decrementing the reference count for Lua VM: 1" 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 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 decrementing the reference count for Lua VM: 1" should match a line in error.log (req 0)
025-codecache.t TEST 21: multiple parallel timers - pattern "stream lua close the global Lua VM" 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 21: multiple parallel 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 21: multiple parallel timers - pattern "stream lua close the global Lua VM" 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)
025-codecache.t TEST 19: lua_max_running_timers (just not enough) - pattern "stream lua decrementing the reference count for Lua VM: 1" should match a line in error.log (req 0)
025-codecache.t TEST 19: lua_max_running_timers (just not enough) - pattern "stream lua close the global Lua VM" should match a line in error.log (req 0)
025-codecache.t TEST 19: lua_max_running_timers (just not enough) - pattern "stream lua decrementing the reference count for Lua VM: 1" should match a line in error.log (req 1)
025-codecache.t TEST 19: lua_max_running_timers (just not enough) - pattern "stream lua close the global Lua VM" 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 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 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 "stream lua close the global Lua VM" 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 decrementing the reference count for Lua VM: 1" 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 17: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - pattern "stream lua close the global Lua VM" 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 decrementing the reference count for Lua VM: 1" should match a line in error.log (req 1)
091-coroutine.t nginx: [error] init_by_lua error: init_by_lua:7: init_by_lua:4: something went wrong
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 "lua ngx.timer expired" 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 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 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 32: log function location when failed to run a timer (lua file) - pattern "(?^:\[alert\] .*? lua failed to run timer with function defined at @.+/test.lua:3: stream lua: 1 lua_max_running_timers are not enough)" 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 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 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 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 "lua ngx.timer expired" 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 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 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 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 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 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 23: lua_max_pending_timers - chained timers (zero delay) - not exceeding - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 23: lua_max_pending_timers - chained timers (zero delay) - not exceeding - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 23: lua_max_pending_timers - chained timers (zero delay) - not exceeding - pattern "trace: [m][f][g]" 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 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 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 7: 0 timer - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0(?:[^.]|\.00))" should match a line in error.log (req 1)
106-timer.t TEST 7: 0 timer - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 7: 0 timer - 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 "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 28: use of ngx.ctx - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: .*?, context: ngx\.timer)" should match a line in error.log (req 1)
106-timer.t TEST 28: use of ngx.ctx - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 28: use of ngx.ctx - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 28: use of ngx.ctx - pattern "timer prematurely expired: false" should match a line in error.log (req 1)
106-timer.t TEST 28: use of ngx.ctx - pattern "lua release ngx.ctx at ref " 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 "(?^:\[alert\] .*? 1 lua_max_running_timers are not enough)" should match a line in error.log (req 1)
106-timer.t TEST 24: lua_max_running_timers (just not enough) - pattern "lua ngx.timer expired" 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 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 31: log function location when failed to run a timer (anonymous function) - pattern "(?^:\[alert\] .*? lua failed to run timer with function defined at =content_by_lua\(nginx.conf:\d+\):12: stream lua: 1 lua_max_running_timers are not enough)" 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 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 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)
106-timer.t TEST 30: log function location when failed to run a timer - pattern "(?^:\[alert\] .*? lua failed to run timer with function defined at =content_by_lua\(nginx.conf:\d+\):2: stream lua: 1 lua_max_running_timers are not enough)" should match a line in error.log (req 1)
106-timer.t TEST 17: chained timers (0 delay) - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
106-timer.t TEST 17: chained timers (0 delay) - pattern "stream lua close fake stream connection" should match a line in error.log (req 1)
106-timer.t TEST 17: chained timers (0 delay) - pattern "(?^:trace: \[m\]\[f\]\[g\], 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 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)
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 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 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 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 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)
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 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 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 5: 0 timer - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0(?:[^.]|\.00))" should match a line in error.log (req 1)
108-timer-safe.t TEST 5: 0 timer - pattern "lua ngx.timer expired" should match a line in error.log (req 1)
108-timer-safe.t TEST 5: 0 timer - pattern "stream lua close fake stream connection" 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 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 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 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)
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 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
'
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
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
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)
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.