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

Detailed Test Report for lua-resty-core in linux i386 (v)

Summary

Commit Testing Time Unexpected
Failures
Expected
Failures
Files Tests Elapsed Time
12abf47c 2020-10-27 03:33:36 GMT 1901 18 78 8980 3911 sec

LuaJIT

LuaJIT 2.1.0-beta3, commit 70f88773

OpenSSL

OpenSSL 1.1.1h 22 Sep 2020

Compilation Errors

Unexpected Failures

File Name Details
balancer-timeout.t TEST 3: set_timeouts (nil send timeout) - grep_error_log_out (req 0) 'event timer add: 9: 1234:
event timer add: 9: 5678:
event timer add: 9: 7689:
event timer add: 9: 7689:
'
doesn't match '(?^:\Aevent timer add: \d+: 1234:
event timer add: \d+: 5678:
event timer add: \d+: 7689:
\z)'
balancer-timeout.t TEST 3: set_timeouts (nil send timeout) - grep_error_log_out (req 1) 'event timer add: 9: 1234:
event timer add: 9: 5678:
event timer add: 9: 7689:
event timer add: 9: 7689:
'
doesn't match '(?^:\Aevent timer add: \d+: 1234:
event timer add: \d+: 5678:
event timer add: \d+: 7689:
\z)'
balancer-timeout.t TEST 2: set_timeouts (nil connect timeout) - grep_error_log_out (req 0) 'event timer add: 9: 1234:
event timer add: 9: 5678:
event timer add: 9: 7689:
event timer add: 9: 7689:
'
doesn't match '(?^:\Aevent timer add: \d+: 1234:
event timer add: \d+: 5678:
event timer add: \d+: 7689:
\z)'
balancer-timeout.t TEST 2: set_timeouts (nil connect timeout) - grep_error_log_out (req 1) 'event timer add: 9: 1234:
event timer add: 9: 5678:
event timer add: 9: 7689:
event timer add: 9: 7689:
'
doesn't match '(?^:\Aevent timer add: \d+: 1234:
event timer add: \d+: 5678:
event timer add: \d+: 7689:
\z)'
balancer-timeout.t TEST 1: set_timeouts - grep_error_log_out (req 0) 'event timer add: 9: 1234:
event timer add: 9: 5678:
event timer add: 9: 7689:
event timer add: 9: 7689:
'
doesn't match '(?^:\Aevent timer add: \d+: 1234:
event timer add: \d+: 5678:
event timer add: \d+: 7689:
\z)'
balancer-timeout.t TEST 1: set_timeouts - grep_error_log_out (req 1) 'event timer add: 9: 1234:
event timer add: 9: 5678:
event timer add: 9: 7689:
event timer add: 9: 7689:
'
doesn't match '(?^:\Aevent timer add: \d+: 1234:
event timer add: \d+: 5678:
event timer add: \d+: 7689:
\z)'
balancer-timeout.t TEST 4: set_timeouts (nil read timeout) - grep_error_log_out (req 0) 'event timer add: 9: 1234:
event timer add: 9: 5678:
event timer add: 9: 7689:
event timer add: 9: 7689:
'
doesn't match '(?^:\Aevent timer add: \d+: 1234:
event timer add: \d+: 5678:
event timer add: \d+: 7689:
\z)'
balancer-timeout.t TEST 4: set_timeouts (nil read timeout) - grep_error_log_out (req 1) 'event timer add: 9: 1234:
event timer add: 9: 5678:
event timer add: 9: 7689:
event timer add: 9: 7689:
'
doesn't match '(?^:\Aevent timer add: \d+: 1234:
event timer add: \d+: 5678:
event timer add: \d+: 7689:
\z)'
ctx.t TEST 3: ngx.ctx in ssl_certificate_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==22023== Invalid read of size 4
==22023== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==22023== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==22023== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22023== by 0x8153533: ngx_http_lua_socket_tcp_receive_helper (ngx_http_lua_socket_tcp.c:2111)
==22023== by 0x8153C80: ngx_http_lua_socket_tcp_receive (ngx_http_lua_socket_tcp.c:2354)
==22023== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22023== by 0x407FA29: lua_resume (lj_api.c:1296)
==22023== by 0x8141294: ngx_http_lua_run_thread (ngx_http_lua_util.c:1164)
==22023== by 0x814D573: ngx_http_lua_socket_tcp_resume_helper (ngx_http_lua_socket_tcp.c:6000)
==22023== by 0x814D651: ngx_http_lua_socket_tcp_conn_resume (ngx_http_lua_socket_tcp.c:5906)
==22023== by 0x814524C: ngx_http_lua_content_wev_handler (ngx_http_lua_contentby.c:152)
==22023== by 0x814B398: ngx_http_lua_socket_handle_conn_success (ngx_http_lua_socket_tcp.c:3460)
==22023== by 0x814F62F: ngx_http_lua_ssl_handshake_handler (ngx_http_lua_socket_tcp.c:1901)
==22023== by 0x8095D20: ngx_ssl_handshake_handler (ngx_event_openssl.c:1986)
==22023== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22023== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==22023== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22023== by 0x8065F7E: main (nginx.c:382)
==22023== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22023==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_tcp_receive_helper
fun:ngx_http_lua_socket_tcp_receive
fun:lj_BC_FUNCC
fun:lua_resume
fun:ngx_http_lua_run_thread
fun:ngx_http_lua_socket_tcp_resume_helper
fun:ngx_http_lua_socket_tcp_conn_resume
fun:ngx_http_lua_content_wev_handler
fun:ngx_http_lua_socket_handle_conn_success
fun:ngx_http_lua_ssl_handshake_handler
fun:ngx_ssl_handshake_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
ctx.t TEST 3: ngx.ctx in ssl_certificate_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==22023==
==22023== Process terminating with default action of signal 11 (SIGSEGV)
==22023== Access not within mapped region at address 0x0
==22023== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==22023== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==22023== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22023== by 0x8153533: ngx_http_lua_socket_tcp_receive_helper (ngx_http_lua_socket_tcp.c:2111)
==22023== by 0x8153C80: ngx_http_lua_socket_tcp_receive (ngx_http_lua_socket_tcp.c:2354)
==22023== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22023== by 0x407FA29: lua_resume (lj_api.c:1296)
==22023== by 0x8141294: ngx_http_lua_run_thread (ngx_http_lua_util.c:1164)
==22023== by 0x814D573: ngx_http_lua_socket_tcp_resume_helper (ngx_http_lua_socket_tcp.c:6000)
==22023== by 0x814D651: ngx_http_lua_socket_tcp_conn_resume (ngx_http_lua_socket_tcp.c:5906)
==22023== by 0x814524C: ngx_http_lua_content_wev_handler (ngx_http_lua_contentby.c:152)
==22023== by 0x814B398: ngx_http_lua_socket_handle_conn_success (ngx_http_lua_socket_tcp.c:3460)
==22023== by 0x814F62F: ngx_http_lua_ssl_handshake_handler (ngx_http_lua_socket_tcp.c:1901)
==22023== by 0x8095D20: ngx_ssl_handshake_handler (ngx_event_openssl.c:1986)
==22023== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22023== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==22023== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22023== by 0x8065F7E: main (nginx.c:382)
==22023== If you believe this happened as a result of a stack
==22023== overflow in your program's main thread (unlikely but
==22023== possible), you can try to increase the size of the
==22023== main thread stack using the --main-stacksize= flag.
==22023== The main thread stack size used in this run was 8388608.

ctx.t TEST 3: ngx.ctx in ssl_certificate_by_lua - status code ok got: ''
expected: '200'
ctx.t TEST 3: ngx.ctx in ssl_certificate_by_lua - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "received: 42\x{0a}received: 1\x{0a}received: 42\x{0a}received: 1\x{0a}"
length: 50
strings begin to differ at char 1 (line 1 column 1)
ctx.t TEST 3: ngx.ctx in ssl_certificate_by_lua - grep_error_log_out (req 0) got: ""
length: 0
expected: "lua release ngx.ctx at ref 2\x{0a}lua release ngx.ctx a"...
length: 87
strings begin to differ at char 1 (line 1 column 1)
ctx.t TEST 3: ngx.ctx in ssl_certificate_by_lua - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ctx.t TEST 3: ngx.ctx in ssl_certificate_by_lua - status code ok got: ''
expected: '200'
ctx.t TEST 3: ngx.ctx in ssl_certificate_by_lua - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "received: 42\x{0a}received: 1\x{0a}received: 42\x{0a}received: 1\x{0a}"
length: 50
strings begin to differ at char 1 (line 1 column 1)
ctx.t TEST 3: ngx.ctx in ssl_certificate_by_lua - grep_error_log_out (req 1) got: ""
length: 0
expected: "lua release ngx.ctx at ref 2\x{0a}lua release ngx.ctx a"...
length: 174
strings begin to differ at char 1 (line 1 column 1)
ctx.t TEST 6: ngx.ctx in ssl_session_store_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==22026== Invalid read of size 4
==22026== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==22026== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==22026== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22026== by 0x8153533: ngx_http_lua_socket_tcp_receive_helper (ngx_http_lua_socket_tcp.c:2111)
==22026== by 0x8153C80: ngx_http_lua_socket_tcp_receive (ngx_http_lua_socket_tcp.c:2354)
==22026== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22026== by 0x407FA29: lua_resume (lj_api.c:1296)
==22026== by 0x8141294: ngx_http_lua_run_thread (ngx_http_lua_util.c:1164)
==22026== by 0x814D573: ngx_http_lua_socket_tcp_resume_helper (ngx_http_lua_socket_tcp.c:6000)
==22026== by 0x814D651: ngx_http_lua_socket_tcp_conn_resume (ngx_http_lua_socket_tcp.c:5906)
==22026== by 0x814524C: ngx_http_lua_content_wev_handler (ngx_http_lua_contentby.c:152)
==22026== by 0x814B398: ngx_http_lua_socket_handle_conn_success (ngx_http_lua_socket_tcp.c:3460)
==22026== by 0x814F62F: ngx_http_lua_ssl_handshake_handler (ngx_http_lua_socket_tcp.c:1901)
==22026== by 0x8095D20: ngx_ssl_handshake_handler (ngx_event_openssl.c:1986)
==22026== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22026== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==22026== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22026== by 0x8065F7E: 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_tcp_receive_helper
fun:ngx_http_lua_socket_tcp_receive
fun:lj_BC_FUNCC
fun:lua_resume
fun:ngx_http_lua_run_thread
fun:ngx_http_lua_socket_tcp_resume_helper
fun:ngx_http_lua_socket_tcp_conn_resume
fun:ngx_http_lua_content_wev_handler
fun:ngx_http_lua_socket_handle_conn_success
fun:ngx_http_lua_ssl_handshake_handler
fun:ngx_ssl_handshake_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
ctx.t TEST 6: ngx.ctx in ssl_session_store_by_lua - 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 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==22026== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==22026== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22026== by 0x8153533: ngx_http_lua_socket_tcp_receive_helper (ngx_http_lua_socket_tcp.c:2111)
==22026== by 0x8153C80: ngx_http_lua_socket_tcp_receive (ngx_http_lua_socket_tcp.c:2354)
==22026== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22026== by 0x407FA29: lua_resume (lj_api.c:1296)
==22026== by 0x8141294: ngx_http_lua_run_thread (ngx_http_lua_util.c:1164)
==22026== by 0x814D573: ngx_http_lua_socket_tcp_resume_helper (ngx_http_lua_socket_tcp.c:6000)
==22026== by 0x814D651: ngx_http_lua_socket_tcp_conn_resume (ngx_http_lua_socket_tcp.c:5906)
==22026== by 0x814524C: ngx_http_lua_content_wev_handler (ngx_http_lua_contentby.c:152)
==22026== by 0x814B398: ngx_http_lua_socket_handle_conn_success (ngx_http_lua_socket_tcp.c:3460)
==22026== by 0x814F62F: ngx_http_lua_ssl_handshake_handler (ngx_http_lua_socket_tcp.c:1901)
==22026== by 0x8095D20: ngx_ssl_handshake_handler (ngx_event_openssl.c:1986)
==22026== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22026== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==22026== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22026== by 0x8065F7E: 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.

ctx.t TEST 6: ngx.ctx in ssl_session_store_by_lua - status code ok got: ''
expected: '200'
ctx.t TEST 6: ngx.ctx in ssl_session_store_by_lua - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "received: 42\x{0a}received: 1\x{0a}received: 42\x{0a}received: 1\x{0a}"
length: 50
strings begin to differ at char 1 (line 1 column 1)
ctx.t TEST 6: ngx.ctx in ssl_session_store_by_lua - grep_error_log_out (req 0) got: ""
length: 0
expected: "lua release ngx.ctx at ref 2\x{0a}lua release ngx.ctx a"...
length: 87
strings begin to differ at char 1 (line 1 column 1)
ctx.t TEST 6: ngx.ctx in ssl_session_store_by_lua - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ctx.t TEST 6: ngx.ctx in ssl_session_store_by_lua - status code ok got: ''
expected: '200'
ctx.t TEST 6: ngx.ctx in ssl_session_store_by_lua - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "received: 42\x{0a}received: 1\x{0a}received: 42\x{0a}received: 1\x{0a}"
length: 50
strings begin to differ at char 1 (line 1 column 1)
ctx.t TEST 6: ngx.ctx in ssl_session_store_by_lua - grep_error_log_out (req 1) got: ""
length: 0
expected: "lua release ngx.ctx at ref 2\x{0a}lua release ngx.ctx a"...
length: 174
strings begin to differ at char 1 (line 1 column 1)
ctx.t TEST 11: overwrite values will only take affect in the current http request - Can't connect to 127.0.0.1:1984: Connection refused ==22029== Invalid read of size 4
==22029== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==22029== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==22029== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22029== by 0x8153533: ngx_http_lua_socket_tcp_receive_helper (ngx_http_lua_socket_tcp.c:2111)
==22029== by 0x8153C80: ngx_http_lua_socket_tcp_receive (ngx_http_lua_socket_tcp.c:2354)
==22029== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22029== by 0x407FA29: lua_resume (lj_api.c:1296)
==22029== by 0x8141294: ngx_http_lua_run_thread (ngx_http_lua_util.c:1164)
==22029== by 0x814D573: ngx_http_lua_socket_tcp_resume_helper (ngx_http_lua_socket_tcp.c:6000)
==22029== by 0x814D651: ngx_http_lua_socket_tcp_conn_resume (ngx_http_lua_socket_tcp.c:5906)
==22029== by 0x814524C: ngx_http_lua_content_wev_handler (ngx_http_lua_contentby.c:152)
==22029== by 0x814B398: ngx_http_lua_socket_handle_conn_success (ngx_http_lua_socket_tcp.c:3460)
==22029== by 0x814F62F: ngx_http_lua_ssl_handshake_handler (ngx_http_lua_socket_tcp.c:1901)
==22029== by 0x8095D20: ngx_ssl_handshake_handler (ngx_event_openssl.c:1986)
==22029== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22029== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==22029== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22029== by 0x8065F7E: main (nginx.c:382)
==22029== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22029==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_tcp_receive_helper
fun:ngx_http_lua_socket_tcp_receive
fun:lj_BC_FUNCC
fun:lua_resume
fun:ngx_http_lua_run_thread
fun:ngx_http_lua_socket_tcp_resume_helper
fun:ngx_http_lua_socket_tcp_conn_resume
fun:ngx_http_lua_content_wev_handler
fun:ngx_http_lua_socket_handle_conn_success
fun:ngx_http_lua_ssl_handshake_handler
fun:ngx_ssl_handshake_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
ctx.t TEST 11: overwrite values will only take affect in the current http request - Can't connect to 127.0.0.1:1984: Connection refused ==22029==
==22029== Process terminating with default action of signal 11 (SIGSEGV)
==22029== Access not within mapped region at address 0x0
==22029== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==22029== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==22029== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22029== by 0x8153533: ngx_http_lua_socket_tcp_receive_helper (ngx_http_lua_socket_tcp.c:2111)
==22029== by 0x8153C80: ngx_http_lua_socket_tcp_receive (ngx_http_lua_socket_tcp.c:2354)
==22029== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22029== by 0x407FA29: lua_resume (lj_api.c:1296)
==22029== by 0x8141294: ngx_http_lua_run_thread (ngx_http_lua_util.c:1164)
==22029== by 0x814D573: ngx_http_lua_socket_tcp_resume_helper (ngx_http_lua_socket_tcp.c:6000)
==22029== by 0x814D651: ngx_http_lua_socket_tcp_conn_resume (ngx_http_lua_socket_tcp.c:5906)
==22029== by 0x814524C: ngx_http_lua_content_wev_handler (ngx_http_lua_contentby.c:152)
==22029== by 0x814B398: ngx_http_lua_socket_handle_conn_success (ngx_http_lua_socket_tcp.c:3460)
==22029== by 0x814F62F: ngx_http_lua_ssl_handshake_handler (ngx_http_lua_socket_tcp.c:1901)
==22029== by 0x8095D20: ngx_ssl_handshake_handler (ngx_event_openssl.c:1986)
==22029== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22029== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==22029== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22029== by 0x8065F7E: main (nginx.c:382)
==22029== If you believe this happened as a result of a stack
==22029== overflow in your program's main thread (unlikely but
==22029== possible), you can try to increase the size of the
==22029== main thread stack using the --main-stacksize= flag.
==22029== The main thread stack size used in this run was 8388608.

ctx.t TEST 11: overwrite values will only take affect in the current http request - status code ok got: ''
expected: '200'
ctx.t TEST 11: overwrite values will only take affect in the current http request - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "received: 0\x{0a}received: 0\x{0a}"
length: 24
strings begin to differ at char 1 (line 1 column 1)
ctx.t TEST 11: overwrite values will only take affect in the current http request - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ctx.t TEST 11: overwrite values will only take affect in the current http request - status code ok got: ''
expected: '200'
ctx.t TEST 11: overwrite values will only take affect in the current http request - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "received: 0\x{0a}received: 0\x{0a}"
length: 24
strings begin to differ at char 1 (line 1 column 1)
ctx.t TEST 8: ngx.ctx in ssl_session_fetch_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==22031== Invalid read of size 4
==22031== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==22031== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==22031== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22031== by 0x8153533: ngx_http_lua_socket_tcp_receive_helper (ngx_http_lua_socket_tcp.c:2111)
==22031== by 0x8153C80: ngx_http_lua_socket_tcp_receive (ngx_http_lua_socket_tcp.c:2354)
==22031== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22031== by 0x407FA29: lua_resume (lj_api.c:1296)
==22031== by 0x8141294: ngx_http_lua_run_thread (ngx_http_lua_util.c:1164)
==22031== by 0x814D573: ngx_http_lua_socket_tcp_resume_helper (ngx_http_lua_socket_tcp.c:6000)
==22031== by 0x814D651: ngx_http_lua_socket_tcp_conn_resume (ngx_http_lua_socket_tcp.c:5906)
==22031== by 0x814524C: ngx_http_lua_content_wev_handler (ngx_http_lua_contentby.c:152)
==22031== by 0x814B398: ngx_http_lua_socket_handle_conn_success (ngx_http_lua_socket_tcp.c:3460)
==22031== by 0x814F62F: ngx_http_lua_ssl_handshake_handler (ngx_http_lua_socket_tcp.c:1901)
==22031== by 0x8095D20: ngx_ssl_handshake_handler (ngx_event_openssl.c:1986)
==22031== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22031== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==22031== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22031== by 0x8065F7E: main (nginx.c:382)
==22031== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22031==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_tcp_receive_helper
fun:ngx_http_lua_socket_tcp_receive
fun:lj_BC_FUNCC
fun:lua_resume
fun:ngx_http_lua_run_thread
fun:ngx_http_lua_socket_tcp_resume_helper
fun:ngx_http_lua_socket_tcp_conn_resume
fun:ngx_http_lua_content_wev_handler
fun:ngx_http_lua_socket_handle_conn_success
fun:ngx_http_lua_ssl_handshake_handler
fun:ngx_ssl_handshake_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
ctx.t TEST 8: ngx.ctx in ssl_session_fetch_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==22031==
==22031== Process terminating with default action of signal 11 (SIGSEGV)
==22031== Access not within mapped region at address 0x0
==22031== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==22031== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==22031== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22031== by 0x8153533: ngx_http_lua_socket_tcp_receive_helper (ngx_http_lua_socket_tcp.c:2111)
==22031== by 0x8153C80: ngx_http_lua_socket_tcp_receive (ngx_http_lua_socket_tcp.c:2354)
==22031== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22031== by 0x407FA29: lua_resume (lj_api.c:1296)
==22031== by 0x8141294: ngx_http_lua_run_thread (ngx_http_lua_util.c:1164)
==22031== by 0x814D573: ngx_http_lua_socket_tcp_resume_helper (ngx_http_lua_socket_tcp.c:6000)
==22031== by 0x814D651: ngx_http_lua_socket_tcp_conn_resume (ngx_http_lua_socket_tcp.c:5906)
==22031== by 0x814524C: ngx_http_lua_content_wev_handler (ngx_http_lua_contentby.c:152)
==22031== by 0x814B398: ngx_http_lua_socket_handle_conn_success (ngx_http_lua_socket_tcp.c:3460)
==22031== by 0x814F62F: ngx_http_lua_ssl_handshake_handler (ngx_http_lua_socket_tcp.c:1901)
==22031== by 0x8095D20: ngx_ssl_handshake_handler (ngx_event_openssl.c:1986)
==22031== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22031== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==22031== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22031== by 0x8065F7E: main (nginx.c:382)
==22031== If you believe this happened as a result of a stack
==22031== overflow in your program's main thread (unlikely but
==22031== possible), you can try to increase the size of the
==22031== main thread stack using the --main-stacksize= flag.
==22031== The main thread stack size used in this run was 8388608.

ctx.t TEST 8: ngx.ctx in ssl_session_fetch_by_lua - status code ok got: ''
expected: '200'
ctx.t TEST 8: ngx.ctx in ssl_session_fetch_by_lua - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ctx.t TEST 8: ngx.ctx in ssl_session_fetch_by_lua - status code ok got: ''
expected: '200'
ctx.t TEST 8: ngx.ctx in ssl_session_fetch_by_lua - grep_error_log_out (req 1) got: ""
length: 0
expected: "lua release ngx.ctx at ref 2\x{0a}received: 42\x{0a}received"...
length: 137
strings begin to differ at char 1 (line 1 column 1)
ctx.t TEST 4: ngx.ctx in ssl_certificate_by_lua (share objects) - Can't connect to 127.0.0.1:1984: Connection refused ==22033== Invalid read of size 4
==22033== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==22033== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==22033== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22033== by 0x8153533: ngx_http_lua_socket_tcp_receive_helper (ngx_http_lua_socket_tcp.c:2111)
==22033== by 0x8153C80: ngx_http_lua_socket_tcp_receive (ngx_http_lua_socket_tcp.c:2354)
==22033== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22033== by 0x407FA29: lua_resume (lj_api.c:1296)
==22033== by 0x8141294: ngx_http_lua_run_thread (ngx_http_lua_util.c:1164)
==22033== by 0x814D573: ngx_http_lua_socket_tcp_resume_helper (ngx_http_lua_socket_tcp.c:6000)
==22033== by 0x814D651: ngx_http_lua_socket_tcp_conn_resume (ngx_http_lua_socket_tcp.c:5906)
==22033== by 0x814524C: ngx_http_lua_content_wev_handler (ngx_http_lua_contentby.c:152)
==22033== by 0x814B398: ngx_http_lua_socket_handle_conn_success (ngx_http_lua_socket_tcp.c:3460)
==22033== by 0x814F62F: ngx_http_lua_ssl_handshake_handler (ngx_http_lua_socket_tcp.c:1901)
==22033== by 0x8095D20: ngx_ssl_handshake_handler (ngx_event_openssl.c:1986)
==22033== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22033== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==22033== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22033== by 0x8065F7E: main (nginx.c:382)
==22033== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22033==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_tcp_receive_helper
fun:ngx_http_lua_socket_tcp_receive
fun:lj_BC_FUNCC
fun:lua_resume
fun:ngx_http_lua_run_thread
fun:ngx_http_lua_socket_tcp_resume_helper
fun:ngx_http_lua_socket_tcp_conn_resume
fun:ngx_http_lua_content_wev_handler
fun:ngx_http_lua_socket_handle_conn_success
fun:ngx_http_lua_ssl_handshake_handler
fun:ngx_ssl_handshake_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
ctx.t TEST 4: ngx.ctx in ssl_certificate_by_lua (share objects) - Can't connect to 127.0.0.1:1984: Connection refused ==22033==
==22033== Process terminating with default action of signal 11 (SIGSEGV)
==22033== Access not within mapped region at address 0x0
==22033== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==22033== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==22033== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22033== by 0x8153533: ngx_http_lua_socket_tcp_receive_helper (ngx_http_lua_socket_tcp.c:2111)
==22033== by 0x8153C80: ngx_http_lua_socket_tcp_receive (ngx_http_lua_socket_tcp.c:2354)
==22033== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22033== by 0x407FA29: lua_resume (lj_api.c:1296)
==22033== by 0x8141294: ngx_http_lua_run_thread (ngx_http_lua_util.c:1164)
==22033== by 0x814D573: ngx_http_lua_socket_tcp_resume_helper (ngx_http_lua_socket_tcp.c:6000)
==22033== by 0x814D651: ngx_http_lua_socket_tcp_conn_resume (ngx_http_lua_socket_tcp.c:5906)
==22033== by 0x814524C: ngx_http_lua_content_wev_handler (ngx_http_lua_contentby.c:152)
==22033== by 0x814B398: ngx_http_lua_socket_handle_conn_success (ngx_http_lua_socket_tcp.c:3460)
==22033== by 0x814F62F: ngx_http_lua_ssl_handshake_handler (ngx_http_lua_socket_tcp.c:1901)
==22033== by 0x8095D20: ngx_ssl_handshake_handler (ngx_event_openssl.c:1986)
==22033== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22033== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==22033== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22033== by 0x8065F7E: main (nginx.c:382)
==22033== If you believe this happened as a result of a stack
==22033== overflow in your program's main thread (unlikely but
==22033== possible), you can try to increase the size of the
==22033== main thread stack using the --main-stacksize= flag.
==22033== The main thread stack size used in this run was 8388608.

ctx.t TEST 4: ngx.ctx in ssl_certificate_by_lua (share objects) - status code ok got: ''
expected: '200'
ctx.t TEST 4: ngx.ctx in ssl_certificate_by_lua (share objects) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "received: 1\x{0a}received: 2\x{0a}"
length: 24
strings begin to differ at char 1 (line 1 column 1)
ctx.t TEST 4: ngx.ctx in ssl_certificate_by_lua (share objects) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ctx.t TEST 4: ngx.ctx in ssl_certificate_by_lua (share objects) - status code ok got: ''
expected: '200'
ctx.t TEST 4: ngx.ctx in ssl_certificate_by_lua (share objects) - response_body - response is expected (repeated req 1, req 0) got: ""
length: 0
expected: "received: 1\x{0a}received: 2\x{0a}"
length: 24
strings begin to differ at char 1 (line 1 column 1)
ctx.t TEST 10: ngx.ctx in ssl* and other phases - Can't connect to 127.0.0.1:1984: Connection refused ==22035== Invalid read of size 4
==22035== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==22035== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==22035== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22035== by 0x8153533: ngx_http_lua_socket_tcp_receive_helper (ngx_http_lua_socket_tcp.c:2111)
==22035== by 0x8153C80: ngx_http_lua_socket_tcp_receive (ngx_http_lua_socket_tcp.c:2354)
==22035== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22035== by 0x407FA29: lua_resume (lj_api.c:1296)
==22035== by 0x8141294: ngx_http_lua_run_thread (ngx_http_lua_util.c:1164)
==22035== by 0x814D573: ngx_http_lua_socket_tcp_resume_helper (ngx_http_lua_socket_tcp.c:6000)
==22035== by 0x814D651: ngx_http_lua_socket_tcp_conn_resume (ngx_http_lua_socket_tcp.c:5906)
==22035== by 0x814524C: ngx_http_lua_content_wev_handler (ngx_http_lua_contentby.c:152)
==22035== by 0x814B398: ngx_http_lua_socket_handle_conn_success (ngx_http_lua_socket_tcp.c:3460)
==22035== by 0x814F62F: ngx_http_lua_ssl_handshake_handler (ngx_http_lua_socket_tcp.c:1901)
==22035== by 0x8095D20: ngx_ssl_handshake_handler (ngx_event_openssl.c:1986)
==22035== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22035== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==22035== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22035== by 0x8065F7E: main (nginx.c:382)
==22035== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==22035==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_tcp_receive_helper
fun:ngx_http_lua_socket_tcp_receive
fun:lj_BC_FUNCC
fun:lua_resume
fun:ngx_http_lua_run_thread
fun:ngx_http_lua_socket_tcp_resume_helper
fun:ngx_http_lua_socket_tcp_conn_resume
fun:ngx_http_lua_content_wev_handler
fun:ngx_http_lua_socket_handle_conn_success
fun:ngx_http_lua_ssl_handshake_handler
fun:ngx_ssl_handshake_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
ctx.t TEST 10: ngx.ctx in ssl* and other phases - Can't connect to 127.0.0.1:1984: Connection refused ==22035==
==22035== Process terminating with default action of signal 11 (SIGSEGV)
==22035== Access not within mapped region at address 0x0
==22035== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==22035== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==22035== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==22035== by 0x8153533: ngx_http_lua_socket_tcp_receive_helper (ngx_http_lua_socket_tcp.c:2111)
==22035== by 0x8153C80: ngx_http_lua_socket_tcp_receive (ngx_http_lua_socket_tcp.c:2354)
==22035== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==22035== by 0x407FA29: lua_resume (lj_api.c:1296)
==22035== by 0x8141294: ngx_http_lua_run_thread (ngx_http_lua_util.c:1164)
==22035== by 0x814D573: ngx_http_lua_socket_tcp_resume_helper (ngx_http_lua_socket_tcp.c:6000)
==22035== by 0x814D651: ngx_http_lua_socket_tcp_conn_resume (ngx_http_lua_socket_tcp.c:5906)
==22035== by 0x814524C: ngx_http_lua_content_wev_handler (ngx_http_lua_contentby.c:152)
==22035== by 0x814B398: ngx_http_lua_socket_handle_conn_success (ngx_http_lua_socket_tcp.c:3460)
==22035== by 0x814F62F: ngx_http_lua_ssl_handshake_handler (ngx_http_lua_socket_tcp.c:1901)
==22035== by 0x8095D20: ngx_ssl_handshake_handler (ngx_event_openssl.c:1986)
==22035== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==22035== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==22035== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==22035== by 0x8065F7E: main (nginx.c:382)
==22035== If you believe this happened as a result of a stack
==22035== overflow in your program's main thread (unlikely but
==22035== possible), you can try to increase the size of the
==22035== main thread stack using the --main-stacksize= flag.
==22035== The main thread stack size used in this run was 8388608.

ctx.t TEST 10: ngx.ctx in ssl* and other phases - status code ok got: ''
expected: '200'
ctx.t TEST 10: ngx.ctx in ssl* and other phases - grep_error_log_out (req 0) got: ""
length: 0
expected: "lua release ngx.ctx at ref 2\x{0a}received: 102\x{0a}lua rel"...
length: 115
strings begin to differ at char 1 (line 1 column 1)
ctx.t TEST 10: ngx.ctx in ssl* and other phases - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ctx.t TEST 10: ngx.ctx in ssl* and other phases - status code ok got: ''
expected: '200'
ctx.t TEST 10: ngx.ctx in ssl* and other phases - grep_error_log_out (req 1) got: ""
length: 0
expected: "lua release ngx.ctx at ref 2\x{0a}received: 102\x{0a}lua rel"...
length: 230
strings begin to differ at char 1 (line 1 column 1)
pipe-stderr.t TEST 13: read stderr, mix read pattern and stdout/stderr - response_body - response is expected (repeated req 1, req 0) @@ -1,9 +1,8 @@
reading any
world
-more
+moreda
reading 3
-dat
+ta
+
reading line
-a
+closed
-reading all
-data
'
pipe-stderr.t TEST 23: read stderr, aborted by uthread kill, with graceful shutdown - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
-stdout: ok
+stdout err: timeout
stderr err: closed
'
pipe-stderr.t TEST 12: read stderr, without yield, pattern is read any - response_body - response is expected (repeated req 1, req 0) got: 'hello
'
expected: 'helloworld
'
pipe-stdin.t TEST 11: write process, aborted by uthread kill, with graceful shutdown - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,7 @@
-stdout: ok
+stdout err: timeout
-stderr err: closed
+stderr: 2020/10/27 03:59:00 [error] 22545\#0: *2 lua entry thread aborted: runtime error: init_worker_by_lua:14: API disabled in the context of ngx.timer
+stack traceback:
+coroutine 0:
+ [C]: in function 'say'
+ init_worker_by_lua:14: in function <init_worker_by_lua:2>, context: ngx.timer
+
'
pipe-stdin.t TEST 11: write process, aborted by uthread kill, with graceful shutdown - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,7 @@
-stdout: ok
+stdout err: timeout
-stderr err: closed
+stderr: 2020/10/27 03:59:01 [error] 22548\#0: *2 lua entry thread aborted: runtime error: init_worker_by_lua:14: API disabled in the context of ngx.timer
+stack traceback:
+coroutine 0:
+ [C]: in function 'say'
+ init_worker_by_lua:14: in function <init_worker_by_lua:2>, context: ngx.timer
+
'
pipe-stdout.t TEST 16: read process, without yield, pattern is read any - response_body - response is expected (repeated req 1, req 0) got: 'hello
'
expected: 'helloworld
'
pipe-stdout.t TEST 33: read process, aborted by uthread kill, with graceful shutdown - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
-stdout: ok
+stdout err: timeout
stderr err: closed
'
pipe-stdout.t TEST 33: read process, aborted by uthread kill, with graceful shutdown - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
-stdout: ok
+stdout err: timeout
-stderr err: closed
+stderr err: timeout
'
pipe.t TEST 44: wait process, aborted by uthread kill, with graceful shutdown - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
-stdout: ok
+stdout err: timeout
stderr err: closed
'
re-match.t TEST 1: matched, no submatch, no jit compile, no regex cache - pattern "(?^:\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\])" should match a line in error.log (req 0)
re-sub.t TEST 5: replace template + submatches (exceeding buffers) - status code ok got: ''
expected: '200'
re-sub.t TEST 5: replace template + submatches (exceeding buffers) - status code ok got: ''
expected: '200'
semaphore.t ERROR: client socket timed out - TEST 35: basic semaphore_mm free insert tail '
semaphore.t TEST 35: basic semaphore_mm free insert tail - status code ok got: ''
expected: '200'
semaphore.t TEST 35: basic semaphore_mm free insert tail - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
semaphore.t TEST 35: basic semaphore_mm free insert tail - pattern "add to free queue tail" should match a line in error.log (req 0)
semaphore.t ERROR: client socket timed out - TEST 36: basic semaphore_mm free insert head '
semaphore.t TEST 36: basic semaphore_mm free insert head - status code ok got: ''
expected: '200'
semaphore.t TEST 36: basic semaphore_mm free insert head - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
semaphore.t TEST 36: basic semaphore_mm free insert head - pattern "add to free queue head" should match a line in error.log (req 0)
shared.t TEST 12: shared.expire updates ttl of key with non-default ttl - response_body - response is expected (repeated req 0, req 0) got: 'after 0.2s: nil
after 0.4s: nil
'
expected: 'after 0.2s: true
after 0.4s: nil
'
shdict.t TEST 48: exptime uses long type to avoid overflow in expire() + ttl() - response_body - response is expected (repeated req 0, req 0) got: 'ttl: 0
'
expected: 'ttl: 2147483648
'
shdict.t TEST 48: exptime uses long type to avoid overflow in expire() + ttl() - response_body - response is expected (repeated req 1, req 0) got: 'ttl: 0
'
expected: 'ttl: 2147483648
'
shdict.t TEST 47: exptime uses long type to avoid overflow in set() + ttl() - response_body - response is expected (repeated req 0, req 0) got: 'ttl: 0
'
expected: 'ttl: 2147483648
'
shdict.t TEST 47: exptime uses long type to avoid overflow in set() + ttl() - response_body - response is expected (repeated req 1, req 0) got: 'ttl: 0
'
expected: 'ttl: 2147483648
'
shdict.t TEST 49: init_ttl uses long type to avoid overflow in incr() + ttl() - response_body - response is expected (repeated req 0, req 0) got: 'ttl: 0
'
expected: 'ttl: 2147483648
'
shdict.t TEST 49: init_ttl uses long type to avoid overflow in incr() + ttl() - response_body - response is expected (repeated req 1, req 0) got: 'ttl: 0
'
expected: 'ttl: 2147483648
'
ssl-session-store.t TEST 3: store the session via timer to memcached - pattern "(?^s:received memc reply: STORED)" should match a line in error.log (req 0)
ssl-session-store.t TEST 3: store the session via timer to memcached - pattern "(?^s:received memc reply: STORED)" should match a line in error.log (req 1)
ssl.t TEST 16: parse PEM cert and key to cdata - Can't connect to 127.0.0.1:1984: Connection refused ==23623== Invalid read of size 4
==23623== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23623== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23623== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23623== by 0x8153533: ngx_http_lua_socket_tcp_receive_helper (ngx_http_lua_socket_tcp.c:2111)
==23623== by 0x8153C80: ngx_http_lua_socket_tcp_receive (ngx_http_lua_socket_tcp.c:2354)
==23623== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==23623== by 0x407FA29: lua_resume (lj_api.c:1296)
==23623== by 0x8141294: ngx_http_lua_run_thread (ngx_http_lua_util.c:1164)
==23623== by 0x814D573: ngx_http_lua_socket_tcp_resume_helper (ngx_http_lua_socket_tcp.c:6000)
==23623== by 0x814D651: ngx_http_lua_socket_tcp_conn_resume (ngx_http_lua_socket_tcp.c:5906)
==23623== by 0x814524C: ngx_http_lua_content_wev_handler (ngx_http_lua_contentby.c:152)
==23623== by 0x814B398: ngx_http_lua_socket_handle_conn_success (ngx_http_lua_socket_tcp.c:3460)
==23623== by 0x814F62F: ngx_http_lua_ssl_handshake_handler (ngx_http_lua_socket_tcp.c:1901)
==23623== by 0x8095D20: ngx_ssl_handshake_handler (ngx_event_openssl.c:1986)
==23623== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23623== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23623== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23623== by 0x8065F7E: main (nginx.c:382)
==23623== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23623==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_tcp_receive_helper
fun:ngx_http_lua_socket_tcp_receive
fun:lj_BC_FUNCC
fun:lua_resume
fun:ngx_http_lua_run_thread
fun:ngx_http_lua_socket_tcp_resume_helper
fun:ngx_http_lua_socket_tcp_conn_resume
fun:ngx_http_lua_content_wev_handler
fun:ngx_http_lua_socket_handle_conn_success
fun:ngx_http_lua_ssl_handshake_handler
fun:ngx_ssl_handshake_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
ssl.t TEST 16: parse PEM cert and key to cdata - Can't connect to 127.0.0.1:1984: Connection refused ==23623==
==23623== Process terminating with default action of signal 11 (SIGSEGV)
==23623== Access not within mapped region at address 0x0
==23623== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23623== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23623== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23623== by 0x8153533: ngx_http_lua_socket_tcp_receive_helper (ngx_http_lua_socket_tcp.c:2111)
==23623== by 0x8153C80: ngx_http_lua_socket_tcp_receive (ngx_http_lua_socket_tcp.c:2354)
==23623== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==23623== by 0x407FA29: lua_resume (lj_api.c:1296)
==23623== by 0x8141294: ngx_http_lua_run_thread (ngx_http_lua_util.c:1164)
==23623== by 0x814D573: ngx_http_lua_socket_tcp_resume_helper (ngx_http_lua_socket_tcp.c:6000)
==23623== by 0x814D651: ngx_http_lua_socket_tcp_conn_resume (ngx_http_lua_socket_tcp.c:5906)
==23623== by 0x814524C: ngx_http_lua_content_wev_handler (ngx_http_lua_contentby.c:152)
==23623== by 0x814B398: ngx_http_lua_socket_handle_conn_success (ngx_http_lua_socket_tcp.c:3460)
==23623== by 0x814F62F: ngx_http_lua_ssl_handshake_handler (ngx_http_lua_socket_tcp.c:1901)
==23623== by 0x8095D20: ngx_ssl_handshake_handler (ngx_event_openssl.c:1986)
==23623== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23623== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23623== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23623== by 0x8065F7E: main (nginx.c:382)
==23623== If you believe this happened as a result of a stack
==23623== overflow in your program's main thread (unlikely but
==23623== possible), you can try to increase the size of the
==23623== main thread stack using the --main-stacksize= flag.
==23623== The main thread stack size used in this run was 8388608.

ssl.t TEST 16: parse PEM cert and key to cdata - status code ok got: ''
expected: '200'
ssl.t TEST 16: parse PEM cert and key to cdata - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 16: parse PEM cert and key to cdata - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ssl.t TEST 16: parse PEM cert and key to cdata - status code ok got: ''
expected: '200'
ssl.t TEST 16: parse PEM cert and key to cdata - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 16: parse PEM cert and key to cdata - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1)
ssl.t TEST 8: set DER cert chain - Can't connect to 127.0.0.1:1984: Connection refused ==23628== Invalid read of size 4
==23628== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23628== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23628== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23628== by 0x8153533: ngx_http_lua_socket_tcp_receive_helper (ngx_http_lua_socket_tcp.c:2111)
==23628== by 0x8153C80: ngx_http_lua_socket_tcp_receive (ngx_http_lua_socket_tcp.c:2354)
==23628== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==23628== by 0x407FA29: lua_resume (lj_api.c:1296)
==23628== by 0x8141294: ngx_http_lua_run_thread (ngx_http_lua_util.c:1164)
==23628== by 0x814D573: ngx_http_lua_socket_tcp_resume_helper (ngx_http_lua_socket_tcp.c:6000)
==23628== by 0x814D651: ngx_http_lua_socket_tcp_conn_resume (ngx_http_lua_socket_tcp.c:5906)
==23628== by 0x814524C: ngx_http_lua_content_wev_handler (ngx_http_lua_contentby.c:152)
==23628== by 0x814B398: ngx_http_lua_socket_handle_conn_success (ngx_http_lua_socket_tcp.c:3460)
==23628== by 0x814F62F: ngx_http_lua_ssl_handshake_handler (ngx_http_lua_socket_tcp.c:1901)
==23628== by 0x8095D20: ngx_ssl_handshake_handler (ngx_event_openssl.c:1986)
==23628== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23628== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23628== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23628== by 0x8065F7E: main (nginx.c:382)
==23628== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23628==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_tcp_receive_helper
fun:ngx_http_lua_socket_tcp_receive
fun:lj_BC_FUNCC
fun:lua_resume
fun:ngx_http_lua_run_thread
fun:ngx_http_lua_socket_tcp_resume_helper
fun:ngx_http_lua_socket_tcp_conn_resume
fun:ngx_http_lua_content_wev_handler
fun:ngx_http_lua_socket_handle_conn_success
fun:ngx_http_lua_ssl_handshake_handler
fun:ngx_ssl_handshake_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
ssl.t TEST 8: set DER cert chain - Can't connect to 127.0.0.1:1984: Connection refused ==23628==
==23628== Process terminating with default action of signal 11 (SIGSEGV)
==23628== Access not within mapped region at address 0x0
==23628== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23628== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23628== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23628== by 0x8153533: ngx_http_lua_socket_tcp_receive_helper (ngx_http_lua_socket_tcp.c:2111)
==23628== by 0x8153C80: ngx_http_lua_socket_tcp_receive (ngx_http_lua_socket_tcp.c:2354)
==23628== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==23628== by 0x407FA29: lua_resume (lj_api.c:1296)
==23628== by 0x8141294: ngx_http_lua_run_thread (ngx_http_lua_util.c:1164)
==23628== by 0x814D573: ngx_http_lua_socket_tcp_resume_helper (ngx_http_lua_socket_tcp.c:6000)
==23628== by 0x814D651: ngx_http_lua_socket_tcp_conn_resume (ngx_http_lua_socket_tcp.c:5906)
==23628== by 0x814524C: ngx_http_lua_content_wev_handler (ngx_http_lua_contentby.c:152)
==23628== by 0x814B398: ngx_http_lua_socket_handle_conn_success (ngx_http_lua_socket_tcp.c:3460)
==23628== by 0x814F62F: ngx_http_lua_ssl_handshake_handler (ngx_http_lua_socket_tcp.c:1901)
==23628== by 0x8095D20: ngx_ssl_handshake_handler (ngx_event_openssl.c:1986)
==23628== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23628== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23628== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23628== by 0x8065F7E: main (nginx.c:382)
==23628== If you believe this happened as a result of a stack
==23628== overflow in your program's main thread (unlikely but
==23628== possible), you can try to increase the size of the
==23628== main thread stack using the --main-stacksize= flag.
==23628== The main thread stack size used in this run was 8388608.

ssl.t TEST 8: set DER cert chain - status code ok got: ''
expected: '200'
ssl.t TEST 8: set DER cert chain - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 8: set DER cert chain - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ssl.t TEST 8: set DER cert chain - status code ok got: ''
expected: '200'
ssl.t TEST 8: set DER cert chain - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 8: set DER cert chain - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1)
ssl.t TEST 27: read server port via ssl.server_port() with unix domain socket - Can't connect to 127.0.0.1:1984: Connection refused ==23630== Invalid read of size 4
==23630== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23630== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23630== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23630== by 0x8153533: ngx_http_lua_socket_tcp_receive_helper (ngx_http_lua_socket_tcp.c:2111)
==23630== by 0x8153C80: ngx_http_lua_socket_tcp_receive (ngx_http_lua_socket_tcp.c:2354)
==23630== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==23630== by 0x407FA29: lua_resume (lj_api.c:1296)
==23630== by 0x8141294: ngx_http_lua_run_thread (ngx_http_lua_util.c:1164)
==23630== by 0x814D573: ngx_http_lua_socket_tcp_resume_helper (ngx_http_lua_socket_tcp.c:6000)
==23630== by 0x814D651: ngx_http_lua_socket_tcp_conn_resume (ngx_http_lua_socket_tcp.c:5906)
==23630== by 0x814524C: ngx_http_lua_content_wev_handler (ngx_http_lua_contentby.c:152)
==23630== by 0x814B398: ngx_http_lua_socket_handle_conn_success (ngx_http_lua_socket_tcp.c:3460)
==23630== by 0x814F62F: ngx_http_lua_ssl_handshake_handler (ngx_http_lua_socket_tcp.c:1901)
==23630== by 0x8095D20: ngx_ssl_handshake_handler (ngx_event_openssl.c:1986)
==23630== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23630== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23630== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23630== by 0x8065F7E: main (nginx.c:382)
==23630== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23630==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_tcp_receive_helper
fun:ngx_http_lua_socket_tcp_receive
fun:lj_BC_FUNCC
fun:lua_resume
fun:ngx_http_lua_run_thread
fun:ngx_http_lua_socket_tcp_resume_helper
fun:ngx_http_lua_socket_tcp_conn_resume
fun:ngx_http_lua_content_wev_handler
fun:ngx_http_lua_socket_handle_conn_success
fun:ngx_http_lua_ssl_handshake_handler
fun:ngx_ssl_handshake_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
ssl.t TEST 27: read server port via ssl.server_port() with unix domain socket - Can't connect to 127.0.0.1:1984: Connection refused ==23630==
==23630== Process terminating with default action of signal 11 (SIGSEGV)
==23630== Access not within mapped region at address 0x0
==23630== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23630== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23630== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23630== by 0x8153533: ngx_http_lua_socket_tcp_receive_helper (ngx_http_lua_socket_tcp.c:2111)
==23630== by 0x8153C80: ngx_http_lua_socket_tcp_receive (ngx_http_lua_socket_tcp.c:2354)
==23630== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==23630== by 0x407FA29: lua_resume (lj_api.c:1296)
==23630== by 0x8141294: ngx_http_lua_run_thread (ngx_http_lua_util.c:1164)
==23630== by 0x814D573: ngx_http_lua_socket_tcp_resume_helper (ngx_http_lua_socket_tcp.c:6000)
==23630== by 0x814D651: ngx_http_lua_socket_tcp_conn_resume (ngx_http_lua_socket_tcp.c:5906)
==23630== by 0x814524C: ngx_http_lua_content_wev_handler (ngx_http_lua_contentby.c:152)
==23630== by 0x814B398: ngx_http_lua_socket_handle_conn_success (ngx_http_lua_socket_tcp.c:3460)
==23630== by 0x814F62F: ngx_http_lua_ssl_handshake_handler (ngx_http_lua_socket_tcp.c:1901)
==23630== by 0x8095D20: ngx_ssl_handshake_handler (ngx_event_openssl.c:1986)
==23630== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23630== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23630== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23630== by 0x8065F7E: main (nginx.c:382)
==23630== If you believe this happened as a result of a stack
==23630== overflow in your program's main thread (unlikely but
==23630== possible), you can try to increase the size of the
==23630== main thread stack using the --main-stacksize= flag.
==23630== The main thread stack size used in this run was 8388608.

ssl.t TEST 27: read server port via ssl.server_port() with unix domain socket - status code ok got: ''
expected: '200'
ssl.t TEST 27: read server port via ssl.server_port() with unix domain socket - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 27: read server port via ssl.server_port() with unix domain socket - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ssl.t TEST 27: read server port via ssl.server_port() with unix domain socket - status code ok got: ''
expected: '200'
ssl.t TEST 27: read server port via ssl.server_port() with unix domain socket - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 27: read server port via ssl.server_port() with unix domain socket - pattern "read server port from Lua: nilunix domain has no port" should match a line in error.log (req 1)
ssl.t TEST 3: read SNI name via ssl.server_name() - Can't connect to 127.0.0.1:1984: Connection refused ==23635== Invalid read of size 4
==23635== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23635== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23635== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23635== by 0x8153533: ngx_http_lua_socket_tcp_receive_helper (ngx_http_lua_socket_tcp.c:2111)
==23635== by 0x8153C80: ngx_http_lua_socket_tcp_receive (ngx_http_lua_socket_tcp.c:2354)
==23635== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==23635== by 0x407FA29: lua_resume (lj_api.c:1296)
==23635== by 0x8141294: ngx_http_lua_run_thread (ngx_http_lua_util.c:1164)
==23635== by 0x814D573: ngx_http_lua_socket_tcp_resume_helper (ngx_http_lua_socket_tcp.c:6000)
==23635== by 0x814D651: ngx_http_lua_socket_tcp_conn_resume (ngx_http_lua_socket_tcp.c:5906)
==23635== by 0x814524C: ngx_http_lua_content_wev_handler (ngx_http_lua_contentby.c:152)
==23635== by 0x814B398: ngx_http_lua_socket_handle_conn_success (ngx_http_lua_socket_tcp.c:3460)
==23635== by 0x814F62F: ngx_http_lua_ssl_handshake_handler (ngx_http_lua_socket_tcp.c:1901)
==23635== by 0x8095D20: ngx_ssl_handshake_handler (ngx_event_openssl.c:1986)
==23635== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23635== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23635== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23635== by 0x8065F7E: main (nginx.c:382)
==23635== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23635==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_tcp_receive_helper
fun:ngx_http_lua_socket_tcp_receive
fun:lj_BC_FUNCC
fun:lua_resume
fun:ngx_http_lua_run_thread
fun:ngx_http_lua_socket_tcp_resume_helper
fun:ngx_http_lua_socket_tcp_conn_resume
fun:ngx_http_lua_content_wev_handler
fun:ngx_http_lua_socket_handle_conn_success
fun:ngx_http_lua_ssl_handshake_handler
fun:ngx_ssl_handshake_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
ssl.t TEST 3: read SNI name via ssl.server_name() - Can't connect to 127.0.0.1:1984: Connection refused ==23635==
==23635== Process terminating with default action of signal 11 (SIGSEGV)
==23635== Access not within mapped region at address 0x0
==23635== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23635== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23635== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23635== by 0x8153533: ngx_http_lua_socket_tcp_receive_helper (ngx_http_lua_socket_tcp.c:2111)
==23635== by 0x8153C80: ngx_http_lua_socket_tcp_receive (ngx_http_lua_socket_tcp.c:2354)
==23635== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==23635== by 0x407FA29: lua_resume (lj_api.c:1296)
==23635== by 0x8141294: ngx_http_lua_run_thread (ngx_http_lua_util.c:1164)
==23635== by 0x814D573: ngx_http_lua_socket_tcp_resume_helper (ngx_http_lua_socket_tcp.c:6000)
==23635== by 0x814D651: ngx_http_lua_socket_tcp_conn_resume (ngx_http_lua_socket_tcp.c:5906)
==23635== by 0x814524C: ngx_http_lua_content_wev_handler (ngx_http_lua_contentby.c:152)
==23635== by 0x814B398: ngx_http_lua_socket_handle_conn_success (ngx_http_lua_socket_tcp.c:3460)
==23635== by 0x814F62F: ngx_http_lua_ssl_handshake_handler (ngx_http_lua_socket_tcp.c:1901)
==23635== by 0x8095D20: ngx_ssl_handshake_handler (ngx_event_openssl.c:1986)
==23635== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23635== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23635== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23635== by 0x8065F7E: main (nginx.c:382)
==23635== If you believe this happened as a result of a stack
==23635== overflow in your program's main thread (unlikely but
==23635== possible), you can try to increase the size of the
==23635== main thread stack using the --main-stacksize= flag.
==23635== The main thread stack size used in this run was 8388608.

ssl.t TEST 3: read SNI name via ssl.server_name() - status code ok got: ''
expected: '200'
ssl.t TEST 3: read SNI name via ssl.server_name() - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 3: read SNI name via ssl.server_name() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ssl.t TEST 3: read SNI name via ssl.server_name() - status code ok got: ''
expected: '200'
ssl.t TEST 3: read SNI name via ssl.server_name() - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 3: read SNI name via ssl.server_name() - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1)
ssl.t TEST 3: read SNI name via ssl.server_name() - pattern "read SNI name from Lua: test.com" should match a line in error.log (req 1)
ssl.t TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - Can't connect to 127.0.0.1:1984: Connection refused ==23637== Invalid read of size 4
==23637== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23637== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23637== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23637== by 0x8153533: ngx_http_lua_socket_tcp_receive_helper (ngx_http_lua_socket_tcp.c:2111)
==23637== by 0x8153C80: ngx_http_lua_socket_tcp_receive (ngx_http_lua_socket_tcp.c:2354)
==23637== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==23637== by 0x407FA29: lua_resume (lj_api.c:1296)
==23637== by 0x8141294: ngx_http_lua_run_thread (ngx_http_lua_util.c:1164)
==23637== by 0x814D573: ngx_http_lua_socket_tcp_resume_helper (ngx_http_lua_socket_tcp.c:6000)
==23637== by 0x814D651: ngx_http_lua_socket_tcp_conn_resume (ngx_http_lua_socket_tcp.c:5906)
==23637== by 0x814524C: ngx_http_lua_content_wev_handler (ngx_http_lua_contentby.c:152)
==23637== by 0x814B398: ngx_http_lua_socket_handle_conn_success (ngx_http_lua_socket_tcp.c:3460)
==23637== by 0x814F62F: ngx_http_lua_ssl_handshake_handler (ngx_http_lua_socket_tcp.c:1901)
==23637== by 0x8095D20: ngx_ssl_handshake_handler (ngx_event_openssl.c:1986)
==23637== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23637== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23637== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23637== by 0x8065F7E: main (nginx.c:382)
==23637== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23637==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_tcp_receive_helper
fun:ngx_http_lua_socket_tcp_receive
fun:lj_BC_FUNCC
fun:lua_resume
fun:ngx_http_lua_run_thread
fun:ngx_http_lua_socket_tcp_resume_helper
fun:ngx_http_lua_socket_tcp_conn_resume
fun:ngx_http_lua_content_wev_handler
fun:ngx_http_lua_socket_handle_conn_success
fun:ngx_http_lua_ssl_handshake_handler
fun:ngx_ssl_handshake_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
ssl.t TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - Can't connect to 127.0.0.1:1984: Connection refused ==23637==
==23637== Process terminating with default action of signal 11 (SIGSEGV)
==23637== Access not within mapped region at address 0x0
==23637== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23637== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23637== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23637== by 0x8153533: ngx_http_lua_socket_tcp_receive_helper (ngx_http_lua_socket_tcp.c:2111)
==23637== by 0x8153C80: ngx_http_lua_socket_tcp_receive (ngx_http_lua_socket_tcp.c:2354)
==23637== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==23637== by 0x407FA29: lua_resume (lj_api.c:1296)
==23637== by 0x8141294: ngx_http_lua_run_thread (ngx_http_lua_util.c:1164)
==23637== by 0x814D573: ngx_http_lua_socket_tcp_resume_helper (ngx_http_lua_socket_tcp.c:6000)
==23637== by 0x814D651: ngx_http_lua_socket_tcp_conn_resume (ngx_http_lua_socket_tcp.c:5906)
==23637== by 0x814524C: ngx_http_lua_content_wev_handler (ngx_http_lua_contentby.c:152)
==23637== by 0x814B398: ngx_http_lua_socket_handle_conn_success (ngx_http_lua_socket_tcp.c:3460)
==23637== by 0x814F62F: ngx_http_lua_ssl_handshake_handler (ngx_http_lua_socket_tcp.c:1901)
==23637== by 0x8095D20: ngx_ssl_handshake_handler (ngx_event_openssl.c:1986)
==23637== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23637== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23637== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23637== by 0x8065F7E: main (nginx.c:382)
==23637== If you believe this happened as a result of a stack
==23637== overflow in your program's main thread (unlikely but
==23637== possible), you can try to increase the size of the
==23637== main thread stack using the --main-stacksize= flag.
==23637== The main thread stack size used in this run was 8388608.

ssl.t TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - status code ok got: ''
expected: '200'
ssl.t TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ssl.t TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - status code ok got: ''
expected: '200'
ssl.t TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1)
ssl.t TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - pattern "Using IPv4 address: 127.0.0.1" should match a line in error.log (req 1)
ssl.t TEST 2: set DER cert and private key - Can't connect to 127.0.0.1:1984: Connection refused ==23639== Invalid read of size 4
==23639== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23639== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23639== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23639== by 0x8153533: ngx_http_lua_socket_tcp_receive_helper (ngx_http_lua_socket_tcp.c:2111)
==23639== by 0x8153C80: ngx_http_lua_socket_tcp_receive (ngx_http_lua_socket_tcp.c:2354)
==23639== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==23639== by 0x407FA29: lua_resume (lj_api.c:1296)
==23639== by 0x8141294: ngx_http_lua_run_thread (ngx_http_lua_util.c:1164)
==23639== by 0x814D573: ngx_http_lua_socket_tcp_resume_helper (ngx_http_lua_socket_tcp.c:6000)
==23639== by 0x814D651: ngx_http_lua_socket_tcp_conn_resume (ngx_http_lua_socket_tcp.c:5906)
==23639== by 0x814524C: ngx_http_lua_content_wev_handler (ngx_http_lua_contentby.c:152)
==23639== by 0x814B398: ngx_http_lua_socket_handle_conn_success (ngx_http_lua_socket_tcp.c:3460)
==23639== by 0x814F62F: ngx_http_lua_ssl_handshake_handler (ngx_http_lua_socket_tcp.c:1901)
==23639== by 0x8095D20: ngx_ssl_handshake_handler (ngx_event_openssl.c:1986)
==23639== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23639== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23639== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23639== by 0x8065F7E: main (nginx.c:382)
==23639== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23639==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_tcp_receive_helper
fun:ngx_http_lua_socket_tcp_receive
fun:lj_BC_FUNCC
fun:lua_resume
fun:ngx_http_lua_run_thread
fun:ngx_http_lua_socket_tcp_resume_helper
fun:ngx_http_lua_socket_tcp_conn_resume
fun:ngx_http_lua_content_wev_handler
fun:ngx_http_lua_socket_handle_conn_success
fun:ngx_http_lua_ssl_handshake_handler
fun:ngx_ssl_handshake_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
ssl.t TEST 2: set DER cert and private key - Can't connect to 127.0.0.1:1984: Connection refused ==23639==
==23639== Process terminating with default action of signal 11 (SIGSEGV)
==23639== Access not within mapped region at address 0x0
==23639== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23639== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23639== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23639== by 0x8153533: ngx_http_lua_socket_tcp_receive_helper (ngx_http_lua_socket_tcp.c:2111)
==23639== by 0x8153C80: ngx_http_lua_socket_tcp_receive (ngx_http_lua_socket_tcp.c:2354)
==23639== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==23639== by 0x407FA29: lua_resume (lj_api.c:1296)
==23639== by 0x8141294: ngx_http_lua_run_thread (ngx_http_lua_util.c:1164)
==23639== by 0x814D573: ngx_http_lua_socket_tcp_resume_helper (ngx_http_lua_socket_tcp.c:6000)
==23639== by 0x814D651: ngx_http_lua_socket_tcp_conn_resume (ngx_http_lua_socket_tcp.c:5906)
==23639== by 0x814524C: ngx_http_lua_content_wev_handler (ngx_http_lua_contentby.c:152)
==23639== by 0x814B398: ngx_http_lua_socket_handle_conn_success (ngx_http_lua_socket_tcp.c:3460)
==23639== by 0x814F62F: ngx_http_lua_ssl_handshake_handler (ngx_http_lua_socket_tcp.c:1901)
==23639== by 0x8095D20: ngx_ssl_handshake_handler (ngx_event_openssl.c:1986)
==23639== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23639== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23639== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23639== by 0x8065F7E: main (nginx.c:382)
==23639== If you believe this happened as a result of a stack
==23639== overflow in your program's main thread (unlikely but
==23639== possible), you can try to increase the size of the
==23639== main thread stack using the --main-stacksize= flag.
==23639== The main thread stack size used in this run was 8388608.

ssl.t TEST 2: set DER cert and private key - status code ok got: ''
expected: '200'
ssl.t TEST 2: set DER cert and private key - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 2: set DER cert and private key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ssl.t TEST 2: set DER cert and private key - status code ok got: ''
expected: '200'
ssl.t TEST 2: set DER cert and private key - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 2: set DER cert and private key - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1)
ssl.t TEST 9: read PEM cert chain but set DER cert chain - Can't connect to 127.0.0.1:1984: Connection refused ==23643== Invalid read of size 4
==23643== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23643== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23643== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23643== by 0x8153533: ngx_http_lua_socket_tcp_receive_helper (ngx_http_lua_socket_tcp.c:2111)
==23643== by 0x8153C80: ngx_http_lua_socket_tcp_receive (ngx_http_lua_socket_tcp.c:2354)
==23643== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==23643== by 0x407FA29: lua_resume (lj_api.c:1296)
==23643== by 0x8141294: ngx_http_lua_run_thread (ngx_http_lua_util.c:1164)
==23643== by 0x814D573: ngx_http_lua_socket_tcp_resume_helper (ngx_http_lua_socket_tcp.c:6000)
==23643== by 0x814D651: ngx_http_lua_socket_tcp_conn_resume (ngx_http_lua_socket_tcp.c:5906)
==23643== by 0x814524C: ngx_http_lua_content_wev_handler (ngx_http_lua_contentby.c:152)
==23643== by 0x814B398: ngx_http_lua_socket_handle_conn_success (ngx_http_lua_socket_tcp.c:3460)
==23643== by 0x814F62F: ngx_http_lua_ssl_handshake_handler (ngx_http_lua_socket_tcp.c:1901)
==23643== by 0x8095D20: ngx_ssl_handshake_handler (ngx_event_openssl.c:1986)
==23643== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23643== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23643== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23643== by 0x8065F7E: main (nginx.c:382)
==23643== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23643==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_tcp_receive_helper
fun:ngx_http_lua_socket_tcp_receive
fun:lj_BC_FUNCC
fun:lua_resume
fun:ngx_http_lua_run_thread
fun:ngx_http_lua_socket_tcp_resume_helper
fun:ngx_http_lua_socket_tcp_conn_resume
fun:ngx_http_lua_content_wev_handler
fun:ngx_http_lua_socket_handle_conn_success
fun:ngx_http_lua_ssl_handshake_handler
fun:ngx_ssl_handshake_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
ssl.t TEST 9: read PEM cert chain but set DER cert chain - Can't connect to 127.0.0.1:1984: Connection refused ==23643==
==23643== Process terminating with default action of signal 11 (SIGSEGV)
==23643== Access not within mapped region at address 0x0
==23643== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23643== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23643== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23643== by 0x8153533: ngx_http_lua_socket_tcp_receive_helper (ngx_http_lua_socket_tcp.c:2111)
==23643== by 0x8153C80: ngx_http_lua_socket_tcp_receive (ngx_http_lua_socket_tcp.c:2354)
==23643== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==23643== by 0x407FA29: lua_resume (lj_api.c:1296)
==23643== by 0x8141294: ngx_http_lua_run_thread (ngx_http_lua_util.c:1164)
==23643== by 0x814D573: ngx_http_lua_socket_tcp_resume_helper (ngx_http_lua_socket_tcp.c:6000)
==23643== by 0x814D651: ngx_http_lua_socket_tcp_conn_resume (ngx_http_lua_socket_tcp.c:5906)
==23643== by 0x814524C: ngx_http_lua_content_wev_handler (ngx_http_lua_contentby.c:152)
==23643== by 0x814B398: ngx_http_lua_socket_handle_conn_success (ngx_http_lua_socket_tcp.c:3460)
==23643== by 0x814F62F: ngx_http_lua_ssl_handshake_handler (ngx_http_lua_socket_tcp.c:1901)
==23643== by 0x8095D20: ngx_ssl_handshake_handler (ngx_event_openssl.c:1986)
==23643== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23643== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23643== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23643== by 0x8065F7E: main (nginx.c:382)
==23643== If you believe this happened as a result of a stack
==23643== overflow in your program's main thread (unlikely but
==23643== possible), you can try to increase the size of the
==23643== main thread stack using the --main-stacksize= flag.
==23643== The main thread stack size used in this run was 8388608.

ssl.t TEST 9: read PEM cert chain but set DER cert chain - status code ok got: ''
expected: '200'
ssl.t TEST 9: read PEM cert chain but set DER cert chain - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 9: read PEM cert chain but set DER cert chain - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ssl.t TEST 9: read PEM cert chain but set DER cert chain - status code ok got: ''
expected: '200'
ssl.t TEST 9: read PEM cert chain but set DER cert chain - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 9: read PEM cert chain but set DER cert chain - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1)
ssl.t TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - Can't connect to 127.0.0.1:1984: Connection refused ==23648== Invalid read of size 4
==23648== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23648== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23648== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23648== by 0x8153533: ngx_http_lua_socket_tcp_receive_helper (ngx_http_lua_socket_tcp.c:2111)
==23648== by 0x8153C80: ngx_http_lua_socket_tcp_receive (ngx_http_lua_socket_tcp.c:2354)
==23648== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==23648== by 0x407FA29: lua_resume (lj_api.c:1296)
==23648== by 0x8141294: ngx_http_lua_run_thread (ngx_http_lua_util.c:1164)
==23648== by 0x814D573: ngx_http_lua_socket_tcp_resume_helper (ngx_http_lua_socket_tcp.c:6000)
==23648== by 0x814D651: ngx_http_lua_socket_tcp_conn_resume (ngx_http_lua_socket_tcp.c:5906)
==23648== by 0x814524C: ngx_http_lua_content_wev_handler (ngx_http_lua_contentby.c:152)
==23648== by 0x814B398: ngx_http_lua_socket_handle_conn_success (ngx_http_lua_socket_tcp.c:3460)
==23648== by 0x814F62F: ngx_http_lua_ssl_handshake_handler (ngx_http_lua_socket_tcp.c:1901)
==23648== by 0x8095D20: ngx_ssl_handshake_handler (ngx_event_openssl.c:1986)
==23648== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23648== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23648== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23648== by 0x8065F7E: main (nginx.c:382)
==23648== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23648==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_tcp_receive_helper
fun:ngx_http_lua_socket_tcp_receive
fun:lj_BC_FUNCC
fun:lua_resume
fun:ngx_http_lua_run_thread
fun:ngx_http_lua_socket_tcp_resume_helper
fun:ngx_http_lua_socket_tcp_conn_resume
fun:ngx_http_lua_content_wev_handler
fun:ngx_http_lua_socket_handle_conn_success
fun:ngx_http_lua_ssl_handshake_handler
fun:ngx_ssl_handshake_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
ssl.t TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - Can't connect to 127.0.0.1:1984: Connection refused ==23648==
==23648== Process terminating with default action of signal 11 (SIGSEGV)
==23648== Access not within mapped region at address 0x0
==23648== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23648== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23648== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23648== by 0x8153533: ngx_http_lua_socket_tcp_receive_helper (ngx_http_lua_socket_tcp.c:2111)
==23648== by 0x8153C80: ngx_http_lua_socket_tcp_receive (ngx_http_lua_socket_tcp.c:2354)
==23648== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==23648== by 0x407FA29: lua_resume (lj_api.c:1296)
==23648== by 0x8141294: ngx_http_lua_run_thread (ngx_http_lua_util.c:1164)
==23648== by 0x814D573: ngx_http_lua_socket_tcp_resume_helper (ngx_http_lua_socket_tcp.c:6000)
==23648== by 0x814D651: ngx_http_lua_socket_tcp_conn_resume (ngx_http_lua_socket_tcp.c:5906)
==23648== by 0x814524C: ngx_http_lua_content_wev_handler (ngx_http_lua_contentby.c:152)
==23648== by 0x814B398: ngx_http_lua_socket_handle_conn_success (ngx_http_lua_socket_tcp.c:3460)
==23648== by 0x814F62F: ngx_http_lua_ssl_handshake_handler (ngx_http_lua_socket_tcp.c:1901)
==23648== by 0x8095D20: ngx_ssl_handshake_handler (ngx_event_openssl.c:1986)
==23648== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23648== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23648== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23648== by 0x8065F7E: main (nginx.c:382)
==23648== If you believe this happened as a result of a stack
==23648== overflow in your program's main thread (unlikely but
==23648== possible), you can try to increase the size of the
==23648== main thread stack using the --main-stacksize= flag.
==23648== The main thread stack size used in this run was 8388608.

ssl.t TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - status code ok got: ''
expected: '200'
ssl.t TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ssl.t TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - status code ok got: ''
expected: '200'
ssl.t TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1)
ssl.t TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - pattern "Using IPv6 address: 0.0.0.1" should match a line in error.log (req 1)
ssl.t TEST 4: read SNI name via ssl.server_name() when no SNI name specified - Can't connect to 127.0.0.1:1984: Connection refused ==23652== Invalid read of size 4
==23652== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23652== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23652== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23652== by 0x8153533: ngx_http_lua_socket_tcp_receive_helper (ngx_http_lua_socket_tcp.c:2111)
==23652== by 0x8153C80: ngx_http_lua_socket_tcp_receive (ngx_http_lua_socket_tcp.c:2354)
==23652== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==23652== by 0x407FA29: lua_resume (lj_api.c:1296)
==23652== by 0x8141294: ngx_http_lua_run_thread (ngx_http_lua_util.c:1164)
==23652== by 0x814D573: ngx_http_lua_socket_tcp_resume_helper (ngx_http_lua_socket_tcp.c:6000)
==23652== by 0x814D651: ngx_http_lua_socket_tcp_conn_resume (ngx_http_lua_socket_tcp.c:5906)
==23652== by 0x814524C: ngx_http_lua_content_wev_handler (ngx_http_lua_contentby.c:152)
==23652== by 0x814B398: ngx_http_lua_socket_handle_conn_success (ngx_http_lua_socket_tcp.c:3460)
==23652== by 0x814F62F: ngx_http_lua_ssl_handshake_handler (ngx_http_lua_socket_tcp.c:1901)
==23652== by 0x8095D20: ngx_ssl_handshake_handler (ngx_event_openssl.c:1986)
==23652== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23652== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23652== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23652== by 0x8065F7E: main (nginx.c:382)
==23652== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23652==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_tcp_receive_helper
fun:ngx_http_lua_socket_tcp_receive
fun:lj_BC_FUNCC
fun:lua_resume
fun:ngx_http_lua_run_thread
fun:ngx_http_lua_socket_tcp_resume_helper
fun:ngx_http_lua_socket_tcp_conn_resume
fun:ngx_http_lua_content_wev_handler
fun:ngx_http_lua_socket_handle_conn_success
fun:ngx_http_lua_ssl_handshake_handler
fun:ngx_ssl_handshake_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
ssl.t TEST 4: read SNI name via ssl.server_name() when no SNI name specified - Can't connect to 127.0.0.1:1984: Connection refused ==23652==
==23652== Process terminating with default action of signal 11 (SIGSEGV)
==23652== Access not within mapped region at address 0x0
==23652== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23652== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23652== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23652== by 0x8153533: ngx_http_lua_socket_tcp_receive_helper (ngx_http_lua_socket_tcp.c:2111)
==23652== by 0x8153C80: ngx_http_lua_socket_tcp_receive (ngx_http_lua_socket_tcp.c:2354)
==23652== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==23652== by 0x407FA29: lua_resume (lj_api.c:1296)
==23652== by 0x8141294: ngx_http_lua_run_thread (ngx_http_lua_util.c:1164)
==23652== by 0x814D573: ngx_http_lua_socket_tcp_resume_helper (ngx_http_lua_socket_tcp.c:6000)
==23652== by 0x814D651: ngx_http_lua_socket_tcp_conn_resume (ngx_http_lua_socket_tcp.c:5906)
==23652== by 0x814524C: ngx_http_lua_content_wev_handler (ngx_http_lua_contentby.c:152)
==23652== by 0x814B398: ngx_http_lua_socket_handle_conn_success (ngx_http_lua_socket_tcp.c:3460)
==23652== by 0x814F62F: ngx_http_lua_ssl_handshake_handler (ngx_http_lua_socket_tcp.c:1901)
==23652== by 0x8095D20: ngx_ssl_handshake_handler (ngx_event_openssl.c:1986)
==23652== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23652== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23652== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23652== by 0x8065F7E: main (nginx.c:382)
==23652== If you believe this happened as a result of a stack
==23652== overflow in your program's main thread (unlikely but
==23652== possible), you can try to increase the size of the
==23652== main thread stack using the --main-stacksize= flag.
==23652== The main thread stack size used in this run was 8388608.

ssl.t TEST 4: read SNI name via ssl.server_name() when no SNI name specified - status code ok got: ''
expected: '200'
ssl.t TEST 4: read SNI name via ssl.server_name() when no SNI name specified - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 4: read SNI name via ssl.server_name() when no SNI name specified - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ssl.t TEST 4: read SNI name via ssl.server_name() when no SNI name specified - status code ok got: ''
expected: '200'
ssl.t TEST 4: read SNI name via ssl.server_name() when no SNI name specified - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 4: read SNI name via ssl.server_name() when no SNI name specified - pattern "read SNI name from Lua: nil, type: nil" should match a line in error.log (req 1)
ssl.t TEST 20: read client addr via ssl.raw_client_addr() - Can't connect to 127.0.0.1:1984: Connection refused ==23654== Invalid read of size 4
==23654== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23654== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23654== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23654== by 0x8153533: ngx_http_lua_socket_tcp_receive_helper (ngx_http_lua_socket_tcp.c:2111)
==23654== by 0x8153C80: ngx_http_lua_socket_tcp_receive (ngx_http_lua_socket_tcp.c:2354)
==23654== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==23654== by 0x407FA29: lua_resume (lj_api.c:1296)
==23654== by 0x8141294: ngx_http_lua_run_thread (ngx_http_lua_util.c:1164)
==23654== by 0x814D573: ngx_http_lua_socket_tcp_resume_helper (ngx_http_lua_socket_tcp.c:6000)
==23654== by 0x814D651: ngx_http_lua_socket_tcp_conn_resume (ngx_http_lua_socket_tcp.c:5906)
==23654== by 0x814524C: ngx_http_lua_content_wev_handler (ngx_http_lua_contentby.c:152)
==23654== by 0x814B398: ngx_http_lua_socket_handle_conn_success (ngx_http_lua_socket_tcp.c:3460)
==23654== by 0x814F62F: ngx_http_lua_ssl_handshake_handler (ngx_http_lua_socket_tcp.c:1901)
==23654== by 0x8095D20: ngx_ssl_handshake_handler (ngx_event_openssl.c:1986)
==23654== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23654== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23654== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23654== by 0x8065F7E: main (nginx.c:382)
==23654== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23654==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_tcp_receive_helper
fun:ngx_http_lua_socket_tcp_receive
fun:lj_BC_FUNCC
fun:lua_resume
fun:ngx_http_lua_run_thread
fun:ngx_http_lua_socket_tcp_resume_helper
fun:ngx_http_lua_socket_tcp_conn_resume
fun:ngx_http_lua_content_wev_handler
fun:ngx_http_lua_socket_handle_conn_success
fun:ngx_http_lua_ssl_handshake_handler
fun:ngx_ssl_handshake_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
ssl.t TEST 20: read client addr via ssl.raw_client_addr() - Can't connect to 127.0.0.1:1984: Connection refused ==23654==
==23654== Process terminating with default action of signal 11 (SIGSEGV)
==23654== Access not within mapped region at address 0x0
==23654== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23654== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23654== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23654== by 0x8153533: ngx_http_lua_socket_tcp_receive_helper (ngx_http_lua_socket_tcp.c:2111)
==23654== by 0x8153C80: ngx_http_lua_socket_tcp_receive (ngx_http_lua_socket_tcp.c:2354)
==23654== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==23654== by 0x407FA29: lua_resume (lj_api.c:1296)
==23654== by 0x8141294: ngx_http_lua_run_thread (ngx_http_lua_util.c:1164)
==23654== by 0x814D573: ngx_http_lua_socket_tcp_resume_helper (ngx_http_lua_socket_tcp.c:6000)
==23654== by 0x814D651: ngx_http_lua_socket_tcp_conn_resume (ngx_http_lua_socket_tcp.c:5906)
==23654== by 0x814524C: ngx_http_lua_content_wev_handler (ngx_http_lua_contentby.c:152)
==23654== by 0x814B398: ngx_http_lua_socket_handle_conn_success (ngx_http_lua_socket_tcp.c:3460)
==23654== by 0x814F62F: ngx_http_lua_ssl_handshake_handler (ngx_http_lua_socket_tcp.c:1901)
==23654== by 0x8095D20: ngx_ssl_handshake_handler (ngx_event_openssl.c:1986)
==23654== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23654== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23654== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23654== by 0x8065F7E: main (nginx.c:382)
==23654== If you believe this happened as a result of a stack
==23654== overflow in your program's main thread (unlikely but
==23654== possible), you can try to increase the size of the
==23654== main thread stack using the --main-stacksize= flag.
==23654== The main thread stack size used in this run was 8388608.

ssl.t TEST 20: read client addr via ssl.raw_client_addr() - status code ok got: ''
expected: '200'
ssl.t TEST 20: read client addr via ssl.raw_client_addr() - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 20: read client addr via ssl.raw_client_addr() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ssl.t TEST 20: read client addr via ssl.raw_client_addr() - status code ok got: ''
expected: '200'
ssl.t TEST 20: read client addr via ssl.raw_client_addr() - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 20: read client addr via ssl.raw_client_addr() - pattern "client ip: 127.0.0.1" should match a line in error.log (req 1)
ssl.t TEST 26: read server port via ssl.server_port() with ipv4 - Can't connect to 127.0.0.1:1984: Connection refused ==23667== Invalid read of size 4
==23667== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23667== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23667== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23667== by 0x8153533: ngx_http_lua_socket_tcp_receive_helper (ngx_http_lua_socket_tcp.c:2111)
==23667== by 0x8153C80: ngx_http_lua_socket_tcp_receive (ngx_http_lua_socket_tcp.c:2354)
==23667== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==23667== by 0x407FA29: lua_resume (lj_api.c:1296)
==23667== by 0x8141294: ngx_http_lua_run_thread (ngx_http_lua_util.c:1164)
==23667== by 0x814D573: ngx_http_lua_socket_tcp_resume_helper (ngx_http_lua_socket_tcp.c:6000)
==23667== by 0x814D651: ngx_http_lua_socket_tcp_conn_resume (ngx_http_lua_socket_tcp.c:5906)
==23667== by 0x814524C: ngx_http_lua_content_wev_handler (ngx_http_lua_contentby.c:152)
==23667== by 0x814B398: ngx_http_lua_socket_handle_conn_success (ngx_http_lua_socket_tcp.c:3460)
==23667== by 0x814F62F: ngx_http_lua_ssl_handshake_handler (ngx_http_lua_socket_tcp.c:1901)
==23667== by 0x8095D20: ngx_ssl_handshake_handler (ngx_event_openssl.c:1986)
==23667== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23667== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23667== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23667== by 0x8065F7E: main (nginx.c:382)
==23667== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23667==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_tcp_receive_helper
fun:ngx_http_lua_socket_tcp_receive
fun:lj_BC_FUNCC
fun:lua_resume
fun:ngx_http_lua_run_thread
fun:ngx_http_lua_socket_tcp_resume_helper
fun:ngx_http_lua_socket_tcp_conn_resume
fun:ngx_http_lua_content_wev_handler
fun:ngx_http_lua_socket_handle_conn_success
fun:ngx_http_lua_ssl_handshake_handler
fun:ngx_ssl_handshake_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
ssl.t TEST 26: read server port via ssl.server_port() with ipv4 - Can't connect to 127.0.0.1:1984: Connection refused ==23667==
==23667== Process terminating with default action of signal 11 (SIGSEGV)
==23667== Access not within mapped region at address 0x0
==23667== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23667== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23667== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23667== by 0x8153533: ngx_http_lua_socket_tcp_receive_helper (ngx_http_lua_socket_tcp.c:2111)
==23667== by 0x8153C80: ngx_http_lua_socket_tcp_receive (ngx_http_lua_socket_tcp.c:2354)
==23667== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==23667== by 0x407FA29: lua_resume (lj_api.c:1296)
==23667== by 0x8141294: ngx_http_lua_run_thread (ngx_http_lua_util.c:1164)
==23667== by 0x814D573: ngx_http_lua_socket_tcp_resume_helper (ngx_http_lua_socket_tcp.c:6000)
==23667== by 0x814D651: ngx_http_lua_socket_tcp_conn_resume (ngx_http_lua_socket_tcp.c:5906)
==23667== by 0x814524C: ngx_http_lua_content_wev_handler (ngx_http_lua_contentby.c:152)
==23667== by 0x814B398: ngx_http_lua_socket_handle_conn_success (ngx_http_lua_socket_tcp.c:3460)
==23667== by 0x814F62F: ngx_http_lua_ssl_handshake_handler (ngx_http_lua_socket_tcp.c:1901)
==23667== by 0x8095D20: ngx_ssl_handshake_handler (ngx_event_openssl.c:1986)
==23667== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23667== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23667== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23667== by 0x8065F7E: main (nginx.c:382)
==23667== If you believe this happened as a result of a stack
==23667== overflow in your program's main thread (unlikely but
==23667== possible), you can try to increase the size of the
==23667== main thread stack using the --main-stacksize= flag.
==23667== The main thread stack size used in this run was 8388608.

ssl.t TEST 26: read server port via ssl.server_port() with ipv4 - status code ok got: ''
expected: '200'
ssl.t TEST 26: read server port via ssl.server_port() with ipv4 - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 26: read server port via ssl.server_port() with ipv4 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ssl.t TEST 26: read server port via ssl.server_port() with ipv4 - status code ok got: ''
expected: '200'
ssl.t TEST 26: read server port via ssl.server_port() with ipv4 - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 26: read server port via ssl.server_port() with ipv4 - pattern "read server port from Lua: 12345" should match a line in error.log (req 1)
ssl.t TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - Can't connect to 127.0.0.1:1984: Connection refused ==23669== Invalid read of size 4
==23669== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23669== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23669== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23669== by 0x8153533: ngx_http_lua_socket_tcp_receive_helper (ngx_http_lua_socket_tcp.c:2111)
==23669== by 0x8153C80: ngx_http_lua_socket_tcp_receive (ngx_http_lua_socket_tcp.c:2354)
==23669== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==23669== by 0x407FA29: lua_resume (lj_api.c:1296)
==23669== by 0x8141294: ngx_http_lua_run_thread (ngx_http_lua_util.c:1164)
==23669== by 0x814D573: ngx_http_lua_socket_tcp_resume_helper (ngx_http_lua_socket_tcp.c:6000)
==23669== by 0x814D651: ngx_http_lua_socket_tcp_conn_resume (ngx_http_lua_socket_tcp.c:5906)
==23669== by 0x814524C: ngx_http_lua_content_wev_handler (ngx_http_lua_contentby.c:152)
==23669== by 0x814B398: ngx_http_lua_socket_handle_conn_success (ngx_http_lua_socket_tcp.c:3460)
==23669== by 0x814F62F: ngx_http_lua_ssl_handshake_handler (ngx_http_lua_socket_tcp.c:1901)
==23669== by 0x8095D20: ngx_ssl_handshake_handler (ngx_event_openssl.c:1986)
==23669== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23669== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23669== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23669== by 0x8065F7E: main (nginx.c:382)
==23669== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23669==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_tcp_receive_helper
fun:ngx_http_lua_socket_tcp_receive
fun:lj_BC_FUNCC
fun:lua_resume
fun:ngx_http_lua_run_thread
fun:ngx_http_lua_socket_tcp_resume_helper
fun:ngx_http_lua_socket_tcp_conn_resume
fun:ngx_http_lua_content_wev_handler
fun:ngx_http_lua_socket_handle_conn_success
fun:ngx_http_lua_ssl_handshake_handler
fun:ngx_ssl_handshake_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
ssl.t TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - Can't connect to 127.0.0.1:1984: Connection refused ==23669==
==23669== Process terminating with default action of signal 11 (SIGSEGV)
==23669== Access not within mapped region at address 0x0
==23669== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23669== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23669== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23669== by 0x8153533: ngx_http_lua_socket_tcp_receive_helper (ngx_http_lua_socket_tcp.c:2111)
==23669== by 0x8153C80: ngx_http_lua_socket_tcp_receive (ngx_http_lua_socket_tcp.c:2354)
==23669== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==23669== by 0x407FA29: lua_resume (lj_api.c:1296)
==23669== by 0x8141294: ngx_http_lua_run_thread (ngx_http_lua_util.c:1164)
==23669== by 0x814D573: ngx_http_lua_socket_tcp_resume_helper (ngx_http_lua_socket_tcp.c:6000)
==23669== by 0x814D651: ngx_http_lua_socket_tcp_conn_resume (ngx_http_lua_socket_tcp.c:5906)
==23669== by 0x814524C: ngx_http_lua_content_wev_handler (ngx_http_lua_contentby.c:152)
==23669== by 0x814B398: ngx_http_lua_socket_handle_conn_success (ngx_http_lua_socket_tcp.c:3460)
==23669== by 0x814F62F: ngx_http_lua_ssl_handshake_handler (ngx_http_lua_socket_tcp.c:1901)
==23669== by 0x8095D20: ngx_ssl_handshake_handler (ngx_event_openssl.c:1986)
==23669== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23669== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23669== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23669== by 0x8065F7E: main (nginx.c:382)
==23669== If you believe this happened as a result of a stack
==23669== overflow in your program's main thread (unlikely but
==23669== possible), you can try to increase the size of the
==23669== main thread stack using the --main-stacksize= flag.
==23669== The main thread stack size used in this run was 8388608.

ssl.t TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - status code ok got: ''
expected: '200'
ssl.t TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ssl.t TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - status code ok got: ''
expected: '200'
ssl.t TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1)
ssl.t TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - pattern "(?^:Using unix socket file .*?nginx\.sock)" should match a line in error.log (req 1)
ssl.t TEST 15: read PEM key chain but set DER key chain - Can't connect to 127.0.0.1:1984: Connection refused ==23671== Invalid read of size 4
==23671== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23671== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23671== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23671== by 0x8153533: ngx_http_lua_socket_tcp_receive_helper (ngx_http_lua_socket_tcp.c:2111)
==23671== by 0x8153C80: ngx_http_lua_socket_tcp_receive (ngx_http_lua_socket_tcp.c:2354)
==23671== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==23671== by 0x407FA29: lua_resume (lj_api.c:1296)
==23671== by 0x8141294: ngx_http_lua_run_thread (ngx_http_lua_util.c:1164)
==23671== by 0x814D573: ngx_http_lua_socket_tcp_resume_helper (ngx_http_lua_socket_tcp.c:6000)
==23671== by 0x814D651: ngx_http_lua_socket_tcp_conn_resume (ngx_http_lua_socket_tcp.c:5906)
==23671== by 0x814524C: ngx_http_lua_content_wev_handler (ngx_http_lua_contentby.c:152)
==23671== by 0x814B398: ngx_http_lua_socket_handle_conn_success (ngx_http_lua_socket_tcp.c:3460)
==23671== by 0x814F62F: ngx_http_lua_ssl_handshake_handler (ngx_http_lua_socket_tcp.c:1901)
==23671== by 0x8095D20: ngx_ssl_handshake_handler (ngx_event_openssl.c:1986)
==23671== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23671== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23671== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23671== by 0x8065F7E: main (nginx.c:382)
==23671== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23671==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_tcp_receive_helper
fun:ngx_http_lua_socket_tcp_receive
fun:lj_BC_FUNCC
fun:lua_resume
fun:ngx_http_lua_run_thread
fun:ngx_http_lua_socket_tcp_resume_helper
fun:ngx_http_lua_socket_tcp_conn_resume
fun:ngx_http_lua_content_wev_handler
fun:ngx_http_lua_socket_handle_conn_success
fun:ngx_http_lua_ssl_handshake_handler
fun:ngx_ssl_handshake_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
ssl.t TEST 15: read PEM key chain but set DER key chain - Can't connect to 127.0.0.1:1984: Connection refused ==23671==
==23671== Process terminating with default action of signal 11 (SIGSEGV)
==23671== Access not within mapped region at address 0x0
==23671== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23671== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23671== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23671== by 0x8153533: ngx_http_lua_socket_tcp_receive_helper (ngx_http_lua_socket_tcp.c:2111)
==23671== by 0x8153C80: ngx_http_lua_socket_tcp_receive (ngx_http_lua_socket_tcp.c:2354)
==23671== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==23671== by 0x407FA29: lua_resume (lj_api.c:1296)
==23671== by 0x8141294: ngx_http_lua_run_thread (ngx_http_lua_util.c:1164)
==23671== by 0x814D573: ngx_http_lua_socket_tcp_resume_helper (ngx_http_lua_socket_tcp.c:6000)
==23671== by 0x814D651: ngx_http_lua_socket_tcp_conn_resume (ngx_http_lua_socket_tcp.c:5906)
==23671== by 0x814524C: ngx_http_lua_content_wev_handler (ngx_http_lua_contentby.c:152)
==23671== by 0x814B398: ngx_http_lua_socket_handle_conn_success (ngx_http_lua_socket_tcp.c:3460)
==23671== by 0x814F62F: ngx_http_lua_ssl_handshake_handler (ngx_http_lua_socket_tcp.c:1901)
==23671== by 0x8095D20: ngx_ssl_handshake_handler (ngx_event_openssl.c:1986)
==23671== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23671== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23671== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23671== by 0x8065F7E: main (nginx.c:382)
==23671== If you believe this happened as a result of a stack
==23671== overflow in your program's main thread (unlikely but
==23671== possible), you can try to increase the size of the
==23671== main thread stack using the --main-stacksize= flag.
==23671== The main thread stack size used in this run was 8388608.

ssl.t TEST 15: read PEM key chain but set DER key chain - status code ok got: ''
expected: '200'
ssl.t TEST 15: read PEM key chain but set DER key chain - response_body - response is expected (repeated req 0, req 0) @@ -1,11 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 15: read PEM key chain but set DER key chain - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
ssl.t TEST 15: read PEM key chain but set DER key chain - status code ok got: ''
expected: '200'
ssl.t TEST 15: read PEM key chain but set DER key chain - response_body - response is expected (repeated req 1, req 0) @@ -1,11 +0,0 @@
-connected: 1
-ssl handshake: userdata
-sent http request: 56 bytes.
-received: HTTP/1.1 201 Created
-received: Server: nginx
-received: Content-Type: text/plain
-received: Content-Length: 4
-received: Connection: close
-received:
-received: foo
-close: 1 nil
'
ssl.t TEST 15: read PEM key chain but set DER key chain - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1)
stream/balancer-timeout.t TEST 3: set_timeouts (nil send timeout) - Can't connect to 127.0.0.1:1984: Connection refused ==23681== Invalid read of size 4
==23681== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23681== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23681== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23681== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23681== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23681== by 0x80859F0: ngx_event_process_posted (ngx_event_posted.c:35)
==23681== by 0x80853B3: ngx_process_events_and_timers (ngx_event.c:274)
==23681== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23681== by 0x8065F7E: main (nginx.c:382)
==23681== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23681==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/balancer-timeout.t TEST 3: set_timeouts (nil send timeout) - Can't connect to 127.0.0.1:1984: Connection refused ==23681==
==23681== Process terminating with default action of signal 11 (SIGSEGV)
==23681== Access not within mapped region at address 0x0
==23681== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23681== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23681== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23681== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23681== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23681== by 0x80859F0: ngx_event_process_posted (ngx_event_posted.c:35)
==23681== by 0x80853B3: ngx_process_events_and_timers (ngx_event.c:274)
==23681== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23681== by 0x8065F7E: main (nginx.c:382)
==23681== If you believe this happened as a result of a stack
==23681== overflow in your program's main thread (unlikely but
==23681== possible), you can try to increase the size of the
==23681== main thread stack using the --main-stacksize= flag.
==23681== The main thread stack size used in this run was 8388608.

stream/balancer-timeout.t TEST 3: set_timeouts (nil send timeout) - status code ok got: ''
expected: '200'
stream/balancer-timeout.t TEST 3: set_timeouts (nil send timeout) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'fake origin
'
stream/balancer-timeout.t TEST 3: set_timeouts (nil send timeout) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/balancer-timeout.t TEST 3: set_timeouts (nil send timeout) - status code ok got: ''
expected: '200'
stream/balancer-timeout.t TEST 3: set_timeouts (nil send timeout) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'fake origin
'
stream/balancer-timeout.t TEST 3: set_timeouts (nil send timeout) - grep_error_log_out (req 1) ''
doesn't match '(?^:\Aevent timer add: \d+: 1234:
event timer add: \d+: 7689:
\z)'
stream/balancer-timeout.t TEST 9: set read timeout to 0 - Can't connect to 127.0.0.1:1984: Connection refused ==23683== Invalid read of size 4
==23683== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23683== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23683== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23683== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23683== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23683== by 0x80859F0: ngx_event_process_posted (ngx_event_posted.c:35)
==23683== by 0x80853B3: ngx_process_events_and_timers (ngx_event.c:274)
==23683== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23683== by 0x8065F7E: main (nginx.c:382)
==23683== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23683==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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
}
stream/balancer-timeout.t TEST 9: set read timeout to 0 - Can't connect to 127.0.0.1:1984: Connection refused ==23683==
==23683== Process terminating with default action of signal 11 (SIGSEGV)
==23683== Access not within mapped region at address 0x0
==23683== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23683== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23683== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23683== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23683== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23683== by 0x80859F0: ngx_event_process_posted (ngx_event_posted.c:35)
==23683== by 0x80853B3: ngx_process_events_and_timers (ngx_event.c:274)
==23683== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23683== by 0x8065F7E: main (nginx.c:382)
==23683== If you believe this happened as a result of a stack
==23683== overflow in your program's main thread (unlikely but
==23683== possible), you can try to increase the size of the
==23683== main thread stack using the --main-stacksize= flag.
==23683== The main thread stack size used in this run was 8388608.

stream/balancer-timeout.t TEST 9: set read timeout to 0 - status code ok got: ''
expected: '200'
stream/balancer-timeout.t TEST 9: set read timeout to 0 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/balancer-timeout.t TEST 9: set read timeout to 0 - status code ok got: ''
expected: '200'
stream/balancer-timeout.t TEST 9: set read timeout to 0 - pattern "(?^:\[error\] .*? balancer_by_lua:3: bad read timeout)" should match a line in error.log (req 1)
stream/balancer-timeout.t TEST 9: set read timeout to 0 - Can't connect to 127.0.0.1:1984: Connection refused ==23685== Invalid read of size 4
==23685== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23685== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23685== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23685== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23685== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23685== by 0x80859F0: ngx_event_process_posted (ngx_event_posted.c:35)
==23685== by 0x80853B3: ngx_process_events_and_timers (ngx_event.c:274)
==23685== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23685== by 0x8065F7E: main (nginx.c:382)
==23685== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23685==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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
}
stream/balancer-timeout.t TEST 9: set read timeout to 0 - Can't connect to 127.0.0.1:1984: Connection refused ==23685==
==23685== Process terminating with default action of signal 11 (SIGSEGV)
==23685== Access not within mapped region at address 0x0
==23685== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23685== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23685== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23685== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23685== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23685== by 0x80859F0: ngx_event_process_posted (ngx_event_posted.c:35)
==23685== by 0x80853B3: ngx_process_events_and_timers (ngx_event.c:274)
==23685== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23685== by 0x8065F7E: main (nginx.c:382)
==23685== If you believe this happened as a result of a stack
==23685== overflow in your program's main thread (unlikely but
==23685== possible), you can try to increase the size of the
==23685== main thread stack using the --main-stacksize= flag.
==23685== The main thread stack size used in this run was 8388608.

stream/balancer-timeout.t TEST 10 set read timeout to -1 - status code ok got: ''
expected: '200'
stream/balancer-timeout.t TEST 10 set read timeout to -1 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/balancer-timeout.t TEST 10 set read timeout to -1 - status code ok got: ''
expected: '200'
stream/balancer-timeout.t TEST 10 set read timeout to -1 - pattern "(?^:\[error\] .*? balancer_by_lua:3: bad read timeout)" should match a line in error.log (req 1)
stream/balancer-timeout.t TEST 6: set connect timeout to -1 - Can't connect to 127.0.0.1:1984: Connection refused ==23687== Invalid read of size 4
==23687== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23687== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23687== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23687== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23687== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23687== by 0x80859F0: ngx_event_process_posted (ngx_event_posted.c:35)
==23687== by 0x80853B3: ngx_process_events_and_timers (ngx_event.c:274)
==23687== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23687== by 0x8065F7E: main (nginx.c:382)
==23687== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23687==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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
}
stream/balancer-timeout.t TEST 6: set connect timeout to -1 - Can't connect to 127.0.0.1:1984: Connection refused ==23687==
==23687== Process terminating with default action of signal 11 (SIGSEGV)
==23687== Access not within mapped region at address 0x0
==23687== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23687== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23687== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23687== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23687== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23687== by 0x80859F0: ngx_event_process_posted (ngx_event_posted.c:35)
==23687== by 0x80853B3: ngx_process_events_and_timers (ngx_event.c:274)
==23687== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23687== by 0x8065F7E: main (nginx.c:382)
==23687== If you believe this happened as a result of a stack
==23687== overflow in your program's main thread (unlikely but
==23687== possible), you can try to increase the size of the
==23687== main thread stack using the --main-stacksize= flag.
==23687== The main thread stack size used in this run was 8388608.

stream/balancer-timeout.t TEST 6: set connect timeout to -1 - status code ok got: ''
expected: '200'
stream/balancer-timeout.t TEST 6: set connect timeout to -1 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/balancer-timeout.t TEST 6: set connect timeout to -1 - status code ok got: ''
expected: '200'
stream/balancer-timeout.t TEST 6: set connect timeout to -1 - pattern "(?^:\[error\] .*? balancer_by_lua:3: bad connect timeout)" should match a line in error.log (req 1)
stream/balancer-timeout.t TEST 2: set_timeouts (nil connect timeout) - Can't connect to 127.0.0.1:1984: Connection refused ==23689== Invalid read of size 4
==23689== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23689== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23689== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23689== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23689== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23689== by 0x80859F0: ngx_event_process_posted (ngx_event_posted.c:35)
==23689== by 0x80853B3: ngx_process_events_and_timers (ngx_event.c:274)
==23689== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23689== by 0x8065F7E: main (nginx.c:382)
==23689== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23689==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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
}
stream/balancer-timeout.t TEST 2: set_timeouts (nil connect timeout) - Can't connect to 127.0.0.1:1984: Connection refused ==23689==
==23689== Process terminating with default action of signal 11 (SIGSEGV)
==23689== Access not within mapped region at address 0x0
==23689== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23689== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23689== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23689== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23689== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23689== by 0x80859F0: ngx_event_process_posted (ngx_event_posted.c:35)
==23689== by 0x80853B3: ngx_process_events_and_timers (ngx_event.c:274)
==23689== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23689== by 0x8065F7E: main (nginx.c:382)
==23689== If you believe this happened as a result of a stack
==23689== overflow in your program's main thread (unlikely but
==23689== possible), you can try to increase the size of the
==23689== main thread stack using the --main-stacksize= flag.
==23689== The main thread stack size used in this run was 8388608.

stream/balancer-timeout.t TEST 2: set_timeouts (nil connect timeout) - status code ok got: ''
expected: '200'
stream/balancer-timeout.t TEST 2: set_timeouts (nil connect timeout) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'fake origin
'
stream/balancer-timeout.t TEST 2: set_timeouts (nil connect timeout) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/balancer-timeout.t TEST 2: set_timeouts (nil connect timeout) - status code ok got: ''
expected: '200'
stream/balancer-timeout.t TEST 2: set_timeouts (nil connect timeout) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'fake origin
'
stream/balancer-timeout.t TEST 2: set_timeouts (nil connect timeout) - grep_error_log_out (req 1) ''
doesn't match '(?^:\Aevent timer add: \d+: 1234:
event timer add: \d+: 7689:
\z)'
stream/balancer-timeout.t TEST 8: set send timeout to -1 - Can't connect to 127.0.0.1:1984: Connection refused ==23691== Invalid read of size 4
==23691== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23691== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23691== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23691== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23691== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23691== by 0x80859F0: ngx_event_process_posted (ngx_event_posted.c:35)
==23691== by 0x80853B3: ngx_process_events_and_timers (ngx_event.c:274)
==23691== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23691== by 0x8065F7E: main (nginx.c:382)
==23691== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23691==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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
}
stream/balancer-timeout.t TEST 8: set send timeout to -1 - Can't connect to 127.0.0.1:1984: Connection refused ==23691==
==23691== Process terminating with default action of signal 11 (SIGSEGV)
==23691== Access not within mapped region at address 0x0
==23691== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23691== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23691== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23691== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23691== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23691== by 0x80859F0: ngx_event_process_posted (ngx_event_posted.c:35)
==23691== by 0x80853B3: ngx_process_events_and_timers (ngx_event.c:274)
==23691== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23691== by 0x8065F7E: main (nginx.c:382)
==23691== If you believe this happened as a result of a stack
==23691== overflow in your program's main thread (unlikely but
==23691== possible), you can try to increase the size of the
==23691== main thread stack using the --main-stacksize= flag.
==23691== The main thread stack size used in this run was 8388608.

stream/balancer-timeout.t TEST 8: set send timeout to -1 - status code ok got: ''
expected: '200'
stream/balancer-timeout.t TEST 8: set send timeout to -1 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/balancer-timeout.t TEST 8: set send timeout to -1 - status code ok got: ''
expected: '200'
stream/balancer-timeout.t TEST 8: set send timeout to -1 - pattern "(?^:\[error\] .*? balancer_by_lua:3: bad send timeout)" should match a line in error.log (req 1)
stream/balancer-timeout.t TEST 4: set_timeouts (nil read timeout) - Can't connect to 127.0.0.1:1984: Connection refused ==23693== Invalid read of size 4
==23693== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23693== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23693== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23693== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23693== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23693== by 0x80859F0: ngx_event_process_posted (ngx_event_posted.c:35)
==23693== by 0x80853B3: ngx_process_events_and_timers (ngx_event.c:274)
==23693== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23693== by 0x8065F7E: main (nginx.c:382)
==23693== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23693==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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
}
stream/balancer-timeout.t TEST 4: set_timeouts (nil read timeout) - Can't connect to 127.0.0.1:1984: Connection refused ==23693==
==23693== Process terminating with default action of signal 11 (SIGSEGV)
==23693== Access not within mapped region at address 0x0
==23693== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23693== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23693== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23693== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23693== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23693== by 0x80859F0: ngx_event_process_posted (ngx_event_posted.c:35)
==23693== by 0x80853B3: ngx_process_events_and_timers (ngx_event.c:274)
==23693== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23693== by 0x8065F7E: main (nginx.c:382)
==23693== If you believe this happened as a result of a stack
==23693== overflow in your program's main thread (unlikely but
==23693== possible), you can try to increase the size of the
==23693== main thread stack using the --main-stacksize= flag.
==23693== The main thread stack size used in this run was 8388608.

stream/balancer-timeout.t TEST 4: set_timeouts (nil read timeout) - status code ok got: ''
expected: '200'
stream/balancer-timeout.t TEST 4: set_timeouts (nil read timeout) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'fake origin
'
stream/balancer-timeout.t TEST 4: set_timeouts (nil read timeout) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/balancer-timeout.t TEST 4: set_timeouts (nil read timeout) - status code ok got: ''
expected: '200'
stream/balancer-timeout.t TEST 4: set_timeouts (nil read timeout) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'fake origin
'
stream/balancer-timeout.t TEST 4: set_timeouts (nil read timeout) - grep_error_log_out (req 1) ''
doesn't match '(?^:\Aevent timer add: \d+: 1234:
event timer add: \d+: 5678:
\z)'
stream/balancer-timeout.t TEST 7: set send timeout to 0 - Can't connect to 127.0.0.1:1984: Connection refused ==23695== Invalid read of size 4
==23695== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23695== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23695== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23695== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23695== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23695== by 0x80859F0: ngx_event_process_posted (ngx_event_posted.c:35)
==23695== by 0x80853B3: ngx_process_events_and_timers (ngx_event.c:274)
==23695== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23695== by 0x8065F7E: main (nginx.c:382)
==23695== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23695==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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
}
stream/balancer-timeout.t TEST 7: set send timeout to 0 - Can't connect to 127.0.0.1:1984: Connection refused ==23695==
==23695== Process terminating with default action of signal 11 (SIGSEGV)
==23695== Access not within mapped region at address 0x0
==23695== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23695== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23695== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23695== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23695== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23695== by 0x80859F0: ngx_event_process_posted (ngx_event_posted.c:35)
==23695== by 0x80853B3: ngx_process_events_and_timers (ngx_event.c:274)
==23695== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23695== by 0x8065F7E: main (nginx.c:382)
==23695== If you believe this happened as a result of a stack
==23695== overflow in your program's main thread (unlikely but
==23695== possible), you can try to increase the size of the
==23695== main thread stack using the --main-stacksize= flag.
==23695== The main thread stack size used in this run was 8388608.

stream/balancer-timeout.t TEST 7: set send timeout to 0 - status code ok got: ''
expected: '200'
stream/balancer-timeout.t TEST 7: set send timeout to 0 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/balancer-timeout.t TEST 7: set send timeout to 0 - status code ok got: ''
expected: '200'
stream/balancer-timeout.t TEST 7: set send timeout to 0 - pattern "(?^:\[error\] .*? balancer_by_lua:3: bad send timeout)" should match a line in error.log (req 1)
stream/balancer-timeout.t TEST 5: set connect timeout to 0 - Can't connect to 127.0.0.1:1984: Connection refused ==23697== Invalid read of size 4
==23697== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23697== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23697== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23697== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23697== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23697== by 0x80859F0: ngx_event_process_posted (ngx_event_posted.c:35)
==23697== by 0x80853B3: ngx_process_events_and_timers (ngx_event.c:274)
==23697== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23697== by 0x8065F7E: main (nginx.c:382)
==23697== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23697==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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
}
stream/balancer-timeout.t TEST 5: set connect timeout to 0 - Can't connect to 127.0.0.1:1984: Connection refused ==23697==
==23697== Process terminating with default action of signal 11 (SIGSEGV)
==23697== Access not within mapped region at address 0x0
==23697== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23697== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23697== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23697== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23697== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23697== by 0x80859F0: ngx_event_process_posted (ngx_event_posted.c:35)
==23697== by 0x80853B3: ngx_process_events_and_timers (ngx_event.c:274)
==23697== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23697== by 0x8065F7E: main (nginx.c:382)
==23697== If you believe this happened as a result of a stack
==23697== overflow in your program's main thread (unlikely but
==23697== possible), you can try to increase the size of the
==23697== main thread stack using the --main-stacksize= flag.
==23697== The main thread stack size used in this run was 8388608.

stream/balancer-timeout.t TEST 5: set connect timeout to 0 - status code ok got: ''
expected: '200'
stream/balancer-timeout.t TEST 5: set connect timeout to 0 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/balancer-timeout.t TEST 5: set connect timeout to 0 - status code ok got: ''
expected: '200'
stream/balancer-timeout.t TEST 5: set connect timeout to 0 - pattern "(?^:\[error\] .*? balancer_by_lua:3: bad connect timeout)" should match a line in error.log (req 1)
stream/balancer-timeout.t TEST 11: set_timeouts called in a wrong context - Can't connect to 127.0.0.1:1984: Connection refused ==23699== Invalid read of size 4
==23699== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23699== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23699== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23699== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23699== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23699== by 0x80859F0: ngx_event_process_posted (ngx_event_posted.c:35)
==23699== by 0x80853B3: ngx_process_events_and_timers (ngx_event.c:274)
==23699== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23699== by 0x8065F7E: main (nginx.c:382)
==23699== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23699==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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
}
stream/balancer-timeout.t TEST 11: set_timeouts called in a wrong context - Can't connect to 127.0.0.1:1984: Connection refused ==23699==
==23699== Process terminating with default action of signal 11 (SIGSEGV)
==23699== Access not within mapped region at address 0x0
==23699== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23699== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23699== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23699== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23699== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23699== by 0x80859F0: ngx_event_process_posted (ngx_event_posted.c:35)
==23699== by 0x80853B3: ngx_process_events_and_timers (ngx_event.c:274)
==23699== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23699== by 0x8065F7E: main (nginx.c:382)
==23699== If you believe this happened as a result of a stack
==23699== overflow in your program's main thread (unlikely but
==23699== possible), you can try to increase the size of the
==23699== main thread stack using the --main-stacksize= flag.
==23699== The main thread stack size used in this run was 8388608.

stream/balancer-timeout.t TEST 11: set_timeouts called in a wrong context - status code ok got: ''
expected: '200'
stream/balancer-timeout.t TEST 11: set_timeouts called in a wrong context - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to call: API disabled in the current context
'
stream/balancer-timeout.t TEST 11: set_timeouts called in a wrong context - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/balancer-timeout.t TEST 11: set_timeouts called in a wrong context - status code ok got: ''
expected: '200'
stream/balancer-timeout.t TEST 11: set_timeouts called in a wrong context - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to call: API disabled in the current context
'
stream/balancer-timeout.t TEST 12: set_timeouts called with a non-numerical parameter - Can't connect to 127.0.0.1:1984: Connection refused ==23701== Invalid read of size 4
==23701== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23701== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23701== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23701== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23701== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23701== by 0x80859F0: ngx_event_process_posted (ngx_event_posted.c:35)
==23701== by 0x80853B3: ngx_process_events_and_timers (ngx_event.c:274)
==23701== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23701== by 0x8065F7E: main (nginx.c:382)
==23701== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23701==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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
}
stream/balancer-timeout.t TEST 12: set_timeouts called with a non-numerical parameter - Can't connect to 127.0.0.1:1984: Connection refused ==23701==
==23701== Process terminating with default action of signal 11 (SIGSEGV)
==23701== Access not within mapped region at address 0x0
==23701== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23701== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23701== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23701== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23701== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23701== by 0x80859F0: ngx_event_process_posted (ngx_event_posted.c:35)
==23701== by 0x80853B3: ngx_process_events_and_timers (ngx_event.c:274)
==23701== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23701== by 0x8065F7E: main (nginx.c:382)
==23701== If you believe this happened as a result of a stack
==23701== overflow in your program's main thread (unlikely but
==23701== possible), you can try to increase the size of the
==23701== main thread stack using the --main-stacksize= flag.
==23701== The main thread stack size used in this run was 8388608.

stream/balancer-timeout.t TEST 12: set_timeouts called with a non-numerical parameter - status code ok got: ''
expected: '200'
stream/balancer-timeout.t TEST 12: set_timeouts called with a non-numerical parameter - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/balancer-timeout.t TEST 12: set_timeouts called with a non-numerical parameter - status code ok got: ''
expected: '200'
stream/balancer-timeout.t TEST 12: set_timeouts called with a non-numerical parameter - pattern "(?^:\[error\] .*? bad connect timeout)" should match a line in error.log (req 1)
stream/balancer-timeout.t TEST 1: set_timeouts - Can't connect to 127.0.0.1:1984: Connection refused ==23703== Invalid read of size 4
==23703== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23703== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23703== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23703== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23703== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23703== by 0x80859F0: ngx_event_process_posted (ngx_event_posted.c:35)
==23703== by 0x80853B3: ngx_process_events_and_timers (ngx_event.c:274)
==23703== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23703== by 0x8065F7E: main (nginx.c:382)
==23703== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23703==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_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
}
stream/balancer-timeout.t TEST 1: set_timeouts - Can't connect to 127.0.0.1:1984: Connection refused ==23703==
==23703== Process terminating with default action of signal 11 (SIGSEGV)
==23703== Access not within mapped region at address 0x0
==23703== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23703== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23703== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23703== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23703== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23703== by 0x80859F0: ngx_event_process_posted (ngx_event_posted.c:35)
==23703== by 0x80853B3: ngx_process_events_and_timers (ngx_event.c:274)
==23703== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23703== by 0x8065F7E: main (nginx.c:382)
==23703== If you believe this happened as a result of a stack
==23703== overflow in your program's main thread (unlikely but
==23703== possible), you can try to increase the size of the
==23703== main thread stack using the --main-stacksize= flag.
==23703== The main thread stack size used in this run was 8388608.

stream/balancer-timeout.t TEST 1: set_timeouts - status code ok got: ''
expected: '200'
stream/balancer-timeout.t TEST 1: set_timeouts - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'fake origin
'
stream/balancer-timeout.t TEST 1: set_timeouts - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/balancer-timeout.t TEST 1: set_timeouts - status code ok got: ''
expected: '200'
stream/balancer-timeout.t TEST 1: set_timeouts - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'fake origin
'
stream/balancer-timeout.t TEST 1: set_timeouts - grep_error_log_out (req 1) ''
doesn't match '(?^:\Aevent timer add: \d+: 1234:
event timer add: \d+: 7689:
\z)'
stream/balancer.t TEST 1: set current peer (separate addr and port) - Can't connect to 127.0.0.1:1984: Connection refused ==23709== Invalid read of size 4
==23709== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23709== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23709== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23709== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23709== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23709== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23709== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23709== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23709== by 0x8065F7E: main (nginx.c:382)
==23709== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23709==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/balancer.t TEST 1: set current peer (separate addr and port) - Can't connect to 127.0.0.1:1984: Connection refused ==23709==
==23709== Process terminating with default action of signal 11 (SIGSEGV)
==23709== Access not within mapped region at address 0x0
==23709== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23709== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23709== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23709== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23709== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23709== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23709== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23709== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23709== by 0x8065F7E: main (nginx.c:382)
==23709== If you believe this happened as a result of a stack
==23709== overflow in your program's main thread (unlikely but
==23709== possible), you can try to increase the size of the
==23709== main thread stack using the --main-stacksize= flag.
==23709== The main thread stack size used in this run was 8388608.

stream/balancer.t TEST 1: set current peer (separate addr and port) - status code ok got: ''
expected: '200'
stream/balancer.t TEST 1: set current peer (separate addr and port) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/balancer.t TEST 1: set current peer (separate addr and port) - status code ok got: ''
expected: '200'
stream/balancer.t TEST 1: set current peer (separate addr and port) - pattern "[lua] balancer_by_lua:2: hello from balancer by lua! while connecting to upstream," should match a line in error.log (req 1)
stream/balancer.t TEST 1: set current peer (separate addr and port) - pattern "(?^:connect\(\) failed .*?, upstream: "127\.0\.0\.3:12345")" should match a line in error.log (req 1)
stream/balancer.t TEST 5: get last peer failure status (connect failed) - Can't connect to 127.0.0.1:1984: Connection refused ==23711== Invalid read of size 4
==23711== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23711== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23711== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23711== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23711== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23711== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23711== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23711== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23711== by 0x8065F7E: main (nginx.c:382)
==23711== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23711==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/balancer.t TEST 5: get last peer failure status (connect failed) - Can't connect to 127.0.0.1:1984: Connection refused ==23711==
==23711== Process terminating with default action of signal 11 (SIGSEGV)
==23711== Access not within mapped region at address 0x0
==23711== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23711== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23711== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23711== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23711== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23711== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23711== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23711== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23711== by 0x8065F7E: main (nginx.c:382)
==23711== If you believe this happened as a result of a stack
==23711== overflow in your program's main thread (unlikely but
==23711== possible), you can try to increase the size of the
==23711== main thread stack using the --main-stacksize= flag.
==23711== The main thread stack size used in this run was 8388608.

stream/balancer.t TEST 5: get last peer failure status (connect failed) - status code ok got: ''
expected: '200'
stream/balancer.t TEST 5: get last peer failure status (connect failed) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/balancer.t TEST 5: get last peer failure status (connect failed) - status code ok got: ''
expected: '200'
stream/balancer.t TEST 5: get last peer failure status (connect failed) - grep_error_log_out (req 1) @@ -1,3 +0,0 @@
-last peer failure: nil nil
-last peer failure: failed 0
-last peer failure: failed 0
'
stream/balancer.t TEST 2: set current peer & next upstream (3 tries) - Can't connect to 127.0.0.1:1984: Connection refused ==23713== Invalid read of size 4
==23713== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23713== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23713== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23713== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23713== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23713== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23713== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23713== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23713== by 0x8065F7E: main (nginx.c:382)
==23713== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23713==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/balancer.t TEST 2: set current peer & next upstream (3 tries) - Can't connect to 127.0.0.1:1984: Connection refused ==23713==
==23713== Process terminating with default action of signal 11 (SIGSEGV)
==23713== Access not within mapped region at address 0x0
==23713== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23713== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23713== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23713== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23713== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23713== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23713== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23713== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23713== by 0x8065F7E: main (nginx.c:382)
==23713== If you believe this happened as a result of a stack
==23713== overflow in your program's main thread (unlikely but
==23713== possible), you can try to increase the size of the
==23713== main thread stack using the --main-stacksize= flag.
==23713== The main thread stack size used in this run was 8388608.

stream/balancer.t TEST 2: set current peer & next upstream (3 tries) - status code ok got: ''
expected: '200'
stream/balancer.t TEST 2: set current peer & next upstream (3 tries) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/balancer.t TEST 2: set current peer & next upstream (3 tries) - status code ok got: ''
expected: '200'
stream/balancer.t TEST 2: set current peer & next upstream (3 tries) - grep_error_log_out (req 1) ''
doesn't match '(?^:^(?:connect\(\) failed .*?, upstream: "127.0.0.3:12345"\n){3}$)'
stream/balancer.t TEST 6: set current peer (port embedded in addr) - Can't connect to 127.0.0.1:1984: Connection refused ==23715== Invalid read of size 4
==23715== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23715== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23715== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23715== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23715== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23715== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23715== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23715== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23715== by 0x8065F7E: main (nginx.c:382)
==23715== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23715==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/balancer.t TEST 6: set current peer (port embedded in addr) - Can't connect to 127.0.0.1:1984: Connection refused ==23715==
==23715== Process terminating with default action of signal 11 (SIGSEGV)
==23715== Access not within mapped region at address 0x0
==23715== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23715== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23715== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23715== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23715== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23715== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23715== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23715== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23715== by 0x8065F7E: main (nginx.c:382)
==23715== If you believe this happened as a result of a stack
==23715== overflow in your program's main thread (unlikely but
==23715== possible), you can try to increase the size of the
==23715== main thread stack using the --main-stacksize= flag.
==23715== The main thread stack size used in this run was 8388608.

stream/balancer.t TEST 6: set current peer (port embedded in addr) - status code ok got: ''
expected: '200'
stream/balancer.t TEST 6: set current peer (port embedded in addr) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/balancer.t TEST 6: set current peer (port embedded in addr) - status code ok got: ''
expected: '200'
stream/balancer.t TEST 6: set current peer (port embedded in addr) - pattern "[lua] balancer_by_lua:2: hello from balancer by lua! while connecting to upstream," should match a line in error.log (req 1)
stream/balancer.t TEST 6: set current peer (port embedded in addr) - pattern "(?^:connect\(\) failed .*?, upstream: "127\.0\.0\.3:12345")" should match a line in error.log (req 1)
stream/balancer.t TEST 4: set current peer & next upstream (3 tries exceeding the limit) - Can't connect to 127.0.0.1:1984: Connection refused ==23717== Invalid read of size 4
==23717== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23717== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23717== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23717== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23717== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23717== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23717== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23717== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23717== by 0x8065F7E: main (nginx.c:382)
==23717== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23717==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/balancer.t TEST 4: set current peer & next upstream (3 tries exceeding the limit) - Can't connect to 127.0.0.1:1984: Connection refused ==23717==
==23717== Process terminating with default action of signal 11 (SIGSEGV)
==23717== Access not within mapped region at address 0x0
==23717== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23717== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23717== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23717== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23717== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23717== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23717== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23717== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23717== by 0x8065F7E: main (nginx.c:382)
==23717== If you believe this happened as a result of a stack
==23717== overflow in your program's main thread (unlikely but
==23717== possible), you can try to increase the size of the
==23717== main thread stack using the --main-stacksize= flag.
==23717== The main thread stack size used in this run was 8388608.

stream/balancer.t TEST 4: set current peer & next upstream (3 tries exceeding the limit) - status code ok got: ''
expected: '200'
stream/balancer.t TEST 4: set current peer & next upstream (3 tries exceeding the limit) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/balancer.t TEST 4: set current peer & next upstream (3 tries exceeding the limit) - status code ok got: ''
expected: '200'
stream/balancer.t TEST 4: set current peer & next upstream (3 tries exceeding the limit) - grep_error_log_out (req 1) ''
doesn't match '(?^:^(?:connect\(\) failed .*?, upstream: "127.0.0.3:12345"\n){2}$)'
stream/balancer.t TEST 4: set current peer & next upstream (3 tries exceeding the limit) - pattern "set more tries: reduced tries due to limit" should match a line in error.log (req 1)
stream/balancer.t TEST 3: set current peer & next upstream (no retries) - Can't connect to 127.0.0.1:1984: Connection refused ==23719== Invalid read of size 4
==23719== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23719== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23719== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23719== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23719== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23719== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23719== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23719== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23719== by 0x8065F7E: main (nginx.c:382)
==23719== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23719==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/balancer.t TEST 3: set current peer & next upstream (no retries) - Can't connect to 127.0.0.1:1984: Connection refused ==23719==
==23719== Process terminating with default action of signal 11 (SIGSEGV)
==23719== Access not within mapped region at address 0x0
==23719== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23719== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23719== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23719== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23719== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23719== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23719== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23719== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23719== by 0x8065F7E: main (nginx.c:382)
==23719== If you believe this happened as a result of a stack
==23719== overflow in your program's main thread (unlikely but
==23719== possible), you can try to increase the size of the
==23719== main thread stack using the --main-stacksize= flag.
==23719== The main thread stack size used in this run was 8388608.

stream/balancer.t TEST 3: set current peer & next upstream (no retries) - status code ok got: ''
expected: '200'
stream/balancer.t TEST 3: set current peer & next upstream (no retries) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/balancer.t TEST 3: set current peer & next upstream (no retries) - status code ok got: ''
expected: '200'
stream/balancer.t TEST 3: set current peer & next upstream (no retries) - grep_error_log_out (req 1) ''
doesn't match '(?^:^(?:connect\(\) failed .*?, upstream: "127.0.0.3:12345"\n){1}$)'
stream/ctx.t TEST 3: ngx.ctx in ssl_certificate_by_lua (release ctx when client aborted) - Can't connect to 127.0.0.1:1984: Connection refused ==23725== Invalid read of size 4
==23725== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23725== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23725== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23725== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23725== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23725== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23725== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23725== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23725== by 0x8065F7E: main (nginx.c:382)
==23725== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23725==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/ctx.t TEST 3: ngx.ctx in ssl_certificate_by_lua (release ctx when client aborted) - Can't connect to 127.0.0.1:1984: Connection refused ==23725==
==23725== Process terminating with default action of signal 11 (SIGSEGV)
==23725== Access not within mapped region at address 0x0
==23725== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23725== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23725== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23725== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23725== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23725== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23725== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23725== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23725== by 0x8065F7E: main (nginx.c:382)
==23725== If you believe this happened as a result of a stack
==23725== overflow in your program's main thread (unlikely but
==23725== possible), you can try to increase the size of the
==23725== main thread stack using the --main-stacksize= flag.
==23725== The main thread stack size used in this run was 8388608.

stream/ctx.t TEST 3: ngx.ctx in ssl_certificate_by_lua (release ctx when client aborted) - status code ok got: ''
expected: '200'
stream/ctx.t TEST 3: ngx.ctx in ssl_certificate_by_lua (release ctx when client aborted) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to do SSL handshake: handshake failed
'
stream/ctx.t TEST 3: ngx.ctx in ssl_certificate_by_lua (release ctx when client aborted) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/ctx.t TEST 3: ngx.ctx in ssl_certificate_by_lua (release ctx when client aborted) - status code ok got: ''
expected: '200'
stream/ctx.t TEST 3: ngx.ctx in ssl_certificate_by_lua (release ctx when client aborted) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to do SSL handshake: handshake failed
'
stream/ctx.t TEST 3: ngx.ctx in ssl_certificate_by_lua (release ctx when client aborted) - grep_error_log_out (req 1) @@ -1,2 +1 @@
lua release ngx.ctx at ref 1
-lua release ngx.ctx at ref 1
'
stream/ctx.t TEST 1: ngx.ctx in ssl_certificate_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==23727== Invalid read of size 4
==23727== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23727== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23727== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23727== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23727== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23727== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23727== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23727== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23727== by 0x8065F7E: main (nginx.c:382)
==23727== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23727==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/ctx.t TEST 1: ngx.ctx in ssl_certificate_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==23727==
==23727== Process terminating with default action of signal 11 (SIGSEGV)
==23727== Access not within mapped region at address 0x0
==23727== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23727== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23727== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23727== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23727== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23727== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23727== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23727== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23727== by 0x8065F7E: main (nginx.c:382)
==23727== If you believe this happened as a result of a stack
==23727== overflow in your program's main thread (unlikely but
==23727== possible), you can try to increase the size of the
==23727== main thread stack using the --main-stacksize= flag.
==23727== The main thread stack size used in this run was 8388608.

stream/ctx.t TEST 1: ngx.ctx in ssl_certificate_by_lua - status code ok got: ''
expected: '200'
stream/ctx.t TEST 1: ngx.ctx in ssl_certificate_by_lua - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-received: 42
-received: 1
'
stream/ctx.t TEST 1: ngx.ctx in ssl_certificate_by_lua - grep_error_log_out (req 0) @@ -1,2 +0,0 @@
-lua release ngx.ctx at ref 2
-lua release ngx.ctx at ref 1
'
stream/ctx.t TEST 1: ngx.ctx in ssl_certificate_by_lua - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/ctx.t TEST 1: ngx.ctx in ssl_certificate_by_lua - status code ok got: ''
expected: '200'
stream/ctx.t TEST 1: ngx.ctx in ssl_certificate_by_lua - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-received: 42
-received: 1
'
stream/ctx.t TEST 1: ngx.ctx in ssl_certificate_by_lua - grep_error_log_out (req 1) @@ -1,4 +0,0 @@
-lua release ngx.ctx at ref 2
-lua release ngx.ctx at ref 1
-lua release ngx.ctx at ref 2
-lua release ngx.ctx at ref 1
'
stream/ctx.t TEST 2: ngx.ctx in ssl_certificate_by_lua (share objects) - Can't connect to 127.0.0.1:1984: Connection refused ==23729== Invalid read of size 4
==23729== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23729== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23729== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23729== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23729== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23729== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23729== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23729== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23729== by 0x8065F7E: main (nginx.c:382)
==23729== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23729==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/ctx.t TEST 2: ngx.ctx in ssl_certificate_by_lua (share objects) - Can't connect to 127.0.0.1:1984: Connection refused ==23729==
==23729== Process terminating with default action of signal 11 (SIGSEGV)
==23729== Access not within mapped region at address 0x0
==23729== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23729== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23729== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23729== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23729== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23729== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23729== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23729== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23729== by 0x8065F7E: main (nginx.c:382)
==23729== If you believe this happened as a result of a stack
==23729== overflow in your program's main thread (unlikely but
==23729== possible), you can try to increase the size of the
==23729== main thread stack using the --main-stacksize= flag.
==23729== The main thread stack size used in this run was 8388608.

stream/ctx.t TEST 2: ngx.ctx in ssl_certificate_by_lua (share objects) - status code ok got: ''
expected: '200'
stream/ctx.t TEST 2: ngx.ctx in ssl_certificate_by_lua (share objects) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'received: 1
'
stream/ctx.t TEST 2: ngx.ctx in ssl_certificate_by_lua (share objects) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/ctx.t TEST 2: ngx.ctx in ssl_certificate_by_lua (share objects) - status code ok got: ''
expected: '200'
stream/ctx.t TEST 2: ngx.ctx in ssl_certificate_by_lua (share objects) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'received: 1
'
stream/errlog.t TEST 23: the system default filter level is "debug" - Can't connect to 127.0.0.1:1984: Connection refused ==23780== Invalid read of size 4
==23780== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23780== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23780== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23780== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23780== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23780== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23780== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23780== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23780== by 0x8065F7E: main (nginx.c:382)
==23780== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23780==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/errlog.t TEST 23: the system default filter level is "debug" - Can't connect to 127.0.0.1:1984: Connection refused ==23780==
==23780== Process terminating with default action of signal 11 (SIGSEGV)
==23780== Access not within mapped region at address 0x0
==23780== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23780== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23780== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23780== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23780== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23780== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23780== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23780== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23780== by 0x8065F7E: main (nginx.c:382)
==23780== If you believe this happened as a result of a stack
==23780== overflow in your program's main thread (unlikely but
==23780== possible), you can try to increase the size of the
==23780== main thread stack using the --main-stacksize= flag.
==23780== The main thread stack size used in this run was 8388608.

stream/errlog.t TEST 23: the system default filter level is "debug" - status code ok got: ''
expected: '200'
stream/errlog.t TEST 23: the system default filter level is "debug" - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'Is "debug" the system default filter level? true'
stream/errlog.t TEST 23: the system default filter level is "debug" - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/errlog.t TEST 23: the system default filter level is "debug" - status code ok got: ''
expected: '200'
stream/errlog.t TEST 23: the system default filter level is "debug" - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'Is "debug" the system default filter level? true'
stream/misc.t TEST 2: base.check_subsystem with non-stream subsystem - Can't connect to 127.0.0.1:1984: Connection refused ==23809== Invalid read of size 4
==23809== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23809== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23809== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23809== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23809== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23809== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23809== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23809== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23809== by 0x8065F7E: main (nginx.c:382)
==23809== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23809==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/misc.t TEST 2: base.check_subsystem with non-stream subsystem - Can't connect to 127.0.0.1:1984: Connection refused ==23809==
==23809== Process terminating with default action of signal 11 (SIGSEGV)
==23809== Access not within mapped region at address 0x0
==23809== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23809== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23809== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23809== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23809== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23809== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23809== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23809== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23809== by 0x8065F7E: main (nginx.c:382)
==23809== If you believe this happened as a result of a stack
==23809== overflow in your program's main thread (unlikely but
==23809== possible), you can try to increase the size of the
==23809== main thread stack using the --main-stacksize= flag.
==23809== The main thread stack size used in this run was 8388608.

stream/misc.t TEST 2: base.check_subsystem with non-stream subsystem - status code ok got: ''
expected: '200'
stream/misc.t TEST 2: base.check_subsystem with non-stream subsystem - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/misc.t TEST 2: base.check_subsystem with non-stream subsystem - status code ok got: ''
expected: '200'
stream/misc.t TEST 2: base.check_subsystem with non-stream subsystem - pattern "unsupported subsystem: stream" should match a line in error.log (req 1)
stream/misc.t TEST 1: base.check_subsystem - Can't connect to 127.0.0.1:1984: Connection refused ==23811== Invalid read of size 4
==23811== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23811== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23811== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23811== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23811== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23811== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23811== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23811== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23811== by 0x8065F7E: main (nginx.c:382)
==23811== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23811==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/misc.t TEST 1: base.check_subsystem - Can't connect to 127.0.0.1:1984: Connection refused ==23811==
==23811== Process terminating with default action of signal 11 (SIGSEGV)
==23811== Access not within mapped region at address 0x0
==23811== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23811== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23811== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23811== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23811== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23811== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23811== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23811== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23811== by 0x8065F7E: main (nginx.c:382)
==23811== If you believe this happened as a result of a stack
==23811== overflow in your program's main thread (unlikely but
==23811== possible), you can try to increase the size of the
==23811== main thread stack using the --main-stacksize= flag.
==23811== The main thread stack size used in this run was 8388608.

stream/misc.t TEST 1: base.check_subsystem - status code ok got: ''
expected: '200'
stream/misc.t TEST 1: base.check_subsystem - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
stream/misc.t TEST 1: base.check_subsystem - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/misc.t TEST 1: base.check_subsystem - status code ok got: ''
expected: '200'
stream/misc.t TEST 1: base.check_subsystem - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
stream/os-getenv-hup.t TEST 1: env directive explicit value is visible within init_by_lua* - Can't connect to 127.0.0.1:1984: Connection refused ==23821== Invalid read of size 4
==23821== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23821== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23821== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23821== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23821== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23821== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23821== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23821== by 0x808E51C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23821== by 0x808CAA4: ngx_spawn_process (ngx_process.c:199)
==23821== by 0x808D632: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23821== by 0x808EF58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==23821== by 0x8065F8B: main (nginx.c:385)
==23821== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23821==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
stream/os-getenv-hup.t TEST 1: env directive explicit value is visible within init_by_lua* - Can't connect to 127.0.0.1:1984: Connection refused ==23821==
==23821== Process terminating with default action of signal 11 (SIGSEGV)
==23821== Access not within mapped region at address 0x0
==23821== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23821== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23821== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23821== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23821== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23821== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23821== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23821== by 0x808E51C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23821== by 0x808CAA4: ngx_spawn_process (ngx_process.c:199)
==23821== by 0x808D632: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23821== by 0x808EF58: ngx_master_process_cycle (ngx_process_cycle.c:135)
==23821== by 0x8065F8B: main (nginx.c:385)
==23821== If you believe this happened as a result of a stack
==23821== overflow in your program's main thread (unlikely but
==23821== possible), you can try to increase the size of the
==23821== main thread stack using the --main-stacksize= flag.
==23821== The main thread stack size used in this run was 8388608.

stream/os-getenv-hup.t TEST 1: env directive explicit value is visible within init_by_lua* - status code ok got: ''
expected: '200'
stream/os-getenv-hup.t TEST 1: env directive explicit value is visible within init_by_lua* - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "old\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
stream/os-getenv-hup.t TEST 2: HUP reload changes env value (1/3) ==23833== Invalid read of size 4
==23833== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23833== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23833== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23833== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23833== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23833== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23833== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23833== by 0x808E51C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23833== by 0x808CAA4: ngx_spawn_process (ngx_process.c:199)
==23833== by 0x808D632: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23833== by 0x808F66B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23833== by 0x8065F8B: main (nginx.c:385)
==23833== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23833==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
stream/os-getenv-hup.t TEST 2: HUP reload changes env value (1/3) ==23833==
==23833== Process terminating with default action of signal 11 (SIGSEGV)
==23833== Access not within mapped region at address 0x0
==23833== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23833== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23833== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23833== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23833== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23833== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23833== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23833== by 0x808E51C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23833== by 0x808CAA4: ngx_spawn_process (ngx_process.c:199)
==23833== by 0x808D632: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23833== by 0x808F66B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23833== by 0x8065F8B: main (nginx.c:385)
==23833== If you believe this happened as a result of a stack
==23833== overflow in your program's main thread (unlikely but
==23833== possible), you can try to increase the size of the
==23833== main thread stack using the --main-stacksize= flag.
==23833== The main thread stack size used in this run was 8388608.

stream/os-getenv-hup.t TEST 2: HUP reload changes env value (1/3) - status code ok got: ''
expected: '200'
stream/os-getenv-hup.t TEST 2: HUP reload changes env value (1/3) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "new\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
stream/os-getenv-hup.t TEST 3: HUP reload changes env value (2/3) ==23865== Invalid read of size 4
==23865== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23865== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23865== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23865== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23865== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23865== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23865== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23865== by 0x808E51C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23865== by 0x808CAA4: ngx_spawn_process (ngx_process.c:199)
==23865== by 0x808D632: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23865== by 0x808F66B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23865== by 0x8065F8B: main (nginx.c:385)
==23865== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23865==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
stream/os-getenv-hup.t TEST 3: HUP reload changes env value (2/3) ==23865==
==23865== Process terminating with default action of signal 11 (SIGSEGV)
==23865== Access not within mapped region at address 0x0
==23865== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23865== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23865== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23865== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23865== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23865== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23865== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23865== by 0x808E51C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23865== by 0x808CAA4: ngx_spawn_process (ngx_process.c:199)
==23865== by 0x808D632: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23865== by 0x808F66B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23865== by 0x8065F8B: main (nginx.c:385)
==23865== If you believe this happened as a result of a stack
==23865== overflow in your program's main thread (unlikely but
==23865== possible), you can try to increase the size of the
==23865== main thread stack using the --main-stacksize= flag.
==23865== The main thread stack size used in this run was 8388608.

stream/os-getenv-hup.t TEST 3: HUP reload changes env value (2/3) - status code ok got: ''
expected: '200'
stream/os-getenv-hup.t TEST 3: HUP reload changes env value (2/3) - response_body_like - response is expected () ''
doesn't match '(?^s:\s)'
stream/os-getenv-hup.t TEST 4: HUP reload changes env value (3/3) ==23897== Invalid read of size 4
==23897== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23897== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23897== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23897== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23897== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23897== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23897== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23897== by 0x808E51C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23897== by 0x808CAA4: ngx_spawn_process (ngx_process.c:199)
==23897== by 0x808D632: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23897== by 0x808F66B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23897== by 0x8065F8B: main (nginx.c:385)
==23897== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23897==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
stream/os-getenv-hup.t TEST 4: HUP reload changes env value (3/3) ==23897==
==23897== Process terminating with default action of signal 11 (SIGSEGV)
==23897== Access not within mapped region at address 0x0
==23897== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23897== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23897== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23897== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23897== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23897== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23897== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23897== by 0x808E51C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23897== by 0x808CAA4: ngx_spawn_process (ngx_process.c:199)
==23897== by 0x808D632: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23897== by 0x808F66B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23897== by 0x8065F8B: main (nginx.c:385)
==23897== If you believe this happened as a result of a stack
==23897== overflow in your program's main thread (unlikely but
==23897== possible), you can try to increase the size of the
==23897== main thread stack using the --main-stacksize= flag.
==23897== The main thread stack size used in this run was 8388608.

stream/os-getenv-hup.t TEST 4: HUP reload changes env value (3/3) - status code ok got: ''
expected: '200'
stream/os-getenv-hup.t TEST 4: HUP reload changes env value (3/3) - 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)
stream/os-getenv-hup.t TEST 5: HUP reload changes visible environment variable (1/2) ==23929== Invalid read of size 4
==23929== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23929== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23929== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23929== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23929== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23929== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23929== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23929== by 0x808E51C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23929== by 0x808CAA4: ngx_spawn_process (ngx_process.c:199)
==23929== by 0x808D632: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23929== by 0x808F66B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23929== by 0x8065F8B: main (nginx.c:385)
==23929== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23929==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
stream/os-getenv-hup.t TEST 5: HUP reload changes visible environment variable (1/2) ==23929==
==23929== Process terminating with default action of signal 11 (SIGSEGV)
==23929== Access not within mapped region at address 0x0
==23929== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23929== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23929== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23929== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23929== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23929== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23929== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23929== by 0x808E51C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23929== by 0x808CAA4: ngx_spawn_process (ngx_process.c:199)
==23929== by 0x808D632: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23929== by 0x808F66B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23929== by 0x8065F8B: main (nginx.c:385)
==23929== If you believe this happened as a result of a stack
==23929== overflow in your program's main thread (unlikely but
==23929== possible), you can try to increase the size of the
==23929== main thread stack using the --main-stacksize= flag.
==23929== The main thread stack size used in this run was 8388608.

stream/os-getenv-hup.t TEST 5: HUP reload changes visible environment variable (1/2) - status code ok got: ''
expected: '200'
stream/os-getenv-hup.t TEST 5: HUP reload changes visible environment variable (1/2) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "old\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
stream/os-getenv-hup.t TEST 6: HUP reload changes visible environment variable (2/2) ==23961== Invalid read of size 4
==23961== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23961== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23961== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23961== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23961== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23961== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23961== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23961== by 0x808E51C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23961== by 0x808CAA4: ngx_spawn_process (ngx_process.c:199)
==23961== by 0x808D632: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23961== by 0x808F66B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23961== by 0x8065F8B: main (nginx.c:385)
==23961== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23961==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
stream/os-getenv-hup.t TEST 6: HUP reload changes visible environment variable (2/2) ==23961==
==23961== Process terminating with default action of signal 11 (SIGSEGV)
==23961== Access not within mapped region at address 0x0
==23961== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23961== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23961== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23961== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23961== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23961== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23961== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23961== by 0x808E51C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==23961== by 0x808CAA4: ngx_spawn_process (ngx_process.c:199)
==23961== by 0x808D632: ngx_start_worker_processes (ngx_process_cycle.c:387)
==23961== by 0x808F66B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==23961== by 0x8065F8B: main (nginx.c:385)
==23961== If you believe this happened as a result of a stack
==23961== overflow in your program's main thread (unlikely but
==23961== possible), you can try to increase the size of the
==23961== main thread stack using the --main-stacksize= flag.
==23961== The main thread stack size used in this run was 8388608.

stream/os-getenv-hup.t TEST 6: HUP reload changes visible environment variable (2/2) - status code ok got: ''
expected: '200'
stream/os-getenv-hup.t TEST 6: HUP reload changes visible environment variable (2/2) - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "new\x{0a}"
length: 4
strings begin to differ at char 1 (line 1 column 1)
stream/os-getenv.t TEST 9: os.getenv() can be localized after loading resty.core - Can't connect to 127.0.0.1:1984: Connection refused ==23987== Invalid read of size 4
==23987== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23987== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23987== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23987== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23987== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23987== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23987== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23987== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23987== by 0x8065F7E: main (nginx.c:382)
==23987== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23987==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/os-getenv.t TEST 9: os.getenv() can be localized after loading resty.core - Can't connect to 127.0.0.1:1984: Connection refused ==23987==
==23987== Process terminating with default action of signal 11 (SIGSEGV)
==23987== Access not within mapped region at address 0x0
==23987== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23987== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23987== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23987== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23987== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23987== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23987== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23987== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23987== by 0x8065F7E: main (nginx.c:382)
==23987== If you believe this happened as a result of a stack
==23987== overflow in your program's main thread (unlikely but
==23987== possible), you can try to increase the size of the
==23987== main thread stack using the --main-stacksize= flag.
==23987== The main thread stack size used in this run was 8388608.

stream/os-getenv.t TEST 9: os.getenv() can be localized after loading resty.core - status code ok got: ''
expected: '200'
stream/os-getenv.t TEST 9: os.getenv() can be localized after loading resty.core - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "os.getenv() overwrite was reverted\x{0a}"
length: 35
strings begin to differ at char 1 (line 1 column 1)
stream/os-getenv.t TEST 4: env directives with no value are ignored - Can't connect to 127.0.0.1:1984: Connection refused ==23988== Invalid read of size 4
==23988== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23988== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23988== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23988== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23988== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23988== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23988== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23988== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23988== by 0x8065F7E: main (nginx.c:382)
==23988== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23988==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/os-getenv.t TEST 4: env directives with no value are ignored - Can't connect to 127.0.0.1:1984: Connection refused ==23988==
==23988== Process terminating with default action of signal 11 (SIGSEGV)
==23988== Access not within mapped region at address 0x0
==23988== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23988== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23988== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23988== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23988== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23988== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23988== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23988== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23988== by 0x8065F7E: main (nginx.c:382)
==23988== If you believe this happened as a result of a stack
==23988== overflow in your program's main thread (unlikely but
==23988== possible), you can try to increase the size of the
==23988== main thread stack using the --main-stacksize= flag.
==23988== The main thread stack size used in this run was 8388608.

stream/os-getenv.t TEST 4: env directives with no value are ignored - status code ok got: ''
expected: '200'
stream/os-getenv.t TEST 4: env directives with no value are ignored - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "nil\x{0a}nil\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
stream/os-getenv.t TEST 1: env directive explicit value is visible within init_by_lua* - Can't connect to 127.0.0.1:1984: Connection refused ==23989== Invalid read of size 4
==23989== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23989== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23989== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23989== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23989== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23989== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23989== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23989== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23989== by 0x8065F7E: main (nginx.c:382)
==23989== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23989==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/os-getenv.t TEST 1: env directive explicit value is visible within init_by_lua* - Can't connect to 127.0.0.1:1984: Connection refused ==23989==
==23989== Process terminating with default action of signal 11 (SIGSEGV)
==23989== Access not within mapped region at address 0x0
==23989== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23989== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23989== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23989== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23989== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23989== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23989== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23989== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23989== by 0x8065F7E: main (nginx.c:382)
==23989== If you believe this happened as a result of a stack
==23989== overflow in your program's main thread (unlikely but
==23989== possible), you can try to increase the size of the
==23989== main thread stack using the --main-stacksize= flag.
==23989== The main thread stack size used in this run was 8388608.

stream/os-getenv.t TEST 1: env directive explicit value is visible within init_by_lua* - status code ok got: ''
expected: '200'
stream/os-getenv.t TEST 1: env directive explicit value is visible within init_by_lua* - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello\x{0a}hello\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
stream/os-getenv.t TEST 3: env directive explicit value is case-sensitive within init_by_lua* - Can't connect to 127.0.0.1:1984: Connection refused ==23990== Invalid read of size 4
==23990== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23990== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23990== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23990== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23990== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23990== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23990== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23990== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23990== by 0x8065F7E: main (nginx.c:382)
==23990== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23990==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/os-getenv.t TEST 3: env directive explicit value is case-sensitive within init_by_lua* - Can't connect to 127.0.0.1:1984: Connection refused ==23990==
==23990== Process terminating with default action of signal 11 (SIGSEGV)
==23990== Access not within mapped region at address 0x0
==23990== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23990== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23990== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23990== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23990== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23990== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23990== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23990== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23990== by 0x8065F7E: main (nginx.c:382)
==23990== If you believe this happened as a result of a stack
==23990== overflow in your program's main thread (unlikely but
==23990== possible), you can try to increase the size of the
==23990== main thread stack using the --main-stacksize= flag.
==23990== The main thread stack size used in this run was 8388608.

stream/os-getenv.t TEST 3: env directive explicit value is case-sensitive within init_by_lua* - status code ok got: ''
expected: '200'
stream/os-getenv.t TEST 3: env directive explicit value is case-sensitive within init_by_lua* - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "nil\x{0a}nil\x{0a}"
length: 8
strings begin to differ at char 1 (line 1 column 1)
stream/os-getenv.t TEST 2: env directive explicit value is visible within init_by_lua* with lua_shared_dict - Can't connect to 127.0.0.1:1984: Connection refused ==23991== Invalid read of size 4
==23991== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23991== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23991== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23991== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23991== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23991== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23991== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23991== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23991== by 0x8065F7E: main (nginx.c:382)
==23991== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23991==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/os-getenv.t TEST 2: env directive explicit value is visible within init_by_lua* with lua_shared_dict - Can't connect to 127.0.0.1:1984: Connection refused ==23991==
==23991== Process terminating with default action of signal 11 (SIGSEGV)
==23991== Access not within mapped region at address 0x0
==23991== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23991== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23991== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23991== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23991== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23991== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23991== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23991== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23991== by 0x8065F7E: main (nginx.c:382)
==23991== If you believe this happened as a result of a stack
==23991== overflow in your program's main thread (unlikely but
==23991== possible), you can try to increase the size of the
==23991== main thread stack using the --main-stacksize= flag.
==23991== The main thread stack size used in this run was 8388608.

stream/os-getenv.t TEST 2: env directive explicit value is visible within init_by_lua* with lua_shared_dict - status code ok got: ''
expected: '200'
stream/os-getenv.t TEST 2: env directive explicit value is visible within init_by_lua* with lua_shared_dict - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "hello\x{0a}hello\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
stream/os-getenv.t TEST 8: os.getenv() overwrite is reverted in worker phases - Can't connect to 127.0.0.1:1984: Connection refused ==23992== Invalid read of size 4
==23992== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23992== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23992== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23992== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23992== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23992== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23992== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23992== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23992== by 0x8065F7E: main (nginx.c:382)
==23992== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23992==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/os-getenv.t TEST 8: os.getenv() overwrite is reverted in worker phases - Can't connect to 127.0.0.1:1984: Connection refused ==23992==
==23992== Process terminating with default action of signal 11 (SIGSEGV)
==23992== Access not within mapped region at address 0x0
==23992== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23992== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23992== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23992== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23992== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23992== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23992== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23992== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23992== by 0x8065F7E: main (nginx.c:382)
==23992== If you believe this happened as a result of a stack
==23992== overflow in your program's main thread (unlikely but
==23992== possible), you can try to increase the size of the
==23992== main thread stack using the --main-stacksize= flag.
==23992== The main thread stack size used in this run was 8388608.

stream/os-getenv.t TEST 8: os.getenv() overwrite is reverted in worker phases - status code ok got: ''
expected: '200'
stream/os-getenv.t TEST 8: os.getenv() overwrite is reverted in worker phases - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "FOO=hello\x{0a}os.getenv() overwrite was reverted\x{0a}"
length: 45
strings begin to differ at char 1 (line 1 column 1)
stream/os-getenv.t TEST 7: env directive with empty value - Can't connect to 127.0.0.1:1984: Connection refused ==23993== Invalid read of size 4
==23993== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23993== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23993== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23993== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23993== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23993== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23993== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23993== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23993== by 0x8065F7E: main (nginx.c:382)
==23993== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23993==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/os-getenv.t TEST 7: env directive with empty value - Can't connect to 127.0.0.1:1984: Connection refused ==23993==
==23993== Process terminating with default action of signal 11 (SIGSEGV)
==23993== Access not within mapped region at address 0x0
==23993== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23993== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23993== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23993== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23993== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23993== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23993== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23993== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23993== by 0x8065F7E: main (nginx.c:382)
==23993== If you believe this happened as a result of a stack
==23993== overflow in your program's main thread (unlikely but
==23993== possible), you can try to increase the size of the
==23993== main thread stack using the --main-stacksize= flag.
==23993== The main thread stack size used in this run was 8388608.

stream/os-getenv.t TEST 7: env directive with empty value - status code ok got: ''
expected: '200'
stream/os-getenv.t TEST 7: env directive with empty value - response_body_like - response is expected () ''
doesn't match '(?^s:in init:\s+
in content:\s+
)'
stream/os-getenv.t TEST 6: env explicit set vs environment set - Can't connect to 127.0.0.1:1984: Connection refused ==23994== Invalid read of size 4
==23994== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23994== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23994== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23994== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23994== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23994== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23994== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23994== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23994== by 0x8065F7E: main (nginx.c:382)
==23994== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23994==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/os-getenv.t TEST 6: env explicit set vs environment set - Can't connect to 127.0.0.1:1984: Connection refused ==23994==
==23994== Process terminating with default action of signal 11 (SIGSEGV)
==23994== Access not within mapped region at address 0x0
==23994== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23994== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23994== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23994== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23994== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23994== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23994== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23994== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23994== by 0x8065F7E: main (nginx.c:382)
==23994== If you believe this happened as a result of a stack
==23994== overflow in your program's main thread (unlikely but
==23994== possible), you can try to increase the size of the
==23994== main thread stack using the --main-stacksize= flag.
==23994== The main thread stack size used in this run was 8388608.

stream/os-getenv.t TEST 6: env explicit set vs environment set - status code ok got: ''
expected: '200'
stream/os-getenv.t TEST 6: env explicit set vs environment set - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "goodbye\x{0a}goodbye\x{0a}"
length: 16
strings begin to differ at char 1 (line 1 column 1)
stream/os-getenv.t TEST 5: env is visible from environment - Can't connect to 127.0.0.1:1984: Connection refused ==23995== Invalid read of size 4
==23995== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23995== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23995== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23995== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23995== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23995== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23995== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23995== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23995== by 0x8065F7E: main (nginx.c:382)
==23995== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==23995==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/os-getenv.t TEST 5: env is visible from environment - Can't connect to 127.0.0.1:1984: Connection refused ==23995==
==23995== Process terminating with default action of signal 11 (SIGSEGV)
==23995== Access not within mapped region at address 0x0
==23995== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==23995== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==23995== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==23995== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==23995== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==23995== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==23995== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==23995== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==23995== by 0x8065F7E: main (nginx.c:382)
==23995== If you believe this happened as a result of a stack
==23995== overflow in your program's main thread (unlikely but
==23995== possible), you can try to increase the size of the
==23995== main thread stack using the --main-stacksize= flag.
==23995== The main thread stack size used in this run was 8388608.

stream/os-getenv.t TEST 5: env is visible from environment - status code ok got: ''
expected: '200'
stream/os-getenv.t TEST 5: env is visible from environment - response_body - response is expected (repeated req 0, req 0) got: ""
length: 0
expected: "world\x{0a}world\x{0a}"
length: 12
strings begin to differ at char 1 (line 1 column 1)
stream/re-base.t TEST 2: bad UTF-8 - Can't connect to 127.0.0.1:1984: Connection refused ==24000== Invalid read of size 4
==24000== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24000== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24000== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24000== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24000== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24000== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24000== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24000== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24000== by 0x8065F7E: main (nginx.c:382)
==24000== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24000==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-base.t TEST 2: bad UTF-8 - Can't connect to 127.0.0.1:1984: Connection refused ==24000==
==24000== Process terminating with default action of signal 11 (SIGSEGV)
==24000== Access not within mapped region at address 0x0
==24000== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24000== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24000== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24000== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24000== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24000== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24000== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24000== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24000== by 0x8065F7E: main (nginx.c:382)
==24000== If you believe this happened as a result of a stack
==24000== overflow in your program's main thread (unlikely but
==24000== possible), you can try to increase the size of the
==24000== main thread stack using the --main-stacksize= flag.
==24000== The main thread stack size used in this run was 8388608.
==24000== 1,024 bytes in 1 blocks are definitely lost in loss record 3,040 of 3,151
==24000== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24000== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24000== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24000== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24000== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24000== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24000== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24000== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24000== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24000== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24000== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24000== by 0x40BB675: trace_state (lj_trace.c:690)
==24000== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24000== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24000== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24000== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24000== by 0x407FA29: lua_resume (lj_api.c:1296)
==24000== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24000== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24000== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24000== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24000== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24000== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24000== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24000== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24000== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24000== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24000== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24000== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24000== by 0x8065F7E: main (nginx.c:382)
==24000==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-base.t TEST 2: bad UTF-8 - status code ok got: ''
expected: '200'
stream/re-base.t TEST 2: bad UTF-8 - response_body_like - response is expected () ''
doesn't match '(?^s:error: pcre_exec\(\) failed: -10)'
stream/re-base.t TEST 2: bad UTF-8 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-base.t TEST 2: bad UTF-8 - status code ok got: ''
expected: '200'
stream/re-base.t TEST 2: bad UTF-8 - response_body_like - response is expected () ''
doesn't match '(?^s:error: pcre_exec\(\) failed: -10)'
stream/re-base.t TEST 1: bad pattern - Can't connect to 127.0.0.1:1984: Connection refused ==24002== Invalid read of size 4
==24002== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24002== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24002== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24002== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24002== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24002== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24002== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24002== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24002== by 0x8065F7E: main (nginx.c:382)
==24002== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24002==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-base.t TEST 1: bad pattern - Can't connect to 127.0.0.1:1984: Connection refused ==24002==
==24002== Process terminating with default action of signal 11 (SIGSEGV)
==24002== Access not within mapped region at address 0x0
==24002== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24002== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24002== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24002== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24002== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24002== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24002== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24002== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24002== by 0x8065F7E: main (nginx.c:382)
==24002== If you believe this happened as a result of a stack
==24002== overflow in your program's main thread (unlikely but
==24002== possible), you can try to increase the size of the
==24002== main thread stack using the --main-stacksize= flag.
==24002== The main thread stack size used in this run was 8388608.
==24002== 1,024 bytes in 1 blocks are definitely lost in loss record 3,024 of 3,131
==24002== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24002== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24002== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24002== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24002== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24002== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24002== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24002== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24002== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24002== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24002== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24002== by 0x40BB675: trace_state (lj_trace.c:690)
==24002== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24002== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24002== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24002== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24002== by 0x407FA29: lua_resume (lj_api.c:1296)
==24002== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24002== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24002== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24002== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24002== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24002== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24002== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24002== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24002== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24002== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24002== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24002== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24002== by 0x8065F7E: main (nginx.c:382)
==24002==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-base.t TEST 1: bad pattern - status code ok got: ''
expected: '200'
stream/re-base.t TEST 1: bad pattern - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
stream/re-base.t TEST 1: bad pattern - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-base.t TEST 1: bad pattern - status code ok got: ''
expected: '200'
stream/re-base.t TEST 1: bad pattern - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_compile() failed: missing ) in "(abc"
'
stream/re-base.t TEST 4: UTF-8 mode with UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused ==24004== Invalid read of size 4
==24004== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24004== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24004== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24004== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24004== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24004== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24004== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24004== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24004== by 0x8065F7E: main (nginx.c:382)
==24004== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24004==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-base.t TEST 4: UTF-8 mode with UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused ==24004==
==24004== Process terminating with default action of signal 11 (SIGSEGV)
==24004== Access not within mapped region at address 0x0
==24004== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24004== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24004== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24004== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24004== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24004== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24004== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24004== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24004== by 0x8065F7E: main (nginx.c:382)
==24004== If you believe this happened as a result of a stack
==24004== overflow in your program's main thread (unlikely but
==24004== possible), you can try to increase the size of the
==24004== main thread stack using the --main-stacksize= flag.
==24004== The main thread stack size used in this run was 8388608.
==24004== 1,024 bytes in 1 blocks are definitely lost in loss record 3,037 of 3,148
==24004== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24004== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24004== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24004== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24004== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24004== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24004== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24004== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24004== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24004== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24004== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24004== by 0x40BB675: trace_state (lj_trace.c:690)
==24004== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24004== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24004== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24004== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24004== by 0x407FA29: lua_resume (lj_api.c:1296)
==24004== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24004== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24004== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24004== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24004== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24004== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24004== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24004== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24004== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24004== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24004== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24004== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24004== by 0x8065F7E: main (nginx.c:382)
==24004==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-base.t TEST 4: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
stream/re-base.t TEST 4: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ä½ 
'
stream/re-base.t TEST 4: UTF-8 mode with UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-base.t TEST 4: UTF-8 mode with UTF-8 sequence checks - status code ok got: ''
expected: '200'
stream/re-base.t TEST 4: UTF-8 mode with UTF-8 sequence checks - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ä½ 
'
stream/re-base.t TEST 3: UTF-8 mode without UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused ==24006== Invalid read of size 4
==24006== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24006== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24006== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24006== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24006== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24006== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24006== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24006== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24006== by 0x8065F7E: main (nginx.c:382)
==24006== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24006==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-base.t TEST 3: UTF-8 mode without UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused ==24006==
==24006== Process terminating with default action of signal 11 (SIGSEGV)
==24006== Access not within mapped region at address 0x0
==24006== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24006== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24006== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24006== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24006== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24006== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24006== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24006== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24006== by 0x8065F7E: main (nginx.c:382)
==24006== If you believe this happened as a result of a stack
==24006== overflow in your program's main thread (unlikely but
==24006== possible), you can try to increase the size of the
==24006== main thread stack using the --main-stacksize= flag.
==24006== The main thread stack size used in this run was 8388608.
==24006== 1,024 bytes in 1 blocks are definitely lost in loss record 3,039 of 3,150
==24006== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24006== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24006== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24006== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24006== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24006== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24006== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24006== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24006== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24006== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24006== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24006== by 0x40BB675: trace_state (lj_trace.c:690)
==24006== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24006== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24006== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24006== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24006== by 0x407FA29: lua_resume (lj_api.c:1296)
==24006== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24006== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24006== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24006== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24006== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24006== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24006== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24006== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24006== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24006== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24006== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24006== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24006== by 0x8065F7E: main (nginx.c:382)
==24006==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-base.t TEST 3: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
stream/re-base.t TEST 3: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ä½ 
'
stream/re-base.t TEST 3: UTF-8 mode without UTF-8 sequence checks - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-base.t TEST 3: UTF-8 mode without UTF-8 sequence checks - status code ok got: ''
expected: '200'
stream/re-base.t TEST 3: UTF-8 mode without UTF-8 sequence checks - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ä½ 
'
stream/re-base.t TEST 6: just not hit match limit - Can't connect to 127.0.0.1:1984: Connection refused ==24008== Invalid read of size 4
==24008== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24008== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24008== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24008== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24008== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24008== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24008== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24008== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24008== by 0x8065F7E: main (nginx.c:382)
==24008== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24008==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-base.t TEST 6: just not hit match limit - Can't connect to 127.0.0.1:1984: Connection refused ==24008==
==24008== Process terminating with default action of signal 11 (SIGSEGV)
==24008== Access not within mapped region at address 0x0
==24008== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24008== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24008== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24008== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24008== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24008== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24008== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24008== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24008== by 0x8065F7E: main (nginx.c:382)
==24008== If you believe this happened as a result of a stack
==24008== overflow in your program's main thread (unlikely but
==24008== possible), you can try to increase the size of the
==24008== main thread stack using the --main-stacksize= flag.
==24008== The main thread stack size used in this run was 8388608.
==24008== 1,024 bytes in 1 blocks are definitely lost in loss record 3,038 of 3,149
==24008== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24008== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24008== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24008== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24008== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24008== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24008== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24008== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24008== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24008== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24008== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24008== by 0x40BB675: trace_state (lj_trace.c:690)
==24008== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24008== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24008== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24008== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24008== by 0x407FA29: lua_resume (lj_api.c:1296)
==24008== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24008== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24008== by 0x818552D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==24008== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24008== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24008== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24008== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24008== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24008== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24008== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24008== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24008== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24008== by 0x8065F7E: main (nginx.c:382)
==24008==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_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
}
stream/re-base.t TEST 6: just not hit match limit - status code ok got: ''
expected: '200'
stream/re-base.t TEST 6: just not hit match limit - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to match
'
stream/re-base.t TEST 6: just not hit match limit - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-base.t TEST 6: just not hit match limit - status code ok got: ''
expected: '200'
stream/re-base.t TEST 6: just not hit match limit - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to match
'
stream/re-base.t TEST 5: just hit match limit - Can't connect to 127.0.0.1:1984: Connection refused ==24010== Invalid read of size 4
==24010== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24010== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24010== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24010== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24010== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24010== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24010== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24010== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24010== by 0x8065F7E: main (nginx.c:382)
==24010== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24010==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-base.t TEST 5: just hit match limit - Can't connect to 127.0.0.1:1984: Connection refused ==24010==
==24010== Process terminating with default action of signal 11 (SIGSEGV)
==24010== Access not within mapped region at address 0x0
==24010== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24010== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24010== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24010== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24010== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24010== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24010== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24010== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24010== by 0x8065F7E: main (nginx.c:382)
==24010== If you believe this happened as a result of a stack
==24010== overflow in your program's main thread (unlikely but
==24010== possible), you can try to increase the size of the
==24010== main thread stack using the --main-stacksize= flag.
==24010== The main thread stack size used in this run was 8388608.
==24010== 1,024 bytes in 1 blocks are definitely lost in loss record 3,038 of 3,149
==24010== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24010== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24010== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24010== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24010== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24010== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24010== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24010== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24010== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24010== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24010== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24010== by 0x40BB675: trace_state (lj_trace.c:690)
==24010== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24010== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24010== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24010== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24010== by 0x407FA29: lua_resume (lj_api.c:1296)
==24010== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24010== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24010== by 0x818552D: ngx_stream_lua_content_handler_file (ngx_stream_lua_contentby.c:249)
==24010== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24010== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24010== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24010== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24010== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24010== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24010== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24010== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24010== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24010== by 0x8065F7E: main (nginx.c:382)
==24010==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_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
}
stream/re-base.t TEST 5: just hit match limit - status code ok got: ''
expected: '200'
stream/re-base.t TEST 5: just hit match limit - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_exec() failed: -8
'
stream/re-base.t TEST 5: just hit match limit - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-base.t TEST 5: just hit match limit - status code ok got: ''
expected: '200'
stream/re-base.t TEST 5: just hit match limit - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_exec() failed: -8
'
stream/re-find.t TEST 6: specify the group (2) - Can't connect to 127.0.0.1:1984: Connection refused ==24016== Invalid read of size 4
==24016== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24016== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24016== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24016== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24016== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24016== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24016== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24016== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24016== by 0x8065F7E: main (nginx.c:382)
==24016== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24016==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-find.t TEST 6: specify the group (2) - Can't connect to 127.0.0.1:1984: Connection refused ==24016==
==24016== Process terminating with default action of signal 11 (SIGSEGV)
==24016== Access not within mapped region at address 0x0
==24016== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24016== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24016== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24016== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24016== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24016== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24016== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24016== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24016== by 0x8065F7E: main (nginx.c:382)
==24016== If you believe this happened as a result of a stack
==24016== overflow in your program's main thread (unlikely but
==24016== possible), you can try to increase the size of the
==24016== main thread stack using the --main-stacksize= flag.
==24016== The main thread stack size used in this run was 8388608.
==24016== 4,096 bytes in 1 blocks are definitely lost in loss record 3,138 of 3,165
==24016== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24016== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24016== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24016== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24016== by 0x408F5A6: lj_ir_nextins (lj_iropt.h:34)
==24016== by 0x408F5A6: lj_opt_cse (lj_opt_fold.c:2549)
==24016== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24016== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24016== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24016== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24016== by 0x40BB675: trace_state (lj_trace.c:690)
==24016== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24016== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24016== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24016== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24016== by 0x407FA29: lua_resume (lj_api.c:1296)
==24016== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24016== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24016== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24016== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24016== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24016== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24016== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24016== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24016== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24016== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24016== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24016== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24016== by 0x8065F7E: main (nginx.c:382)
==24016==
{
<insert_a_suppression_name_here>
Memcheck: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
}
stream/re-find.t TEST 6: specify the group (2) - status code ok got: ''
expected: '200'
stream/re-find.t TEST 6: specify the group (2) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-from: 9
-to: 11
-matched: 234
'
stream/re-find.t TEST 6: specify the group (2) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-find.t TEST 6: specify the group (2) - status code ok got: ''
expected: '200'
stream/re-find.t TEST 6: specify the group (2) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-from: 9
-to: 11
-matched: 234
'
stream/re-find.t TEST 3: not matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24018== Invalid read of size 4
==24018== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24018== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24018== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24018== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24018== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24018== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24018== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24018== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24018== by 0x8065F7E: main (nginx.c:382)
==24018== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24018==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-find.t TEST 3: not matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24018==
==24018== Process terminating with default action of signal 11 (SIGSEGV)
==24018== Access not within mapped region at address 0x0
==24018== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24018== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24018== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24018== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24018== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24018== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24018== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24018== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24018== by 0x8065F7E: main (nginx.c:382)
==24018== If you believe this happened as a result of a stack
==24018== overflow in your program's main thread (unlikely but
==24018== possible), you can try to increase the size of the
==24018== main thread stack using the --main-stacksize= flag.
==24018== The main thread stack size used in this run was 8388608.
==24018== 2,048 bytes in 1 blocks are definitely lost in loss record 3,099 of 3,162
==24018== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24018== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24018== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24018== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24018== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24018== by 0x408A8C6: ir_nextk (lj_ir.c:175)
==24018== by 0x408A8C6: lj_ir_kgc (lj_ir.c:286)
==24018== by 0x409ED21: lj_record_ins (lj_record.c:2110)
==24018== by 0x40BB16A: trace_state (lj_trace.c:680)
==24018== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24018== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24018== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24018== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24018== by 0x407FA29: lua_resume (lj_api.c:1296)
==24018== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24018== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24018== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24018== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24018== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24018== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24018== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24018== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24018== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24018== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24018== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24018== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24018== by 0x8065F7E: main (nginx.c:382)
==24018==
{
<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
}
stream/re-find.t TEST 3: not matched, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
stream/re-find.t TEST 3: not matched, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'no match
'
stream/re-find.t TEST 3: not matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-find.t TEST 3: not matched, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
stream/re-find.t TEST 3: not matched, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'no match
'
stream/re-find.t TEST 4: nil submatch (2nd) - Can't connect to 127.0.0.1:1984: Connection refused ==24020== Invalid read of size 4
==24020== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24020== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24020== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24020== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24020== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24020== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24020== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24020== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24020== by 0x8065F7E: main (nginx.c:382)
==24020== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24020==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-find.t TEST 4: nil submatch (2nd) - Can't connect to 127.0.0.1:1984: Connection refused ==24020==
==24020== Process terminating with default action of signal 11 (SIGSEGV)
==24020== Access not within mapped region at address 0x0
==24020== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24020== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24020== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24020== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24020== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24020== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24020== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24020== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24020== by 0x8065F7E: main (nginx.c:382)
==24020== If you believe this happened as a result of a stack
==24020== overflow in your program's main thread (unlikely but
==24020== possible), you can try to increase the size of the
==24020== main thread stack using the --main-stacksize= flag.
==24020== The main thread stack size used in this run was 8388608.
==24020== 2,048 bytes in 1 blocks are definitely lost in loss record 2,985 of 3,040
==24020== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24020== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24020== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24020== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24020== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24020== by 0x408A8C6: ir_nextk (lj_ir.c:175)
==24020== by 0x408A8C6: lj_ir_kgc (lj_ir.c:286)
==24020== by 0x409ED21: lj_record_ins (lj_record.c:2110)
==24020== by 0x40BB16A: trace_state (lj_trace.c:680)
==24020== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24020== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24020== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24020== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24020== by 0x407FA29: lua_resume (lj_api.c:1296)
==24020== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24020== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24020== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24020== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24020== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24020== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24020== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24020== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24020== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24020== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24020== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24020== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24020== by 0x8065F7E: main (nginx.c:382)
==24020==
{
<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
}
stream/re-find.t TEST 4: nil submatch (2nd) - status code ok got: ''
expected: '200'
stream/re-find.t TEST 4: nil submatch (2nd) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not matched!
'
stream/re-find.t TEST 4: nil submatch (2nd) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-find.t TEST 4: nil submatch (2nd) - status code ok got: ''
expected: '200'
stream/re-find.t TEST 4: nil submatch (2nd) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not matched!
'
stream/re-find.t TEST 2: matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24022== Invalid read of size 4
==24022== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24022== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24022== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24022== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24022== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24022== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24022== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24022== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24022== by 0x8065F7E: main (nginx.c:382)
==24022== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24022==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-find.t TEST 2: matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24022==
==24022== Process terminating with default action of signal 11 (SIGSEGV)
==24022== Access not within mapped region at address 0x0
==24022== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24022== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24022== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24022== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24022== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24022== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24022== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24022== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24022== by 0x8065F7E: main (nginx.c:382)
==24022== If you believe this happened as a result of a stack
==24022== overflow in your program's main thread (unlikely but
==24022== possible), you can try to increase the size of the
==24022== main thread stack using the --main-stacksize= flag.
==24022== The main thread stack size used in this run was 8388608.
==24022== 2,048 bytes in 1 blocks are definitely lost in loss record 3,089 of 3,150
==24022== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24022== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24022== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24022== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24022== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24022== by 0x408A8C6: ir_nextk (lj_ir.c:175)
==24022== by 0x408A8C6: lj_ir_kgc (lj_ir.c:286)
==24022== by 0x409ED21: lj_record_ins (lj_record.c:2110)
==24022== by 0x40BB16A: trace_state (lj_trace.c:680)
==24022== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24022== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24022== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24022== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24022== by 0x407FA29: lua_resume (lj_api.c:1296)
==24022== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24022== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24022== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24022== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24022== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24022== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24022== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24022== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24022== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24022== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24022== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24022== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24022== by 0x8065F7E: main (nginx.c:382)
==24022==
{
<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
}
stream/re-find.t TEST 2: matched, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
stream/re-find.t TEST 2: matched, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 1
-matched: a
'
stream/re-find.t TEST 2: matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-find.t TEST 2: matched, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
stream/re-find.t TEST 2: matched, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 1
-matched: a
'
stream/re-find.t TEST 1: matched, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24024== Invalid read of size 4
==24024== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24024== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24024== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24024== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24024== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24024== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24024== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24024== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24024== by 0x8065F7E: main (nginx.c:382)
==24024== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24024==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-find.t TEST 1: matched, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24024==
==24024== Process terminating with default action of signal 11 (SIGSEGV)
==24024== Access not within mapped region at address 0x0
==24024== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24024== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24024== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24024== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24024== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24024== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24024== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24024== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24024== by 0x8065F7E: main (nginx.c:382)
==24024== If you believe this happened as a result of a stack
==24024== overflow in your program's main thread (unlikely but
==24024== possible), you can try to increase the size of the
==24024== main thread stack using the --main-stacksize= flag.
==24024== The main thread stack size used in this run was 8388608.
==24024== 2,048 bytes in 1 blocks are definitely lost in loss record 3,090 of 3,158
==24024== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24024== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24024== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24024== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24024== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24024== by 0x408A511: ir_nextk (lj_ir.c:175)
==24024== by 0x408A511: lj_ir_kint (lj_ir.c:206)
==24024== by 0x40A672C: recff_cdata_index (lj_crecord.c:918)
==24024== by 0x40AE0BC: lj_ffrecord_func (lj_ffrecord.c:1254)
==24024== by 0x409F4CA: lj_record_ins (lj_record.c:2479)
==24024== by 0x40BB16A: trace_state (lj_trace.c:680)
==24024== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24024== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24024== by 0x407596F: lj_dispatch_call (lj_dispatch.c:488)
==24024== by 0x406904F: lj_vm_hotcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24024== by 0x407FA29: lua_resume (lj_api.c:1296)
==24024== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24024== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24024== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24024== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24024== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24024== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24024== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24024== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24024== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24024== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24024== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24024== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24024== by 0x8065F7E: main (nginx.c:382)
==24024==
{
<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:recff_cdata_index
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
}
stream/re-find.t TEST 1: matched, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
stream/re-find.t TEST 1: matched, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 1
-matched: a
'
stream/re-find.t TEST 1: matched, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-find.t TEST 1: matched, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
stream/re-find.t TEST 1: matched, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-from: 1
-to: 1
-matched: a
'
stream/re-find.t TEST 5: nil submatch (1st) - Can't connect to 127.0.0.1:1984: Connection refused ==24026== Invalid read of size 4
==24026== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24026== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24026== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24026== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24026== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24026== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24026== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24026== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24026== by 0x8065F7E: main (nginx.c:382)
==24026== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24026==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-find.t TEST 5: nil submatch (1st) - Can't connect to 127.0.0.1:1984: Connection refused ==24026==
==24026== Process terminating with default action of signal 11 (SIGSEGV)
==24026== Access not within mapped region at address 0x0
==24026== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24026== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24026== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24026== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24026== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24026== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24026== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24026== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24026== by 0x8065F7E: main (nginx.c:382)
==24026== If you believe this happened as a result of a stack
==24026== overflow in your program's main thread (unlikely but
==24026== possible), you can try to increase the size of the
==24026== main thread stack using the --main-stacksize= flag.
==24026== The main thread stack size used in this run was 8388608.
==24026== 4,096 bytes in 1 blocks are definitely lost in loss record 3,130 of 3,156
==24026== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24026== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24026== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24026== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24026== by 0x408F5A6: lj_ir_nextins (lj_iropt.h:34)
==24026== by 0x408F5A6: lj_opt_cse (lj_opt_fold.c:2549)
==24026== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24026== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24026== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24026== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24026== by 0x40BB675: trace_state (lj_trace.c:690)
==24026== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24026== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24026== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24026== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24026== by 0x407FA29: lua_resume (lj_api.c:1296)
==24026== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24026== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24026== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24026== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24026== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24026== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24026== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24026== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24026== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24026== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24026== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24026== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24026== by 0x8065F7E: main (nginx.c:382)
==24026==
{
<insert_a_suppression_name_here>
Memcheck: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
}
stream/re-find.t TEST 5: nil submatch (1st) - status code ok got: ''
expected: '200'
stream/re-find.t TEST 5: nil submatch (1st) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not matched!
'
stream/re-find.t TEST 5: nil submatch (1st) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-find.t TEST 5: nil submatch (1st) - status code ok got: ''
expected: '200'
stream/re-find.t TEST 5: nil submatch (1st) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not matched!
'
stream/re-gmatch.t TEST 2: matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24032== Invalid read of size 4
==24032== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24032== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24032== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24032== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24032== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24032== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24032== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24032== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24032== by 0x8065F7E: main (nginx.c:382)
==24032== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24032==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-gmatch.t TEST 2: matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24032==
==24032== Process terminating with default action of signal 11 (SIGSEGV)
==24032== Access not within mapped region at address 0x0
==24032== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24032== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24032== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24032== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24032== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24032== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24032== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24032== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24032== by 0x8065F7E: main (nginx.c:382)
==24032== If you believe this happened as a result of a stack
==24032== overflow in your program's main thread (unlikely but
==24032== possible), you can try to increase the size of the
==24032== main thread stack using the --main-stacksize= flag.
==24032== The main thread stack size used in this run was 8388608.
==24032== 4,096 bytes in 1 blocks are definitely lost in loss record 3,151 of 3,183
==24032== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24032== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24032== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24032== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24032== by 0x408F5A6: lj_ir_nextins (lj_iropt.h:34)
==24032== by 0x408F5A6: lj_opt_cse (lj_opt_fold.c:2549)
==24032== by 0x40A7386: crec_call_args (lj_crecord.c:1171)
==24032== by 0x40A7386: crec_call (lj_crecord.c:1231)
==24032== by 0x40A7386: recff_cdata_call (lj_crecord.c:1277)
==24032== by 0x40AE0BC: lj_ffrecord_func (lj_ffrecord.c:1254)
==24032== by 0x409F4CA: lj_record_ins (lj_record.c:2479)
==24032== by 0x40BB16A: trace_state (lj_trace.c:680)
==24032== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24032== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24032== by 0x407596F: lj_dispatch_call (lj_dispatch.c:488)
==24032== by 0x406904F: lj_vm_hotcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24032== by 0x407FA29: lua_resume (lj_api.c:1296)
==24032== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24032== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24032== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24032== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24032== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24032== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24032== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24032== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24032== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24032== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24032== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24032== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24032== by 0x8065F7E: main (nginx.c:382)
==24032==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_opt_cse
fun:crec_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
}
stream/re-gmatch.t TEST 2: matched, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 2: matched, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-matched: hello
-matched: world
'
stream/re-gmatch.t TEST 2: matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 2: matched, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 2: matched, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-matched: hello
-matched: world
'
stream/re-gmatch.t TEST 9: unmatched trailing captures are false - Can't connect to 127.0.0.1:1984: Connection refused ==24034== Invalid read of size 4
==24034== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24034== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24034== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24034== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24034== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24034== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24034== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24034== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24034== by 0x8065F7E: main (nginx.c:382)
==24034== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24034==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-gmatch.t TEST 9: unmatched trailing captures are false - Can't connect to 127.0.0.1:1984: Connection refused ==24034==
==24034== Process terminating with default action of signal 11 (SIGSEGV)
==24034== Access not within mapped region at address 0x0
==24034== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24034== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24034== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24034== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24034== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24034== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24034== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24034== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24034== by 0x8065F7E: main (nginx.c:382)
==24034== If you believe this happened as a result of a stack
==24034== overflow in your program's main thread (unlikely but
==24034== possible), you can try to increase the size of the
==24034== main thread stack using the --main-stacksize= flag.
==24034== The main thread stack size used in this run was 8388608.
==24034== 1,024 bytes in 1 blocks are definitely lost in loss record 3,041 of 3,152
==24034== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24034== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24034== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24034== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24034== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24034== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24034== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24034== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24034== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24034== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24034== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24034== by 0x40BB675: trace_state (lj_trace.c:690)
==24034== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24034== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24034== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24034== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24034== by 0x407FA29: lua_resume (lj_api.c:1296)
==24034== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24034== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24034== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24034== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24034== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24034== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24034== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24034== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24034== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24034== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24034== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24034== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24034== by 0x8065F7E: main (nginx.c:382)
==24034==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-gmatch.t TEST 9: unmatched trailing captures are false - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 9: unmatched trailing captures are false - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-hello
-hello
-false
-false
'
stream/re-gmatch.t TEST 9: unmatched trailing captures are false - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 9: unmatched trailing captures are false - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 9: unmatched trailing captures are false - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-hello
-hello
-false
-false
'
stream/re-gmatch.t TEST 6: submatches, matched, with regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24036== Invalid read of size 4
==24036== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24036== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24036== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24036== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24036== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24036== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24036== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24036== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24036== by 0x8065F7E: main (nginx.c:382)
==24036== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24036==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-gmatch.t TEST 6: submatches, matched, with regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24036==
==24036== Process terminating with default action of signal 11 (SIGSEGV)
==24036== Access not within mapped region at address 0x0
==24036== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24036== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24036== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24036== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24036== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24036== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24036== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24036== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24036== by 0x8065F7E: main (nginx.c:382)
==24036== If you believe this happened as a result of a stack
==24036== overflow in your program's main thread (unlikely but
==24036== possible), you can try to increase the size of the
==24036== main thread stack using the --main-stacksize= flag.
==24036== The main thread stack size used in this run was 8388608.
==24036== 2,048 bytes in 1 blocks are definitely lost in loss record 3,111 of 3,181
==24036== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24036== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24036== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24036== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24036== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24036== by 0x408A511: ir_nextk (lj_ir.c:175)
==24036== by 0x408A511: lj_ir_kint (lj_ir.c:206)
==24036== by 0x40A3789: crec_tv_ct (lj_crecord.c:595)
==24036== by 0x40A60EB: recff_cdata_index (lj_crecord.c:932)
==24036== by 0x40AE0BC: lj_ffrecord_func (lj_ffrecord.c:1254)
==24036== by 0x409F4CA: lj_record_ins (lj_record.c:2479)
==24036== by 0x40BB16A: trace_state (lj_trace.c:680)
==24036== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24036== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24036== by 0x407596F: lj_dispatch_call (lj_dispatch.c:488)
==24036== by 0x406904F: lj_vm_hotcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24036== by 0x407FA29: lua_resume (lj_api.c:1296)
==24036== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24036== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24036== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24036== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24036== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24036== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24036== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24036== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24036== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24036== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24036== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24036== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24036== by 0x8065F7E: main (nginx.c:382)
==24036==
{
<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_tv_ct
fun:recff_cdata_index
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
}
stream/re-gmatch.t TEST 6: submatches, matched, with regex cache - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 6: submatches, matched, with regex cache - response_body - response is expected (repeated req 0, req 0) @@ -1,8 +0,0 @@
-matched: hello
-$1: h
-$2: ello
-$3: nil
-matched: world
-$1: w
-$2: orld
-$3: nil
'
stream/re-gmatch.t TEST 6: submatches, matched, with regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 6: submatches, matched, with regex cache - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 6: submatches, matched, with regex cache - response_body - response is expected (repeated req 1, req 0) @@ -1,8 +0,0 @@
-matched: hello
-$1: h
-$2: ello
-$3: nil
-matched: world
-$1: w
-$2: orld
-$3: nil
'
stream/re-gmatch.t TEST 10: unmatched named captures are false - Can't connect to 127.0.0.1:1984: Connection refused ==24038== Invalid read of size 4
==24038== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24038== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24038== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24038== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24038== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24038== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24038== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24038== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24038== by 0x8065F7E: main (nginx.c:382)
==24038== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24038==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-gmatch.t TEST 10: unmatched named captures are false - Can't connect to 127.0.0.1:1984: Connection refused ==24038==
==24038== Process terminating with default action of signal 11 (SIGSEGV)
==24038== Access not within mapped region at address 0x0
==24038== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24038== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24038== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24038== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24038== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24038== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24038== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24038== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24038== by 0x8065F7E: main (nginx.c:382)
==24038== If you believe this happened as a result of a stack
==24038== overflow in your program's main thread (unlikely but
==24038== possible), you can try to increase the size of the
==24038== main thread stack using the --main-stacksize= flag.
==24038== The main thread stack size used in this run was 8388608.
==24038== 1,024 bytes in 1 blocks are definitely lost in loss record 3,050 of 3,160
==24038== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24038== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24038== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24038== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24038== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24038== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24038== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24038== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24038== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24038== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24038== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24038== by 0x40BB675: trace_state (lj_trace.c:690)
==24038== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24038== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24038== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24038== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24038== by 0x407FA29: lua_resume (lj_api.c:1296)
==24038== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24038== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24038== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24038== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24038== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24038== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24038== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24038== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24038== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24038== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24038== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24038== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24038== by 0x8065F7E: main (nginx.c:382)
==24038==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-gmatch.t TEST 10: unmatched named captures are false - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 10: unmatched named captures are false - response_body - response is expected (repeated req 0, req 0) @@ -1,14 +0,0 @@
-hello!
-hello
-false
-!
-hello
-false
-!
-world!
-world
-false
-!
-world
-false
-!
'
stream/re-gmatch.t TEST 10: unmatched named captures are false - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 10: unmatched named captures are false - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 10: unmatched named captures are false - response_body - response is expected (repeated req 1, req 0) @@ -1,14 +0,0 @@
-hello!
-hello
-false
-!
-hello
-false
-!
-world!
-world
-false
-!
-world
-false
-!
'
stream/re-gmatch.t TEST 7: named submatches - Can't connect to 127.0.0.1:1984: Connection refused ==24040== Invalid read of size 4
==24040== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24040== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24040== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24040== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24040== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24040== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24040== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24040== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24040== by 0x8065F7E: main (nginx.c:382)
==24040== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24040==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-gmatch.t TEST 7: named submatches - Can't connect to 127.0.0.1:1984: Connection refused ==24040==
==24040== Process terminating with default action of signal 11 (SIGSEGV)
==24040== Access not within mapped region at address 0x0
==24040== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24040== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24040== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24040== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24040== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24040== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24040== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24040== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24040== by 0x8065F7E: main (nginx.c:382)
==24040== If you believe this happened as a result of a stack
==24040== overflow in your program's main thread (unlikely but
==24040== possible), you can try to increase the size of the
==24040== main thread stack using the --main-stacksize= flag.
==24040== The main thread stack size used in this run was 8388608.
==24040== 2,048 bytes in 1 blocks are definitely lost in loss record 3,113 of 3,185
==24040== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24040== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24040== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24040== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24040== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24040== by 0x408A511: ir_nextk (lj_ir.c:175)
==24040== by 0x408A511: lj_ir_kint (lj_ir.c:206)
==24040== by 0x409BD2D: rec_idx_key (lj_record.c:1376)
==24040== by 0x409BD2D: lj_record_idx (lj_record.c:1455)
==24040== by 0x409F552: lj_record_ins (lj_record.c:2339)
==24040== by 0x40BB16A: trace_state (lj_trace.c:680)
==24040== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24040== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24040== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24040== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24040== by 0x407FA29: lua_resume (lj_api.c:1296)
==24040== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24040== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24040== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24040== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24040== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24040== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24040== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24040== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24040== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24040== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24040== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24040== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24040== by 0x8065F7E: main (nginx.c:382)
==24040==
{
<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:rec_idx_key
fun:lj_record_idx
fun:lj_record_ins
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-gmatch.t TEST 7: named submatches - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 7: named submatches - response_body - response is expected (repeated req 0, req 0) @@ -1,10 +0,0 @@
-matched: hello
-$1: h
-$2: ello
-$first: h
-$second: nil
-matched: world
-$1: w
-$2: orld
-$first: w
-$second: nil
'
stream/re-gmatch.t TEST 7: named submatches - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 7: named submatches - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 7: named submatches - response_body - response is expected (repeated req 1, req 0) @@ -1,10 +0,0 @@
-matched: hello
-$1: h
-$2: ello
-$first: h
-$second: nil
-matched: world
-$1: w
-$2: orld
-$first: w
-$second: nil
'
stream/re-gmatch.t TEST 1: matched, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24042== Invalid read of size 4
==24042== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24042== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24042== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24042== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24042== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24042== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24042== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24042== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24042== by 0x8065F7E: main (nginx.c:382)
==24042== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24042==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-gmatch.t TEST 1: matched, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24042==
==24042== Process terminating with default action of signal 11 (SIGSEGV)
==24042== Access not within mapped region at address 0x0
==24042== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24042== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24042== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24042== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24042== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24042== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24042== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24042== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24042== by 0x8065F7E: main (nginx.c:382)
==24042== If you believe this happened as a result of a stack
==24042== overflow in your program's main thread (unlikely but
==24042== possible), you can try to increase the size of the
==24042== main thread stack using the --main-stacksize= flag.
==24042== The main thread stack size used in this run was 8388608.
==24042== 4,096 bytes in 1 blocks are definitely lost in loss record 3,163 of 3,196
==24042== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24042== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24042== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24042== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24042== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24042== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24042== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24042== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24042== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24042== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24042== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24042== by 0x40BB675: trace_state (lj_trace.c:690)
==24042== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24042== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24042== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24042== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24042== by 0x407FA29: lua_resume (lj_api.c:1296)
==24042== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24042== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24042== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24042== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24042== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24042== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24042== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24042== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24042== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24042== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24042== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24042== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24042== by 0x8065F7E: main (nginx.c:382)
==24042==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-gmatch.t TEST 1: matched, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 1: matched, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-matched: hello
-matched: world
'
stream/re-gmatch.t TEST 1: matched, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 1: matched, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 1: matched, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-matched: hello
-matched: world
'
stream/re-gmatch.t TEST 12: an exhausted gmatch iterator should return nil - Can't connect to 127.0.0.1:1984: Connection refused ==24044== Invalid read of size 4
==24044== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24044== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24044== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24044== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24044== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24044== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24044== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24044== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24044== by 0x8065F7E: main (nginx.c:382)
==24044== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24044==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-gmatch.t TEST 12: an exhausted gmatch iterator should return nil - Can't connect to 127.0.0.1:1984: Connection refused ==24044==
==24044== Process terminating with default action of signal 11 (SIGSEGV)
==24044== Access not within mapped region at address 0x0
==24044== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24044== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24044== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24044== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24044== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24044== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24044== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24044== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24044== by 0x8065F7E: main (nginx.c:382)
==24044== If you believe this happened as a result of a stack
==24044== overflow in your program's main thread (unlikely but
==24044== possible), you can try to increase the size of the
==24044== main thread stack using the --main-stacksize= flag.
==24044== The main thread stack size used in this run was 8388608.
==24044== 1,024 bytes in 1 blocks are definitely lost in loss record 3,028 of 3,139
==24044== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24044== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24044== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24044== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24044== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24044== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24044== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24044== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24044== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24044== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24044== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24044== by 0x40BB675: trace_state (lj_trace.c:690)
==24044== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24044== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24044== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24044== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24044== by 0x407FA29: lua_resume (lj_api.c:1296)
==24044== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24044== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24044== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24044== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24044== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24044== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24044== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24044== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24044== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24044== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24044== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24044== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24044== by 0x8065F7E: main (nginx.c:382)
==24044==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-gmatch.t TEST 12: an exhausted gmatch iterator should return nil - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 12: an exhausted gmatch iterator should return nil - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-matched: hello
-matched: nil
-matched: nil
'
stream/re-gmatch.t TEST 12: an exhausted gmatch iterator should return nil - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 12: an exhausted gmatch iterator should return nil - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 12: an exhausted gmatch iterator should return nil - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-matched: hello
-matched: nil
-matched: nil
'
stream/re-gmatch.t TEST 4: not matched, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24046== Invalid read of size 4
==24046== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24046== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24046== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24046== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24046== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24046== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24046== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24046== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24046== by 0x8065F7E: main (nginx.c:382)
==24046== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24046==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-gmatch.t TEST 4: not matched, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24046==
==24046== Process terminating with default action of signal 11 (SIGSEGV)
==24046== Access not within mapped region at address 0x0
==24046== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24046== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24046== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24046== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24046== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24046== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24046== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24046== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24046== by 0x8065F7E: main (nginx.c:382)
==24046== If you believe this happened as a result of a stack
==24046== overflow in your program's main thread (unlikely but
==24046== possible), you can try to increase the size of the
==24046== main thread stack using the --main-stacksize= flag.
==24046== The main thread stack size used in this run was 8388608.
==24046== 2,048 bytes in 1 blocks are definitely lost in loss record 3,081 of 3,146
==24046== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24046== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24046== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24046== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24046== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24046== by 0x408AAB5: ir_nextk (lj_ir.c:175)
==24046== by 0x408AAB5: lj_ir_knull (lj_ir.c:347)
==24046== by 0x408C5C6: lj_opt_fwd_fload (lj_opt_mem.c:597)
==24046== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24046== by 0x409C603: lj_record_mm_lookup (lj_record.c:976)
==24046== by 0x409B7DA: lj_record_idx (lj_record.c:1497)
==24046== by 0x409F552: lj_record_ins (lj_record.c:2339)
==24046== by 0x40BB16A: trace_state (lj_trace.c:680)
==24046== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24046== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24046== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24046== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24046== by 0x407FA29: lua_resume (lj_api.c:1296)
==24046== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24046== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24046== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24046== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24046== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24046== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24046== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24046== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24046== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24046== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24046== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24046== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24046== by 0x8065F7E: main (nginx.c:382)
==24046==
{
<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_knull
fun:lj_opt_fwd_fload
fun:lj_opt_fold
fun:lj_record_mm_lookup
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
}
stream/re-gmatch.t TEST 4: not matched, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 4: not matched, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'no match
'
stream/re-gmatch.t TEST 4: not matched, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 4: not matched, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 4: not matched, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'no match
'
stream/re-gmatch.t TEST 14: each gmatch iterator is separate - Can't connect to 127.0.0.1:1984: Connection refused ==24048== Invalid read of size 4
==24048== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24048== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24048== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24048== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24048== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24048== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24048== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24048== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24048== by 0x8065F7E: main (nginx.c:382)
==24048== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24048==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-gmatch.t TEST 14: each gmatch iterator is separate - Can't connect to 127.0.0.1:1984: Connection refused ==24048==
==24048== Process terminating with default action of signal 11 (SIGSEGV)
==24048== Access not within mapped region at address 0x0
==24048== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24048== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24048== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24048== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24048== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24048== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24048== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24048== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24048== by 0x8065F7E: main (nginx.c:382)
==24048== If you believe this happened as a result of a stack
==24048== overflow in your program's main thread (unlikely but
==24048== possible), you can try to increase the size of the
==24048== main thread stack using the --main-stacksize= flag.
==24048== The main thread stack size used in this run was 8388608.
==24048== 1,024 bytes in 1 blocks are definitely lost in loss record 3,038 of 3,149
==24048== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24048== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24048== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24048== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24048== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24048== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24048== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24048== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24048== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24048== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24048== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24048== by 0x40BB675: trace_state (lj_trace.c:690)
==24048== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24048== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24048== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24048== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24048== by 0x407FA29: lua_resume (lj_api.c:1296)
==24048== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24048== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24048== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24048== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24048== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24048== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24048== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24048== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24048== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24048== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24048== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24048== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24048== by 0x8065F7E: main (nginx.c:382)
==24048==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-gmatch.t TEST 14: each gmatch iterator is separate - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 14: each gmatch iterator is separate - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-matched iter1 (1/2): 9
-matched iter2 (1/2): 1
-matched iter1 (2/2): 8
-matched iter2 (2/2): 2
'
stream/re-gmatch.t TEST 14: each gmatch iterator is separate - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 14: each gmatch iterator is separate - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 14: each gmatch iterator is separate - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-matched iter1 (1/2): 9
-matched iter2 (1/2): 1
-matched iter1 (2/2): 8
-matched iter2 (2/2): 2
'
stream/re-gmatch.t TEST 13: an error-ed out gmatch iterator should return nil - Can't connect to 127.0.0.1:1984: Connection refused ==24050== Invalid read of size 4
==24050== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24050== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24050== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24050== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24050== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24050== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24050== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24050== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24050== by 0x8065F7E: main (nginx.c:382)
==24050== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24050==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-gmatch.t TEST 13: an error-ed out gmatch iterator should return nil - Can't connect to 127.0.0.1:1984: Connection refused ==24050==
==24050== Process terminating with default action of signal 11 (SIGSEGV)
==24050== Access not within mapped region at address 0x0
==24050== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24050== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24050== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24050== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24050== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24050== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24050== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24050== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24050== by 0x8065F7E: main (nginx.c:382)
==24050== If you believe this happened as a result of a stack
==24050== overflow in your program's main thread (unlikely but
==24050== possible), you can try to increase the size of the
==24050== main thread stack using the --main-stacksize= flag.
==24050== The main thread stack size used in this run was 8388608.
==24050== 1,024 bytes in 1 blocks are definitely lost in loss record 3,028 of 3,139
==24050== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24050== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24050== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24050== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24050== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24050== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24050== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24050== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24050== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24050== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24050== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24050== by 0x40BB675: trace_state (lj_trace.c:690)
==24050== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24050== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24050== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24050== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24050== by 0x407FA29: lua_resume (lj_api.c:1296)
==24050== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24050== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24050== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24050== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24050== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24050== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24050== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24050== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24050== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24050== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24050== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24050== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24050== by 0x8065F7E: main (nginx.c:382)
==24050==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-gmatch.t TEST 13: an error-ed out gmatch iterator should return nil - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 13: an error-ed out gmatch iterator should return nil - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-error: pcre_exec() failed: -10
-not matched
'
stream/re-gmatch.t TEST 13: an error-ed out gmatch iterator should return nil - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 13: an error-ed out gmatch iterator should return nil - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 13: an error-ed out gmatch iterator should return nil - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-error: pcre_exec() failed: -10
-not matched
'
stream/re-gmatch.t TEST 8: unmatched captures are false - Can't connect to 127.0.0.1:1984: Connection refused ==24052== Invalid read of size 4
==24052== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24052== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24052== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24052== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24052== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24052== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24052== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24052== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24052== by 0x8065F7E: main (nginx.c:382)
==24052== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24052==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-gmatch.t TEST 8: unmatched captures are false - Can't connect to 127.0.0.1:1984: Connection refused ==24052==
==24052== Process terminating with default action of signal 11 (SIGSEGV)
==24052== Access not within mapped region at address 0x0
==24052== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24052== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24052== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24052== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24052== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24052== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24052== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24052== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24052== by 0x8065F7E: main (nginx.c:382)
==24052== If you believe this happened as a result of a stack
==24052== overflow in your program's main thread (unlikely but
==24052== possible), you can try to increase the size of the
==24052== main thread stack using the --main-stacksize= flag.
==24052== The main thread stack size used in this run was 8388608.
==24052== 1,024 bytes in 1 blocks are definitely lost in loss record 3,042 of 3,153
==24052== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24052== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24052== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24052== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24052== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24052== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24052== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24052== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24052== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24052== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24052== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24052== by 0x40BB675: trace_state (lj_trace.c:690)
==24052== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24052== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24052== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24052== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24052== by 0x407FA29: lua_resume (lj_api.c:1296)
==24052== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24052== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24052== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24052== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24052== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24052== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24052== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24052== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24052== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24052== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24052== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24052== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24052== by 0x8065F7E: main (nginx.c:382)
==24052==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-gmatch.t TEST 8: unmatched captures are false - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 8: unmatched captures are false - response_body - response is expected (repeated req 0, req 0) @@ -1,8 +0,0 @@
-hello!
-hello
-false
-!
-world!
-world
-false
-!
'
stream/re-gmatch.t TEST 8: unmatched captures are false - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 8: unmatched captures are false - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 8: unmatched captures are false - response_body - response is expected (repeated req 1, req 0) @@ -1,8 +0,0 @@
-hello!
-hello
-false
-!
-world!
-world
-false
-!
'
stream/re-gmatch.t TEST 15: gmatch (empty matched string) - Can't connect to 127.0.0.1:1984: Connection refused ==24054== Invalid read of size 4
==24054== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24054== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24054== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24054== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24054== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24054== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24054== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24054== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24054== by 0x8065F7E: main (nginx.c:382)
==24054== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24054==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-gmatch.t TEST 15: gmatch (empty matched string) - Can't connect to 127.0.0.1:1984: Connection refused ==24054==
==24054== Process terminating with default action of signal 11 (SIGSEGV)
==24054== Access not within mapped region at address 0x0
==24054== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24054== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24054== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24054== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24054== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24054== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24054== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24054== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24054== by 0x8065F7E: main (nginx.c:382)
==24054== If you believe this happened as a result of a stack
==24054== overflow in your program's main thread (unlikely but
==24054== possible), you can try to increase the size of the
==24054== main thread stack using the --main-stacksize= flag.
==24054== The main thread stack size used in this run was 8388608.
==24054== 1,024 bytes in 1 blocks are definitely lost in loss record 3,029 of 3,140
==24054== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24054== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24054== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24054== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24054== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24054== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24054== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24054== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24054== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24054== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24054== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24054== by 0x40BB675: trace_state (lj_trace.c:690)
==24054== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24054== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24054== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24054== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24054== by 0x407FA29: lua_resume (lj_api.c:1296)
==24054== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24054== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24054== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24054== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24054== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24054== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24054== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24054== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24054== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24054== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24054== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24054== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24054== by 0x8065F7E: main (nginx.c:382)
==24054==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-gmatch.t TEST 15: gmatch (empty matched string) - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 15: gmatch (empty matched string) - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-matched: []
-matched: []
-matched: []
-matched: []
-matched: []
-matched: []
'
stream/re-gmatch.t TEST 15: gmatch (empty matched string) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 15: gmatch (empty matched string) - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 15: gmatch (empty matched string) - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-matched: []
-matched: []
-matched: []
-matched: []
-matched: []
-matched: []
'
stream/re-gmatch.t TEST 3: not matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24056== Invalid read of size 4
==24056== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24056== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24056== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24056== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24056== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24056== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24056== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24056== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24056== by 0x8065F7E: main (nginx.c:382)
==24056== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24056==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-gmatch.t TEST 3: not matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24056==
==24056== Process terminating with default action of signal 11 (SIGSEGV)
==24056== Access not within mapped region at address 0x0
==24056== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24056== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24056== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24056== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24056== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24056== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24056== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24056== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24056== by 0x8065F7E: main (nginx.c:382)
==24056== If you believe this happened as a result of a stack
==24056== overflow in your program's main thread (unlikely but
==24056== possible), you can try to increase the size of the
==24056== main thread stack using the --main-stacksize= flag.
==24056== The main thread stack size used in this run was 8388608.
==24056== 4,096 bytes in 1 blocks are definitely lost in loss record 3,135 of 3,162
==24056== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24056== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24056== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24056== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24056== by 0x408F5A6: lj_ir_nextins (lj_iropt.h:34)
==24056== by 0x408F5A6: lj_opt_cse (lj_opt_fold.c:2549)
==24056== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24056== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24056== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24056== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24056== by 0x40BB675: trace_state (lj_trace.c:690)
==24056== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24056== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24056== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24056== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24056== by 0x407FA29: lua_resume (lj_api.c:1296)
==24056== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24056== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24056== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24056== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24056== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24056== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24056== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24056== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24056== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24056== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24056== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24056== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24056== by 0x8065F7E: main (nginx.c:382)
==24056==
{
<insert_a_suppression_name_here>
Memcheck: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
}
stream/re-gmatch.t TEST 3: not matched, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 3: not matched, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'no match
'
stream/re-gmatch.t TEST 3: not matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 3: not matched, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 3: not matched, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'no match
'
stream/re-gmatch.t TEST 5: submatches, matched, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24058== Invalid read of size 4
==24058== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24058== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24058== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24058== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24058== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24058== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24058== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24058== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24058== by 0x8065F7E: main (nginx.c:382)
==24058== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24058==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-gmatch.t TEST 5: submatches, matched, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24058==
==24058== Process terminating with default action of signal 11 (SIGSEGV)
==24058== Access not within mapped region at address 0x0
==24058== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24058== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24058== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24058== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24058== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24058== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24058== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24058== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24058== by 0x8065F7E: main (nginx.c:382)
==24058== If you believe this happened as a result of a stack
==24058== overflow in your program's main thread (unlikely but
==24058== possible), you can try to increase the size of the
==24058== main thread stack using the --main-stacksize= flag.
==24058== The main thread stack size used in this run was 8388608.
==24058== 2,048 bytes in 1 blocks are definitely lost in loss record 3,099 of 3,174
==24058== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24058== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24058== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24058== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24058== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24058== by 0x408A511: ir_nextk (lj_ir.c:175)
==24058== by 0x408A511: lj_ir_kint (lj_ir.c:206)
==24058== by 0x40A3789: crec_tv_ct (lj_crecord.c:595)
==24058== by 0x40A60EB: recff_cdata_index (lj_crecord.c:932)
==24058== by 0x40AE0BC: lj_ffrecord_func (lj_ffrecord.c:1254)
==24058== by 0x409F4CA: lj_record_ins (lj_record.c:2479)
==24058== by 0x40BB16A: trace_state (lj_trace.c:680)
==24058== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24058== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24058== by 0x407596F: lj_dispatch_call (lj_dispatch.c:488)
==24058== by 0x406904F: lj_vm_hotcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24058== by 0x407FA29: lua_resume (lj_api.c:1296)
==24058== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24058== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24058== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24058== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24058== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24058== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24058== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24058== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24058== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24058== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24058== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24058== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24058== by 0x8065F7E: main (nginx.c:382)
==24058==
{
<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_tv_ct
fun:recff_cdata_index
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
}
stream/re-gmatch.t TEST 5: submatches, matched, no regex cache - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 5: submatches, matched, no regex cache - response_body - response is expected (repeated req 0, req 0) @@ -1,8 +0,0 @@
-matched: hello
-$1: h
-$2: ello
-$3: nil
-matched: world
-$1: w
-$2: orld
-$3: nil
'
stream/re-gmatch.t TEST 5: submatches, matched, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 5: submatches, matched, no regex cache - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 5: submatches, matched, no regex cache - response_body - response is expected (repeated req 1, req 0) @@ -1,8 +0,0 @@
-matched: hello
-$1: h
-$2: ello
-$3: nil
-matched: world
-$1: w
-$2: orld
-$3: nil
'
stream/re-gmatch.t TEST 11: subject is not a string type - Can't connect to 127.0.0.1:1984: Connection refused ==24060== Invalid read of size 4
==24060== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24060== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24060== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24060== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24060== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24060== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24060== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24060== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24060== by 0x8065F7E: main (nginx.c:382)
==24060== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24060==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-gmatch.t TEST 11: subject is not a string type - Can't connect to 127.0.0.1:1984: Connection refused ==24060==
==24060== Process terminating with default action of signal 11 (SIGSEGV)
==24060== Access not within mapped region at address 0x0
==24060== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24060== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24060== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24060== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24060== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24060== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24060== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24060== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24060== by 0x8065F7E: main (nginx.c:382)
==24060== If you believe this happened as a result of a stack
==24060== overflow in your program's main thread (unlikely but
==24060== possible), you can try to increase the size of the
==24060== main thread stack using the --main-stacksize= flag.
==24060== The main thread stack size used in this run was 8388608.
==24060== 1,024 bytes in 1 blocks are definitely lost in loss record 3,044 of 3,155
==24060== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24060== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24060== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24060== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24060== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24060== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24060== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24060== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24060== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24060== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24060== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24060== by 0x40BB675: trace_state (lj_trace.c:690)
==24060== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24060== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24060== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24060== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24060== by 0x407FA29: lua_resume (lj_api.c:1296)
==24060== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24060== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24060== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24060== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24060== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24060== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24060== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24060== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24060== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24060== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24060== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24060== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24060== by 0x8065F7E: main (nginx.c:382)
==24060==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-gmatch.t TEST 11: subject is not a string type - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 11: subject is not a string type - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-12
-345
'
stream/re-gmatch.t TEST 11: subject is not a string type - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-gmatch.t TEST 11: subject is not a string type - status code ok got: ''
expected: '200'
stream/re-gmatch.t TEST 11: subject is not a string type - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-12
-345
'
stream/re-match.t TEST 6: submatches, matched, with regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24066== Invalid read of size 4
==24066== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24066== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24066== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24066== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24066== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24066== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24066== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24066== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24066== by 0x8065F7E: main (nginx.c:382)
==24066== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24066==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-match.t TEST 6: submatches, matched, with regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24066==
==24066== Process terminating with default action of signal 11 (SIGSEGV)
==24066== Access not within mapped region at address 0x0
==24066== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24066== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24066== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24066== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24066== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24066== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24066== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24066== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24066== by 0x8065F7E: main (nginx.c:382)
==24066== If you believe this happened as a result of a stack
==24066== overflow in your program's main thread (unlikely but
==24066== possible), you can try to increase the size of the
==24066== main thread stack using the --main-stacksize= flag.
==24066== The main thread stack size used in this run was 8388608.
==24066== 2,048 bytes in 1 blocks are definitely lost in loss record 3,107 of 3,171
==24066== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24066== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24066== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24066== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24066== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24066== by 0x408AB9F: ir_nextk (lj_ir.c:175)
==24066== by 0x408AB9F: lj_ir_kslot (lj_ir.c:370)
==24066== by 0x409BD8D: rec_idx_key (lj_record.c:1378)
==24066== by 0x409BD8D: lj_record_idx (lj_record.c:1455)
==24066== by 0x409F552: lj_record_ins (lj_record.c:2339)
==24066== by 0x40BB16A: trace_state (lj_trace.c:680)
==24066== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24066== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24066== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24066== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24066== by 0x407FA29: lua_resume (lj_api.c:1296)
==24066== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24066== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24066== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24066== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24066== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24066== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24066== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24066== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24066== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24066== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24066== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24066== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24066== by 0x8065F7E: main (nginx.c:382)
==24066==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growbot
fun:ir_nextk
fun:lj_ir_kslot
fun:rec_idx_key
fun:lj_record_idx
fun:lj_record_ins
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-match.t TEST 6: submatches, matched, with regex cache - status code ok got: ''
expected: '200'
stream/re-match.t TEST 6: submatches, matched, with regex cache - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-matched: 1234
-$1: 1
-$2: 234
-$3: nil
'
stream/re-match.t TEST 6: submatches, matched, with regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 6: submatches, matched, with regex cache - status code ok got: ''
expected: '200'
stream/re-match.t TEST 6: submatches, matched, with regex cache - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-matched: 1234
-$1: 1
-$2: 234
-$3: nil
'
stream/re-match.t TEST 8: named subpatterns w/ extraction (use of duplicate names in non-duplicate mode) - Can't connect to 127.0.0.1:1984: Connection refused ==24070== Invalid read of size 4
==24070== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24070== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24070== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24070== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24070== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24070== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24070== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24070== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24070== by 0x8065F7E: main (nginx.c:382)
==24070== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24070==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-match.t TEST 8: named subpatterns w/ extraction (use of duplicate names in non-duplicate mode) - Can't connect to 127.0.0.1:1984: Connection refused ==24070==
==24070== Process terminating with default action of signal 11 (SIGSEGV)
==24070== Access not within mapped region at address 0x0
==24070== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24070== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24070== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24070== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24070== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24070== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24070== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24070== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24070== by 0x8065F7E: main (nginx.c:382)
==24070== If you believe this happened as a result of a stack
==24070== overflow in your program's main thread (unlikely but
==24070== possible), you can try to increase the size of the
==24070== main thread stack using the --main-stacksize= flag.
==24070== The main thread stack size used in this run was 8388608.
==24070== 2,048 bytes in 1 blocks are definitely lost in loss record 3,074 of 3,136
==24070== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24070== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24070== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24070== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24070== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24070== by 0x408A511: ir_nextk (lj_ir.c:175)
==24070== by 0x408A511: lj_ir_kint (lj_ir.c:206)
==24070== by 0x40A3A59: argv2cdata (lj_crecord.c:56)
==24070== by 0x40A6D2B: recff_cdata_call (lj_crecord.c:1269)
==24070== by 0x40AE0BC: lj_ffrecord_func (lj_ffrecord.c:1254)
==24070== by 0x409F4CA: lj_record_ins (lj_record.c:2479)
==24070== by 0x40BB16A: trace_state (lj_trace.c:680)
==24070== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24070== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24070== by 0x407596F: lj_dispatch_call (lj_dispatch.c:488)
==24070== by 0x406904F: lj_vm_hotcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24070== by 0x407FA29: lua_resume (lj_api.c:1296)
==24070== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24070== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24070== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24070== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24070== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24070== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24070== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24070== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24070== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24070== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24070== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24070== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24070== by 0x8065F7E: main (nginx.c:382)
==24070==
{
<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:argv2cdata
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
}
stream/re-match.t TEST 8: named subpatterns w/ extraction (use of duplicate names in non-duplicate mode) - status code ok got: ''
expected: '200'
stream/re-match.t TEST 8: named subpatterns w/ extraction (use of duplicate names in non-duplicate mode) - response_body_like - response is expected () ''
doesn't match '(?^s:error: pcre_compile\(\) failed: two named subpatterns have the same name)'
stream/re-match.t TEST 8: named subpatterns w/ extraction (use of duplicate names in non-duplicate mode) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 8: named subpatterns w/ extraction (use of duplicate names in non-duplicate mode) - status code ok got: ''
expected: '200'
stream/re-match.t TEST 8: named subpatterns w/ extraction (use of duplicate names in non-duplicate mode) - response_body_like - response is expected () ''
doesn't match '(?^s:error: pcre_compile\(\) failed: two named subpatterns have the same name)'
stream/re-match.t TEST 10: captures input table in ngx.re.match - Can't connect to 127.0.0.1:1984: Connection refused ==24072== Invalid read of size 4
==24072== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24072== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24072== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24072== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24072== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24072== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24072== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24072== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24072== by 0x8065F7E: main (nginx.c:382)
==24072== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24072==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-match.t TEST 10: captures input table in ngx.re.match - Can't connect to 127.0.0.1:1984: Connection refused ==24072==
==24072== Process terminating with default action of signal 11 (SIGSEGV)
==24072== Access not within mapped region at address 0x0
==24072== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24072== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24072== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24072== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24072== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24072== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24072== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24072== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24072== by 0x8065F7E: main (nginx.c:382)
==24072== If you believe this happened as a result of a stack
==24072== overflow in your program's main thread (unlikely but
==24072== possible), you can try to increase the size of the
==24072== main thread stack using the --main-stacksize= flag.
==24072== The main thread stack size used in this run was 8388608.
==24072== 2,048 bytes in 1 blocks are definitely lost in loss record 3,109 of 3,172
==24072== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24072== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24072== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24072== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24072== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24072== by 0x408A8C6: ir_nextk (lj_ir.c:175)
==24072== by 0x408A8C6: lj_ir_kgc (lj_ir.c:286)
==24072== by 0x409ED21: lj_record_ins (lj_record.c:2110)
==24072== by 0x40BB16A: trace_state (lj_trace.c:680)
==24072== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24072== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24072== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24072== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24072== by 0x407FA29: lua_resume (lj_api.c:1296)
==24072== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24072== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24072== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24072== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24072== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24072== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24072== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24072== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24072== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24072== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24072== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24072== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24072== by 0x8065F7E: main (nginx.c:382)
==24072==
{
<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
}
stream/re-match.t TEST 10: captures input table in ngx.re.match - status code ok got: ''
expected: '200'
stream/re-match.t TEST 10: captures input table in ngx.re.match - response_body - response is expected (repeated req 0, req 0) @@ -1,6 +0,0 @@
-1234
-1
-2
-3
-4
-hello
'
stream/re-match.t TEST 10: captures input table in ngx.re.match - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 10: captures input table in ngx.re.match - status code ok got: ''
expected: '200'
stream/re-match.t TEST 10: captures input table in ngx.re.match - response_body - response is expected (repeated req 1, req 0) @@ -1,6 +0,0 @@
-1234
-1
-2
-3
-4
-hello
'
stream/re-match.t TEST 12: unmatched trailing captures are false - Can't connect to 127.0.0.1:1984: Connection refused ==24074== Invalid read of size 4
==24074== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24074== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24074== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24074== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24074== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24074== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24074== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24074== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24074== by 0x8065F7E: main (nginx.c:382)
==24074== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24074==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-match.t TEST 12: unmatched trailing captures are false - Can't connect to 127.0.0.1:1984: Connection refused ==24074==
==24074== Process terminating with default action of signal 11 (SIGSEGV)
==24074== Access not within mapped region at address 0x0
==24074== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24074== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24074== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24074== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24074== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24074== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24074== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24074== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24074== by 0x8065F7E: main (nginx.c:382)
==24074== If you believe this happened as a result of a stack
==24074== overflow in your program's main thread (unlikely but
==24074== possible), you can try to increase the size of the
==24074== main thread stack using the --main-stacksize= flag.
==24074== The main thread stack size used in this run was 8388608.
==24074== 1,024 bytes in 1 blocks are definitely lost in loss record 3,044 of 3,155
==24074== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24074== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24074== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24074== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24074== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24074== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24074== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24074== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24074== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24074== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24074== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24074== by 0x40BB675: trace_state (lj_trace.c:690)
==24074== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24074== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24074== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24074== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24074== by 0x407FA29: lua_resume (lj_api.c:1296)
==24074== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24074== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24074== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24074== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24074== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24074== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24074== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24074== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24074== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24074== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24074== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24074== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24074== by 0x8065F7E: main (nginx.c:382)
==24074==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-match.t TEST 12: unmatched trailing captures are false - status code ok got: ''
expected: '200'
stream/re-match.t TEST 12: unmatched trailing captures are false - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-hello
-hello
-false
-false
'
stream/re-match.t TEST 12: unmatched trailing captures are false - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 12: unmatched trailing captures are false - status code ok got: ''
expected: '200'
stream/re-match.t TEST 12: unmatched trailing captures are false - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-hello
-hello
-false
-false
'
stream/re-match.t TEST 2: matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24076== Invalid read of size 4
==24076== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24076== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24076== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24076== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24076== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24076== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24076== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24076== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24076== by 0x8065F7E: main (nginx.c:382)
==24076== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24076==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-match.t TEST 2: matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24076==
==24076== Process terminating with default action of signal 11 (SIGSEGV)
==24076== Access not within mapped region at address 0x0
==24076== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24076== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24076== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24076== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24076== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24076== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24076== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24076== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24076== by 0x8065F7E: main (nginx.c:382)
==24076== If you believe this happened as a result of a stack
==24076== overflow in your program's main thread (unlikely but
==24076== possible), you can try to increase the size of the
==24076== main thread stack using the --main-stacksize= flag.
==24076== The main thread stack size used in this run was 8388608.
==24076== 4,096 bytes in 1 blocks are definitely lost in loss record 3,141 of 3,170
==24076== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24076== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24076== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24076== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24076== by 0x408F5A6: lj_ir_nextins (lj_iropt.h:34)
==24076== by 0x408F5A6: lj_opt_cse (lj_opt_fold.c:2549)
==24076== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24076== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24076== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24076== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24076== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24076== by 0x40BB675: trace_state (lj_trace.c:690)
==24076== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24076== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24076== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24076== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24076== by 0x407FA29: lua_resume (lj_api.c:1296)
==24076== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24076== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24076== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24076== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24076== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24076== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24076== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24076== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24076== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24076== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24076== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24076== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24076== by 0x8065F7E: main (nginx.c:382)
==24076==
{
<insert_a_suppression_name_here>
Memcheck: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_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-match.t TEST 2: matched, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
stream/re-match.t TEST 2: matched, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-matched: a
-$1: nil
'
stream/re-match.t TEST 2: matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 2: matched, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
stream/re-match.t TEST 2: matched, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-matched: a
-$1: nil
'
stream/re-match.t TEST 1: matched, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24078== Invalid read of size 4
==24078== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24078== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24078== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24078== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24078== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24078== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24078== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24078== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24078== by 0x8065F7E: main (nginx.c:382)
==24078== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24078==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-match.t TEST 1: matched, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24078==
==24078== Process terminating with default action of signal 11 (SIGSEGV)
==24078== Access not within mapped region at address 0x0
==24078== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24078== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24078== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24078== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24078== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24078== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24078== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24078== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24078== by 0x8065F7E: main (nginx.c:382)
==24078== If you believe this happened as a result of a stack
==24078== overflow in your program's main thread (unlikely but
==24078== possible), you can try to increase the size of the
==24078== main thread stack using the --main-stacksize= flag.
==24078== The main thread stack size used in this run was 8388608.
==24078== 2,048 bytes in 1 blocks are definitely lost in loss record 3,086 of 3,154
==24078== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24078== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24078== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24078== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24078== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24078== by 0x408AA0C: ir_nextk (lj_ir.c:175)
==24078== by 0x408AA0C: lj_ir_kptr_ (lj_ir.c:326)
==24078== by 0x4099F4D: rec_mm_prep (lj_record.c:961)
==24078== by 0x409BAA4: lj_record_idx (lj_record.c:1419)
==24078== by 0x409F552: lj_record_ins (lj_record.c:2339)
==24078== by 0x40BB16A: trace_state (lj_trace.c:680)
==24078== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24078== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24078== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24078== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24078== by 0x407FA29: lua_resume (lj_api.c:1296)
==24078== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24078== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24078== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24078== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24078== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24078== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24078== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24078== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24078== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24078== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24078== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24078== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24078== by 0x8065F7E: main (nginx.c:382)
==24078==
{
<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
}
stream/re-match.t TEST 1: matched, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
stream/re-match.t TEST 1: matched, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-matched: a
-$1: nil
'
stream/re-match.t TEST 1: matched, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 1: matched, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
stream/re-match.t TEST 1: matched, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-matched: a
-$1: nil
'
stream/re-match.t TEST 3: not matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24080== Invalid read of size 4
==24080== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24080== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24080== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24080== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24080== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24080== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24080== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24080== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24080== by 0x8065F7E: main (nginx.c:382)
==24080== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24080==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-match.t TEST 3: not matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24080==
==24080== Process terminating with default action of signal 11 (SIGSEGV)
==24080== Access not within mapped region at address 0x0
==24080== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24080== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24080== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24080== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24080== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24080== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24080== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24080== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24080== by 0x8065F7E: main (nginx.c:382)
==24080== If you believe this happened as a result of a stack
==24080== overflow in your program's main thread (unlikely but
==24080== possible), you can try to increase the size of the
==24080== main thread stack using the --main-stacksize= flag.
==24080== The main thread stack size used in this run was 8388608.
==24080== 2,048 bytes in 1 blocks are definitely lost in loss record 3,102 of 3,165
==24080== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24080== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24080== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24080== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24080== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24080== by 0x408AB9F: ir_nextk (lj_ir.c:175)
==24080== by 0x408AB9F: lj_ir_kslot (lj_ir.c:370)
==24080== by 0x409BD8D: rec_idx_key (lj_record.c:1378)
==24080== by 0x409BD8D: lj_record_idx (lj_record.c:1455)
==24080== by 0x409F552: lj_record_ins (lj_record.c:2339)
==24080== by 0x40BB16A: trace_state (lj_trace.c:680)
==24080== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24080== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24080== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24080== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24080== by 0x407FA29: lua_resume (lj_api.c:1296)
==24080== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24080== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24080== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24080== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24080== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24080== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24080== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24080== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24080== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24080== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24080== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24080== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24080== by 0x8065F7E: main (nginx.c:382)
==24080==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growbot
fun:ir_nextk
fun:lj_ir_kslot
fun:rec_idx_key
fun:lj_record_idx
fun:lj_record_ins
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-match.t TEST 3: not matched, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
stream/re-match.t TEST 3: not matched, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'no match
'
stream/re-match.t TEST 3: not matched, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 3: not matched, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
stream/re-match.t TEST 3: not matched, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'no match
'
stream/re-match.t TEST 13: unmatched named captures are false - Can't connect to 127.0.0.1:1984: Connection refused ==24082== Invalid read of size 4
==24082== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24082== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24082== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24082== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24082== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24082== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24082== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24082== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24082== by 0x8065F7E: main (nginx.c:382)
==24082== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24082==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-match.t TEST 13: unmatched named captures are false - Can't connect to 127.0.0.1:1984: Connection refused ==24082==
==24082== Process terminating with default action of signal 11 (SIGSEGV)
==24082== Access not within mapped region at address 0x0
==24082== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24082== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24082== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24082== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24082== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24082== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24082== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24082== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24082== by 0x8065F7E: main (nginx.c:382)
==24082== If you believe this happened as a result of a stack
==24082== overflow in your program's main thread (unlikely but
==24082== possible), you can try to increase the size of the
==24082== main thread stack using the --main-stacksize= flag.
==24082== The main thread stack size used in this run was 8388608.
==24082== 1,024 bytes in 1 blocks are definitely lost in loss record 3,045 of 3,156
==24082== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24082== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24082== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24082== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24082== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24082== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24082== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24082== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24082== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24082== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24082== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24082== by 0x40BB675: trace_state (lj_trace.c:690)
==24082== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24082== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24082== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24082== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24082== by 0x407FA29: lua_resume (lj_api.c:1296)
==24082== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24082== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24082== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24082== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24082== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24082== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24082== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24082== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24082== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24082== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24082== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24082== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24082== by 0x8065F7E: main (nginx.c:382)
==24082==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-match.t TEST 13: unmatched named captures are false - status code ok got: ''
expected: '200'
stream/re-match.t TEST 13: unmatched named captures are false - response_body - response is expected (repeated req 0, req 0) @@ -1,7 +0,0 @@
-hello!
-hello
-false
-!
-hello
-false
-!
'
stream/re-match.t TEST 13: unmatched named captures are false - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 13: unmatched named captures are false - status code ok got: ''
expected: '200'
stream/re-match.t TEST 13: unmatched named captures are false - response_body - response is expected (repeated req 1, req 0) @@ -1,7 +0,0 @@
-hello!
-hello
-false
-!
-hello
-false
-!
'
stream/re-match.t TEST 11: unmatched captures are false - Can't connect to 127.0.0.1:1984: Connection refused ==24084== Invalid read of size 4
==24084== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24084== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24084== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24084== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24084== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24084== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24084== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24084== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24084== by 0x8065F7E: main (nginx.c:382)
==24084== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24084==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-match.t TEST 11: unmatched captures are false - Can't connect to 127.0.0.1:1984: Connection refused ==24084==
==24084== Process terminating with default action of signal 11 (SIGSEGV)
==24084== Access not within mapped region at address 0x0
==24084== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24084== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24084== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24084== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24084== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24084== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24084== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24084== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24084== by 0x8065F7E: main (nginx.c:382)
==24084== If you believe this happened as a result of a stack
==24084== overflow in your program's main thread (unlikely but
==24084== possible), you can try to increase the size of the
==24084== main thread stack using the --main-stacksize= flag.
==24084== The main thread stack size used in this run was 8388608.
==24084== 1,024 bytes in 1 blocks are definitely lost in loss record 3,045 of 3,156
==24084== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24084== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24084== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24084== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24084== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24084== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24084== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24084== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24084== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24084== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24084== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24084== by 0x40BB675: trace_state (lj_trace.c:690)
==24084== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24084== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24084== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24084== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24084== by 0x407FA29: lua_resume (lj_api.c:1296)
==24084== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24084== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24084== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24084== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24084== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24084== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24084== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24084== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24084== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24084== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24084== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24084== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24084== by 0x8065F7E: main (nginx.c:382)
==24084==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-match.t TEST 11: unmatched captures are false - status code ok got: ''
expected: '200'
stream/re-match.t TEST 11: unmatched captures are false - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-hello!
-hello
-false
-!
'
stream/re-match.t TEST 11: unmatched captures are false - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 11: unmatched captures are false - status code ok got: ''
expected: '200'
stream/re-match.t TEST 11: unmatched captures are false - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-hello!
-hello
-false
-!
'
stream/re-match.t TEST 7: named subpatterns w/ extraction (matched) - Can't connect to 127.0.0.1:1984: Connection refused ==24086== Invalid read of size 4
==24086== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24086== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24086== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24086== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24086== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24086== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24086== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24086== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24086== by 0x8065F7E: main (nginx.c:382)
==24086== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24086==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-match.t TEST 7: named subpatterns w/ extraction (matched) - Can't connect to 127.0.0.1:1984: Connection refused ==24086==
==24086== Process terminating with default action of signal 11 (SIGSEGV)
==24086== Access not within mapped region at address 0x0
==24086== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24086== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24086== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24086== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24086== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24086== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24086== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24086== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24086== by 0x8065F7E: main (nginx.c:382)
==24086== If you believe this happened as a result of a stack
==24086== overflow in your program's main thread (unlikely but
==24086== possible), you can try to increase the size of the
==24086== main thread stack using the --main-stacksize= flag.
==24086== The main thread stack size used in this run was 8388608.
==24086== 2,048 bytes in 1 blocks are definitely lost in loss record 3,109 of 3,175
==24086== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24086== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24086== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24086== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24086== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24086== by 0x408AB9F: ir_nextk (lj_ir.c:175)
==24086== by 0x408AB9F: lj_ir_kslot (lj_ir.c:370)
==24086== by 0x409BD8D: rec_idx_key (lj_record.c:1378)
==24086== by 0x409BD8D: lj_record_idx (lj_record.c:1455)
==24086== by 0x409F552: lj_record_ins (lj_record.c:2339)
==24086== by 0x40BB16A: trace_state (lj_trace.c:680)
==24086== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24086== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24086== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24086== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24086== by 0x407FA29: lua_resume (lj_api.c:1296)
==24086== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24086== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24086== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24086== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24086== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24086== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24086== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24086== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24086== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24086== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24086== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24086== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24086== by 0x8065F7E: main (nginx.c:382)
==24086==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growbot
fun:ir_nextk
fun:lj_ir_kslot
fun:rec_idx_key
fun:lj_record_idx
fun:lj_record_ins
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-match.t TEST 7: named subpatterns w/ extraction (matched) - status code ok got: ''
expected: '200'
stream/re-match.t TEST 7: named subpatterns w/ extraction (matched) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-hello, 1234
-hello
-hello
-nil
'
stream/re-match.t TEST 7: named subpatterns w/ extraction (matched) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 7: named subpatterns w/ extraction (matched) - status code ok got: ''
expected: '200'
stream/re-match.t TEST 7: named subpatterns w/ extraction (matched) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-hello, 1234
-hello
-hello
-nil
'
stream/re-match.t TEST 4: not matched, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24088== Invalid read of size 4
==24088== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24088== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24088== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24088== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24088== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24088== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24088== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24088== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24088== by 0x8065F7E: main (nginx.c:382)
==24088== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24088==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-match.t TEST 4: not matched, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24088==
==24088== Process terminating with default action of signal 11 (SIGSEGV)
==24088== Access not within mapped region at address 0x0
==24088== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24088== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24088== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24088== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24088== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24088== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24088== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24088== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24088== by 0x8065F7E: main (nginx.c:382)
==24088== If you believe this happened as a result of a stack
==24088== overflow in your program's main thread (unlikely but
==24088== possible), you can try to increase the size of the
==24088== main thread stack using the --main-stacksize= flag.
==24088== The main thread stack size used in this run was 8388608.
==24088== 2,048 bytes in 1 blocks are definitely lost in loss record 3,078 of 3,141
==24088== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24088== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24088== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24088== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24088== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24088== by 0x408A511: ir_nextk (lj_ir.c:175)
==24088== by 0x408A511: lj_ir_kint (lj_ir.c:206)
==24088== by 0x40A3A59: argv2cdata (lj_crecord.c:56)
==24088== by 0x40A6D2B: recff_cdata_call (lj_crecord.c:1269)
==24088== by 0x40AE0BC: lj_ffrecord_func (lj_ffrecord.c:1254)
==24088== by 0x409F4CA: lj_record_ins (lj_record.c:2479)
==24088== by 0x40BB16A: trace_state (lj_trace.c:680)
==24088== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24088== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24088== by 0x407596F: lj_dispatch_call (lj_dispatch.c:488)
==24088== by 0x406904F: lj_vm_hotcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24088== by 0x407FA29: lua_resume (lj_api.c:1296)
==24088== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24088== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24088== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24088== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24088== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24088== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24088== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24088== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24088== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24088== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24088== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24088== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24088== by 0x8065F7E: main (nginx.c:382)
==24088==
{
<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:argv2cdata
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
}
stream/re-match.t TEST 4: not matched, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
stream/re-match.t TEST 4: not matched, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'no match
'
stream/re-match.t TEST 4: not matched, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 4: not matched, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
stream/re-match.t TEST 4: not matched, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'no match
'
stream/re-match.t TEST 9: named subpatterns w/ extraction (use of duplicate names in duplicate mode) - Can't connect to 127.0.0.1:1984: Connection refused ==24090== Invalid read of size 4
==24090== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24090== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24090== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24090== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24090== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24090== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24090== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24090== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24090== by 0x8065F7E: main (nginx.c:382)
==24090== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24090==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-match.t TEST 9: named subpatterns w/ extraction (use of duplicate names in duplicate mode) - Can't connect to 127.0.0.1:1984: Connection refused ==24090==
==24090== Process terminating with default action of signal 11 (SIGSEGV)
==24090== Access not within mapped region at address 0x0
==24090== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24090== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24090== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24090== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24090== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24090== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24090== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24090== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24090== by 0x8065F7E: main (nginx.c:382)
==24090== If you believe this happened as a result of a stack
==24090== overflow in your program's main thread (unlikely but
==24090== possible), you can try to increase the size of the
==24090== main thread stack using the --main-stacksize= flag.
==24090== The main thread stack size used in this run was 8388608.
==24090== 4,096 bytes in 1 blocks are definitely lost in loss record 3,154 of 3,191
==24090== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24090== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24090== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24090== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24090== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24090== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24090== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24090== by 0x40A4374: crec_ct_ct (lj_crecord.c:440)
==24090== by 0x40A4374: crec_ct_tv (lj_crecord.c:691)
==24090== by 0x40A66A7: recff_cdata_index (lj_crecord.c:936)
==24090== by 0x40AE0BC: lj_ffrecord_func (lj_ffrecord.c:1254)
==24090== by 0x409F4CA: lj_record_ins (lj_record.c:2479)
==24090== by 0x40BB16A: trace_state (lj_trace.c:680)
==24090== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24090== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24090== by 0x407596F: lj_dispatch_call (lj_dispatch.c:488)
==24090== by 0x406904F: lj_vm_hotcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24090== by 0x407FA29: lua_resume (lj_api.c:1296)
==24090== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24090== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24090== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24090== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24090== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24090== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24090== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24090== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24090== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24090== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24090== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24090== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24090== by 0x8065F7E: main (nginx.c:382)
==24090==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:crec_ct_ct
fun:crec_ct_tv
fun:recff_cdata_index
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
}
stream/re-match.t TEST 9: named subpatterns w/ extraction (use of duplicate names in duplicate mode) - status code ok got: ''
expected: '200'
stream/re-match.t TEST 9: named subpatterns w/ extraction (use of duplicate names in duplicate mode) - response_body_like - response is expected () ''
doesn't match '(?^s:hello, 1234
h
ello
h|ello
nil
)'
stream/re-match.t TEST 9: named subpatterns w/ extraction (use of duplicate names in duplicate mode) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 9: named subpatterns w/ extraction (use of duplicate names in duplicate mode) - status code ok got: ''
expected: '200'
stream/re-match.t TEST 9: named subpatterns w/ extraction (use of duplicate names in duplicate mode) - response_body_like - response is expected () ''
doesn't match '(?^s:hello, 1234
h
ello
h|ello
nil
)'
stream/re-match.t TEST 14: subject is not a string type - Can't connect to 127.0.0.1:1984: Connection refused ==24092== Invalid read of size 4
==24092== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24092== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24092== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24092== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24092== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24092== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24092== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24092== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24092== by 0x8065F7E: main (nginx.c:382)
==24092== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24092==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-match.t TEST 14: subject is not a string type - Can't connect to 127.0.0.1:1984: Connection refused ==24092==
==24092== Process terminating with default action of signal 11 (SIGSEGV)
==24092== Access not within mapped region at address 0x0
==24092== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24092== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24092== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24092== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24092== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24092== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24092== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24092== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24092== by 0x8065F7E: main (nginx.c:382)
==24092== If you believe this happened as a result of a stack
==24092== overflow in your program's main thread (unlikely but
==24092== possible), you can try to increase the size of the
==24092== main thread stack using the --main-stacksize= flag.
==24092== The main thread stack size used in this run was 8388608.
==24092== 1,024 bytes in 1 blocks are definitely lost in loss record 3,045 of 3,154
==24092== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24092== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24092== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24092== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24092== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24092== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24092== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24092== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24092== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24092== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24092== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24092== by 0x40BB675: trace_state (lj_trace.c:690)
==24092== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24092== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24092== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24092== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24092== by 0x407FA29: lua_resume (lj_api.c:1296)
==24092== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24092== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24092== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24092== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24092== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24092== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24092== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24092== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24092== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24092== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24092== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24092== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24092== by 0x8065F7E: main (nginx.c:382)
==24092==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-match.t TEST 14: subject is not a string type - status code ok got: ''
expected: '200'
stream/re-match.t TEST 14: subject is not a string type - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-12345
-12345
'
stream/re-match.t TEST 14: subject is not a string type - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 14: subject is not a string type - status code ok got: ''
expected: '200'
stream/re-match.t TEST 14: subject is not a string type - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-12345
-12345
'
stream/re-match.t TEST 15: subject is not a string type - Can't connect to 127.0.0.1:1984: Connection refused ==24094== Invalid read of size 4
==24094== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24094== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24094== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24094== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24094== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24094== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24094== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24094== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24094== by 0x8065F7E: main (nginx.c:382)
==24094== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24094==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-match.t TEST 15: subject is not a string type - Can't connect to 127.0.0.1:1984: Connection refused ==24094==
==24094== Process terminating with default action of signal 11 (SIGSEGV)
==24094== Access not within mapped region at address 0x0
==24094== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24094== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24094== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24094== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24094== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24094== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24094== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24094== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24094== by 0x8065F7E: main (nginx.c:382)
==24094== If you believe this happened as a result of a stack
==24094== overflow in your program's main thread (unlikely but
==24094== possible), you can try to increase the size of the
==24094== main thread stack using the --main-stacksize= flag.
==24094== The main thread stack size used in this run was 8388608.
==24094== 1,024 bytes in 1 blocks are definitely lost in loss record 3,043 of 3,154
==24094== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24094== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24094== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24094== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24094== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24094== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24094== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24094== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24094== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24094== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24094== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24094== by 0x40BB675: trace_state (lj_trace.c:690)
==24094== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24094== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24094== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24094== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24094== by 0x407FA29: lua_resume (lj_api.c:1296)
==24094== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24094== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24094== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24094== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24094== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24094== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24094== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24094== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24094== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24094== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24094== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24094== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24094== by 0x8065F7E: main (nginx.c:382)
==24094==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-match.t TEST 15: subject is not a string type - status code ok got: ''
expected: '200'
stream/re-match.t TEST 15: subject is not a string type - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '123
'
stream/re-match.t TEST 15: subject is not a string type - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 15: subject is not a string type - status code ok got: ''
expected: '200'
stream/re-match.t TEST 15: subject is not a string type - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '123
'
stream/re-match.t TEST 5: submatches, matched, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24097== Invalid read of size 4
==24097== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24097== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24097== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24097== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24097== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24097== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24097== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24097== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24097== by 0x8065F7E: main (nginx.c:382)
==24097== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24097==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-match.t TEST 5: submatches, matched, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24097==
==24097== Process terminating with default action of signal 11 (SIGSEGV)
==24097== Access not within mapped region at address 0x0
==24097== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24097== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24097== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24097== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24097== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24097== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24097== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24097== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24097== by 0x8065F7E: main (nginx.c:382)
==24097== If you believe this happened as a result of a stack
==24097== overflow in your program's main thread (unlikely but
==24097== possible), you can try to increase the size of the
==24097== main thread stack using the --main-stacksize= flag.
==24097== The main thread stack size used in this run was 8388608.
==24097== 2,048 bytes in 1 blocks are definitely lost in loss record 3,090 of 3,154
==24097== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24097== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24097== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24097== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24097== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24097== by 0x408A511: ir_nextk (lj_ir.c:175)
==24097== by 0x408A511: lj_ir_kint (lj_ir.c:206)
==24097== by 0x409AE30: rec_upvalue (lj_record.c:1620)
==24097== by 0x40A054C: lj_record_ins (lj_record.c:2314)
==24097== by 0x40BB16A: trace_state (lj_trace.c:680)
==24097== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24097== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24097== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24097== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24097== by 0x407FA29: lua_resume (lj_api.c:1296)
==24097== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24097== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24097== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24097== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24097== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24097== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24097== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24097== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24097== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24097== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24097== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24097== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24097== by 0x8065F7E: main (nginx.c:382)
==24097==
{
<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: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
}
stream/re-match.t TEST 5: submatches, matched, no regex cache - status code ok got: ''
expected: '200'
stream/re-match.t TEST 5: submatches, matched, no regex cache - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-matched: 1234
-$1: 1
-$2: 234
-$3: nil
'
stream/re-match.t TEST 5: submatches, matched, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-match.t TEST 5: submatches, matched, no regex cache - status code ok got: ''
expected: '200'
stream/re-match.t TEST 5: submatches, matched, no regex cache - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-matched: 1234
-$1: 1
-$2: 234
-$3: nil
'
stream/re-opt.t TEST 1: default jit_stack_size too small - Can't connect to 127.0.0.1:1984: Connection refused ==24103== Invalid read of size 4
==24103== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24103== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24103== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24103== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24103== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24103== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24103== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24103== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24103== by 0x8065F7E: main (nginx.c:382)
==24103== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24103==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-opt.t TEST 1: default jit_stack_size too small - Can't connect to 127.0.0.1:1984: Connection refused ==24103==
==24103== Process terminating with default action of signal 11 (SIGSEGV)
==24103== Access not within mapped region at address 0x0
==24103== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24103== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24103== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24103== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24103== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24103== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24103== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24103== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24103== by 0x8065F7E: main (nginx.c:382)
==24103== If you believe this happened as a result of a stack
==24103== overflow in your program's main thread (unlikely but
==24103== possible), you can try to increase the size of the
==24103== main thread stack using the --main-stacksize= flag.
==24103== The main thread stack size used in this run was 8388608.
==24103== 1,024 bytes in 1 blocks are definitely lost in loss record 3,043 of 3,156
==24103== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24103== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24103== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24103== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24103== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24103== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24103== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24103== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24103== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24103== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24103== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24103== by 0x40BB675: trace_state (lj_trace.c:690)
==24103== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24103== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24103== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24103== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24103== by 0x407FA29: lua_resume (lj_api.c:1296)
==24103== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24103== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24103== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24103== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24103== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24103== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24103== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24103== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24103== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24103== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24103== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24103== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24103== by 0x8065F7E: main (nginx.c:382)
==24103==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-opt.t TEST 1: default jit_stack_size too small - status code ok got: ''
expected: '200'
stream/re-opt.t TEST 1: default jit_stack_size too small - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'error: pcre_exec() failed: -27
'
stream/re-opt.t TEST 1: default jit_stack_size too small - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-opt.t TEST 1: default jit_stack_size too small - status code ok got: ''
expected: '200'
stream/re-opt.t TEST 1: default jit_stack_size too small - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'error: pcre_exec() failed: -27
'
stream/re-opt.t TEST 4: passing unknown options to ngx_re.opt throws an error - Can't connect to 127.0.0.1:1984: Connection refused ==24105== Invalid read of size 4
==24105== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24105== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24105== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24105== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24105== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24105== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24105== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24105== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24105== by 0x8065F7E: main (nginx.c:382)
==24105== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24105==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-opt.t TEST 4: passing unknown options to ngx_re.opt throws an error - Can't connect to 127.0.0.1:1984: Connection refused ==24105==
==24105== Process terminating with default action of signal 11 (SIGSEGV)
==24105== Access not within mapped region at address 0x0
==24105== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24105== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24105== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24105== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24105== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24105== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24105== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24105== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24105== by 0x8065F7E: main (nginx.c:382)
==24105== If you believe this happened as a result of a stack
==24105== overflow in your program's main thread (unlikely but
==24105== possible), you can try to increase the size of the
==24105== main thread stack using the --main-stacksize= flag.
==24105== The main thread stack size used in this run was 8388608.

stream/re-opt.t TEST 4: passing unknown options to ngx_re.opt throws an error - status code ok got: ''
expected: '200'
stream/re-opt.t TEST 4: passing unknown options to ngx_re.opt throws an error - response_body_like - response is expected () ''
doesn't match '(?^s:unrecognized option name$)'
stream/re-opt.t TEST 4: passing unknown options to ngx_re.opt throws an error - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-opt.t TEST 4: passing unknown options to ngx_re.opt throws an error - status code ok got: ''
expected: '200'
stream/re-opt.t TEST 4: passing unknown options to ngx_re.opt throws an error - response_body_like - response is expected () ''
doesn't match '(?^s:unrecognized option name$)'
stream/re-opt.t TEST 2: increase jit_stack_size - Can't connect to 127.0.0.1:1984: Connection refused ==24107== Invalid read of size 4
==24107== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24107== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24107== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24107== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24107== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24107== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24107== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24107== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24107== by 0x8065F7E: main (nginx.c:382)
==24107== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24107==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-opt.t TEST 2: increase jit_stack_size - Can't connect to 127.0.0.1:1984: Connection refused ==24107==
==24107== Process terminating with default action of signal 11 (SIGSEGV)
==24107== Access not within mapped region at address 0x0
==24107== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24107== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24107== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24107== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24107== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24107== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24107== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24107== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24107== by 0x8065F7E: main (nginx.c:382)
==24107== If you believe this happened as a result of a stack
==24107== overflow in your program's main thread (unlikely but
==24107== possible), you can try to increase the size of the
==24107== main thread stack using the --main-stacksize= flag.
==24107== The main thread stack size used in this run was 8388608.
==24107== 1,024 bytes in 1 blocks are definitely lost in loss record 3,058 of 3,173
==24107== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24107== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24107== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24107== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24107== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24107== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24107== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24107== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24107== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24107== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24107== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24107== by 0x40BB675: trace_state (lj_trace.c:690)
==24107== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24107== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24107== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24107== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24107== by 0x407FA29: lua_resume (lj_api.c:1296)
==24107== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24107== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24107== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24107== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24107== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24107== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24107== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24107== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24107== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24107== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24107== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24107== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24107== by 0x8065F7E: main (nginx.c:382)
==24107==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-opt.t TEST 2: increase jit_stack_size - status code ok got: ''
expected: '200'
stream/re-opt.t TEST 2: increase jit_stack_size - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'from: 1
to: 1563
'
stream/re-opt.t TEST 2: increase jit_stack_size - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-opt.t TEST 2: increase jit_stack_size - status code ok got: ''
expected: '200'
stream/re-opt.t TEST 2: increase jit_stack_size - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'from: 1
to: 1563
'
stream/re-opt.t TEST 3: jit_stack_size change disallowed once regex cache is populated - Can't connect to 127.0.0.1:1984: Connection refused ==24109== Invalid read of size 4
==24109== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24109== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24109== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24109== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24109== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24109== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24109== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24109== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24109== by 0x8065F7E: main (nginx.c:382)
==24109== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24109==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-opt.t TEST 3: jit_stack_size change disallowed once regex cache is populated - Can't connect to 127.0.0.1:1984: Connection refused ==24109==
==24109== Process terminating with default action of signal 11 (SIGSEGV)
==24109== Access not within mapped region at address 0x0
==24109== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24109== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24109== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24109== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24109== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24109== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24109== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24109== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24109== by 0x8065F7E: main (nginx.c:382)
==24109== If you believe this happened as a result of a stack
==24109== overflow in your program's main thread (unlikely but
==24109== possible), you can try to increase the size of the
==24109== main thread stack using the --main-stacksize= flag.
==24109== The main thread stack size used in this run was 8388608.
==24109== 1,024 bytes in 1 blocks are definitely lost in loss record 3,086 of 3,200
==24109== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24109== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24109== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24109== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24109== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24109== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24109== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24109== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24109== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24109== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24109== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24109== by 0x40BB675: trace_state (lj_trace.c:690)
==24109== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24109== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24109== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24109== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24109== by 0x407FA29: lua_resume (lj_api.c:1296)
==24109== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24109== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24109== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24109== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24109== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24109== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24109== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24109== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24109== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24109== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24109== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24109== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24109== by 0x8065F7E: main (nginx.c:382)
==24109==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-opt.t TEST 3: jit_stack_size change disallowed once regex cache is populated - status code ok got: ''
expected: '200'
stream/re-opt.t TEST 3: jit_stack_size change disallowed once regex cache is populated - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'from: 8
to: 8
'
stream/re-opt.t TEST 3: jit_stack_size change disallowed once regex cache is populated - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-opt.t TEST 3: jit_stack_size change disallowed once regex cache is populated - status code ok got: ''
expected: '200'
stream/re-opt.t TEST 3: jit_stack_size change disallowed once regex cache is populated - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'from: 8
to: 8
'
stream/re-opt.t TEST 3: jit_stack_size change disallowed once regex cache is populated - grep_error_log_out (req 1) got: ''
expected: 'changing jit stack size is not allowed when some regexs have already been compiled and cached
'
stream/re-split.t TEST 15: split matches, provided res table + max limiter + sub-match capturing group - Can't connect to 127.0.0.1:1984: Connection refused ==24115== Invalid read of size 4
==24115== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24115== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24115== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24115== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24115== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24115== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24115== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24115== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24115== by 0x8065F7E: main (nginx.c:382)
==24115== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24115==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-split.t TEST 15: split matches, provided res table + max limiter + sub-match capturing group - Can't connect to 127.0.0.1:1984: Connection refused ==24115==
==24115== Process terminating with default action of signal 11 (SIGSEGV)
==24115== Access not within mapped region at address 0x0
==24115== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24115== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24115== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24115== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24115== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24115== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24115== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24115== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24115== by 0x8065F7E: main (nginx.c:382)
==24115== If you believe this happened as a result of a stack
==24115== overflow in your program's main thread (unlikely but
==24115== possible), you can try to increase the size of the
==24115== main thread stack using the --main-stacksize= flag.
==24115== The main thread stack size used in this run was 8388608.
==24115== 1,024 bytes in 1 blocks are definitely lost in loss record 3,070 of 3,183
==24115== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24115== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24115== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24115== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24115== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24115== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24115== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24115== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24115== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24115== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24115== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24115== by 0x40BB675: trace_state (lj_trace.c:690)
==24115== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24115== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24115== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24115== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24115== by 0x407FA29: lua_resume (lj_api.c:1296)
==24115== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24115== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24115== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24115== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24115== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24115== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24115== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24115== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24115== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24115== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24115== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24115== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24115== by 0x8065F7E: main (nginx.c:382)
==24115==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-split.t TEST 15: split matches, provided res table + max limiter + sub-match capturing group - status code ok got: ''
expected: '200'
stream/re-split.t TEST 15: split matches, provided res table + max limiter + sub-match capturing group - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
,
b
,
c,d,e
'
stream/re-split.t TEST 15: split matches, provided res table + max limiter + sub-match capturing group - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 15: split matches, provided res table + max limiter + sub-match capturing group - status code ok got: ''
expected: '200'
stream/re-split.t TEST 15: split matches, provided res table + max limiter + sub-match capturing group - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
,
b
,
c,d,e
'
stream/re-split.t TEST 34: behavior with /^\d/m - Can't connect to 127.0.0.1:1984: Connection refused ==24117== Invalid read of size 4
==24117== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24117== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24117== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24117== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24117== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24117== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24117== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24117== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24117== by 0x8065F7E: main (nginx.c:382)
==24117== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24117==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-split.t TEST 34: behavior with /^\d/m - Can't connect to 127.0.0.1:1984: Connection refused ==24117==
==24117== Process terminating with default action of signal 11 (SIGSEGV)
==24117== Access not within mapped region at address 0x0
==24117== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24117== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24117== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24117== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24117== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24117== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24117== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24117== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24117== by 0x8065F7E: main (nginx.c:382)
==24117== If you believe this happened as a result of a stack
==24117== overflow in your program's main thread (unlikely but
==24117== possible), you can try to increase the size of the
==24117== main thread stack using the --main-stacksize= flag.
==24117== The main thread stack size used in this run was 8388608.
==24117== 1,024 bytes in 1 blocks are definitely lost in loss record 3,084 of 3,199
==24117== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24117== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24117== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24117== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24117== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24117== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24117== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24117== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24117== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24117== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24117== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24117== by 0x40BB675: trace_state (lj_trace.c:690)
==24117== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24117== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24117== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24117== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24117== by 0x407FA29: lua_resume (lj_api.c:1296)
==24117== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24117== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24117== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24117== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24117== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24117== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24117== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24117== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24117== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24117== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24117== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24117== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24117== by 0x8065F7E: main (nginx.c:382)
==24117==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-split.t TEST 34: behavior with /^\d/m - status code ok got: ''
expected: '200'
stream/re-split.t TEST 34: behavior with /^\d/m - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ab
:cdefg
:hij
len: 3
'
stream/re-split.t TEST 34: behavior with /^\d/m - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 34: behavior with /^\d/m - status code ok got: ''
expected: '200'
stream/re-split.t TEST 34: behavior with /^\d/m - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ab
:cdefg
:hij
len: 3
'
stream/re-split.t TEST 6: split matches + max limiter - Can't connect to 127.0.0.1:1984: Connection refused ==24119== Invalid read of size 4
==24119== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24119== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24119== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24119== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24119== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24119== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24119== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24119== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24119== by 0x8065F7E: main (nginx.c:382)
==24119== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24119==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-split.t TEST 6: split matches + max limiter - Can't connect to 127.0.0.1:1984: Connection refused ==24119==
==24119== Process terminating with default action of signal 11 (SIGSEGV)
==24119== Access not within mapped region at address 0x0
==24119== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24119== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24119== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24119== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24119== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24119== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24119== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24119== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24119== by 0x8065F7E: main (nginx.c:382)
==24119== If you believe this happened as a result of a stack
==24119== overflow in your program's main thread (unlikely but
==24119== possible), you can try to increase the size of the
==24119== main thread stack using the --main-stacksize= flag.
==24119== The main thread stack size used in this run was 8388608.
==24119== 1,024 bytes in 1 blocks are definitely lost in loss record 3,076 of 3,192
==24119== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24119== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24119== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24119== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24119== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24119== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24119== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24119== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24119== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24119== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24119== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24119== by 0x40BB675: trace_state (lj_trace.c:690)
==24119== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24119== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24119== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24119== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24119== by 0x407FA29: lua_resume (lj_api.c:1296)
==24119== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24119== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24119== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24119== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24119== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24119== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24119== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24119== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24119== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24119== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24119== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24119== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24119== by 0x8065F7E: main (nginx.c:382)
==24119==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-split.t TEST 6: split matches + max limiter - status code ok got: ''
expected: '200'
stream/re-split.t TEST 6: split matches + max limiter - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
b
c,d,e
'
stream/re-split.t TEST 6: split matches + max limiter - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 6: split matches + max limiter - status code ok got: ''
expected: '200'
stream/re-split.t TEST 6: split matches + max limiter - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
b
c,d,e
'
stream/re-split.t TEST 14: split matches, provided res table (non-cleared) + max limiter - Can't connect to 127.0.0.1:1984: Connection refused ==24121== Invalid read of size 4
==24121== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24121== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24121== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24121== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24121== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24121== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24121== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24121== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24121== by 0x8065F7E: main (nginx.c:382)
==24121== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24121==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-split.t TEST 14: split matches, provided res table (non-cleared) + max limiter - Can't connect to 127.0.0.1:1984: Connection refused ==24121==
==24121== Process terminating with default action of signal 11 (SIGSEGV)
==24121== Access not within mapped region at address 0x0
==24121== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24121== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24121== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24121== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24121== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24121== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24121== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24121== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24121== by 0x8065F7E: main (nginx.c:382)
==24121== If you believe this happened as a result of a stack
==24121== overflow in your program's main thread (unlikely but
==24121== possible), you can try to increase the size of the
==24121== main thread stack using the --main-stacksize= flag.
==24121== The main thread stack size used in this run was 8388608.
==24121== 1,024 bytes in 1 blocks are definitely lost in loss record 3,083 of 3,199
==24121== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24121== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24121== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24121== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24121== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24121== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24121== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24121== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24121== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24121== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24121== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24121== by 0x40BB675: trace_state (lj_trace.c:690)
==24121== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24121== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24121== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24121== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24121== by 0x407FA29: lua_resume (lj_api.c:1296)
==24121== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24121== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24121== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24121== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24121== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24121== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24121== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24121== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24121== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24121== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24121== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24121== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24121== by 0x8065F7E: main (nginx.c:382)
==24121==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-split.t TEST 14: split matches, provided res table (non-cleared) + max limiter - status code ok got: ''
expected: '200'
stream/re-split.t TEST 14: split matches, provided res table (non-cleared) + max limiter - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
b
c,d,e
'
stream/re-split.t TEST 14: split matches, provided res table (non-cleared) + max limiter - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 14: split matches, provided res table (non-cleared) + max limiter - status code ok got: ''
expected: '200'
stream/re-split.t TEST 14: split matches, provided res table (non-cleared) + max limiter - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
b
c,d,e
'
stream/re-split.t TEST 2: split matches, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24123== Invalid read of size 4
==24123== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24123== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24123== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24123== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24123== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24123== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24123== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24123== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24123== by 0x8065F7E: main (nginx.c:382)
==24123== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24123==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-split.t TEST 2: split matches, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24123==
==24123== Process terminating with default action of signal 11 (SIGSEGV)
==24123== Access not within mapped region at address 0x0
==24123== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24123== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24123== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24123== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24123== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24123== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24123== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24123== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24123== by 0x8065F7E: main (nginx.c:382)
==24123== If you believe this happened as a result of a stack
==24123== overflow in your program's main thread (unlikely but
==24123== possible), you can try to increase the size of the
==24123== main thread stack using the --main-stacksize= flag.
==24123== The main thread stack size used in this run was 8388608.
==24123== 1,024 bytes in 1 blocks are definitely lost in loss record 3,077 of 3,193
==24123== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24123== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24123== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24123== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24123== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24123== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24123== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24123== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24123== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24123== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24123== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24123== by 0x40BB675: trace_state (lj_trace.c:690)
==24123== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24123== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24123== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24123== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24123== by 0x407FA29: lua_resume (lj_api.c:1296)
==24123== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24123== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24123== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24123== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24123== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24123== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24123== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24123== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24123== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24123== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24123== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24123== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24123== by 0x8065F7E: main (nginx.c:382)
==24123==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-split.t TEST 2: split matches, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
stream/re-split.t TEST 2: split matches, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
b
c
d;e
'
stream/re-split.t TEST 2: split matches, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 2: split matches, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
stream/re-split.t TEST 2: split matches, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
b
c
d;e
'
stream/re-split.t TEST 20: subject is not a string type - Can't connect to 127.0.0.1:1984: Connection refused ==24125== Invalid read of size 4
==24125== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24125== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24125== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24125== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24125== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24125== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24125== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24125== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24125== by 0x8065F7E: main (nginx.c:382)
==24125== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24125==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-split.t TEST 20: subject is not a string type - Can't connect to 127.0.0.1:1984: Connection refused ==24125==
==24125== Process terminating with default action of signal 11 (SIGSEGV)
==24125== Access not within mapped region at address 0x0
==24125== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24125== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24125== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24125== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24125== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24125== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24125== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24125== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24125== by 0x8065F7E: main (nginx.c:382)
==24125== If you believe this happened as a result of a stack
==24125== overflow in your program's main thread (unlikely but
==24125== possible), you can try to increase the size of the
==24125== main thread stack using the --main-stacksize= flag.
==24125== The main thread stack size used in this run was 8388608.
==24125== 1,024 bytes in 1 blocks are definitely lost in loss record 3,091 of 3,207
==24125== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24125== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24125== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24125== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24125== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24125== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24125== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24125== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24125== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24125== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24125== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24125== by 0x40BB675: trace_state (lj_trace.c:690)
==24125== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24125== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24125== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24125== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24125== by 0x407FA29: lua_resume (lj_api.c:1296)
==24125== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24125== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24125== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24125== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24125== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24125== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24125== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24125== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24125== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24125== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24125== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24125== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24125== by 0x8065F7E: main (nginx.c:382)
==24125==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-split.t TEST 20: subject is not a string type - status code ok got: ''
expected: '200'
stream/re-split.t TEST 20: subject is not a string type - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1
451
45
'
stream/re-split.t TEST 20: subject is not a string type - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 20: subject is not a string type - status code ok got: ''
expected: '200'
stream/re-split.t TEST 20: subject is not a string type - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '1
451
45
'
stream/re-split.t TEST 21: split matches, pos is larger than subject length - Can't connect to 127.0.0.1:1984: Connection refused ==24127== Invalid read of size 4
==24127== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24127== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24127== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24127== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24127== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24127== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24127== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24127== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24127== by 0x8065F7E: main (nginx.c:382)
==24127== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24127==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-split.t TEST 21: split matches, pos is larger than subject length - Can't connect to 127.0.0.1:1984: Connection refused ==24127==
==24127== Process terminating with default action of signal 11 (SIGSEGV)
==24127== Access not within mapped region at address 0x0
==24127== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24127== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24127== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24127== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24127== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24127== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24127== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24127== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24127== by 0x8065F7E: main (nginx.c:382)
==24127== If you believe this happened as a result of a stack
==24127== overflow in your program's main thread (unlikely but
==24127== possible), you can try to increase the size of the
==24127== main thread stack using the --main-stacksize= flag.
==24127== The main thread stack size used in this run was 8388608.

stream/re-split.t TEST 21: split matches, pos is larger than subject length - status code ok got: ''
expected: '200'
stream/re-split.t TEST 21: split matches, pos is larger than subject length - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'len: 0
'
stream/re-split.t TEST 21: split matches, pos is larger than subject length - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 21: split matches, pos is larger than subject length - status code ok got: ''
expected: '200'
stream/re-split.t TEST 21: split matches, pos is larger than subject length - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'len: 0
'
stream/re-split.t TEST 25: regex is "" with pos larger than subject length - Can't connect to 127.0.0.1:1984: Connection refused ==24129== Invalid read of size 4
==24129== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24129== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24129== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24129== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24129== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24129== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24129== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24129== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24129== by 0x8065F7E: main (nginx.c:382)
==24129== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24129==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-split.t TEST 25: regex is "" with pos larger than subject length - Can't connect to 127.0.0.1:1984: Connection refused ==24129==
==24129== Process terminating with default action of signal 11 (SIGSEGV)
==24129== Access not within mapped region at address 0x0
==24129== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24129== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24129== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24129== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24129== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24129== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24129== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24129== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24129== by 0x8065F7E: main (nginx.c:382)
==24129== If you believe this happened as a result of a stack
==24129== overflow in your program's main thread (unlikely but
==24129== possible), you can try to increase the size of the
==24129== main thread stack using the --main-stacksize= flag.
==24129== The main thread stack size used in this run was 8388608.

stream/re-split.t TEST 25: regex is "" with pos larger than subject length - status code ok got: ''
expected: '200'
stream/re-split.t TEST 25: regex is "" with pos larger than subject length - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'len: 0
'
stream/re-split.t TEST 25: regex is "" with pos larger than subject length - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 25: regex is "" with pos larger than subject length - status code ok got: ''
expected: '200'
stream/re-split.t TEST 25: regex is "" with pos larger than subject length - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'len: 0
'
stream/re-split.t TEST 17: split matches, trailing subjects - Can't connect to 127.0.0.1:1984: Connection refused ==24131== Invalid read of size 4
==24131== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24131== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24131== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24131== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24131== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24131== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24131== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24131== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24131== by 0x8065F7E: main (nginx.c:382)
==24131== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24131==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-split.t TEST 17: split matches, trailing subjects - Can't connect to 127.0.0.1:1984: Connection refused ==24131==
==24131== Process terminating with default action of signal 11 (SIGSEGV)
==24131== Access not within mapped region at address 0x0
==24131== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24131== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24131== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24131== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24131== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24131== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24131== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24131== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24131== by 0x8065F7E: main (nginx.c:382)
==24131== If you believe this happened as a result of a stack
==24131== overflow in your program's main thread (unlikely but
==24131== possible), you can try to increase the size of the
==24131== main thread stack using the --main-stacksize= flag.
==24131== The main thread stack size used in this run was 8388608.
==24131== 1,024 bytes in 1 blocks are definitely lost in loss record 3,077 of 3,193
==24131== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24131== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24131== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24131== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24131== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24131== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24131== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24131== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24131== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24131== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24131== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24131== by 0x40BB675: trace_state (lj_trace.c:690)
==24131== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24131== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24131== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24131== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24131== by 0x407FA29: lua_resume (lj_api.c:1296)
==24131== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24131== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24131== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24131== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24131== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24131== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24131== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24131== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24131== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24131== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24131== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24131== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24131== by 0x8065F7E: main (nginx.c:382)
==24131==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-split.t TEST 17: split matches, trailing subjects - status code ok got: ''
expected: '200'
stream/re-split.t TEST 17: split matches, trailing subjects - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '_blank_
a
b
c
d
'
stream/re-split.t TEST 17: split matches, trailing subjects - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 17: split matches, trailing subjects - status code ok got: ''
expected: '200'
stream/re-split.t TEST 17: split matches, trailing subjects - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '_blank_
a
b
c
d
'
stream/re-split.t TEST 28: no match separator (github issue #104) & max - Can't connect to 127.0.0.1:1984: Connection refused ==24133== Invalid read of size 4
==24133== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24133== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24133== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24133== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24133== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24133== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24133== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24133== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24133== by 0x8065F7E: main (nginx.c:382)
==24133== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24133==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-split.t TEST 28: no match separator (github issue #104) & max - Can't connect to 127.0.0.1:1984: Connection refused ==24133==
==24133== Process terminating with default action of signal 11 (SIGSEGV)
==24133== Access not within mapped region at address 0x0
==24133== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24133== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24133== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24133== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24133== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24133== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24133== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24133== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24133== by 0x8065F7E: main (nginx.c:382)
==24133== If you believe this happened as a result of a stack
==24133== overflow in your program's main thread (unlikely but
==24133== possible), you can try to increase the size of the
==24133== main thread stack using the --main-stacksize= flag.
==24133== The main thread stack size used in this run was 8388608.
==24133== 1,024 bytes in 1 blocks are definitely lost in loss record 3,081 of 3,195
==24133== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24133== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24133== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24133== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24133== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24133== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24133== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24133== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24133== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24133== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24133== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24133== by 0x40BB675: trace_state (lj_trace.c:690)
==24133== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24133== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24133== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24133== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24133== by 0x407FA29: lua_resume (lj_api.c:1296)
==24133== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24133== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24133== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24133== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24133== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24133== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24133== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24133== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24133== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24133== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24133== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24133== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24133== by 0x8065F7E: main (nginx.c:382)
==24133==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-split.t TEST 28: no match separator (github issue \#104) & max - status code ok got: ''
expected: '200'
stream/re-split.t TEST 28: no match separator (github issue \#104) & max - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a:bcd
len: 2
'
stream/re-split.t TEST 28: no match separator (github issue \#104) & max - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 28: no match separator (github issue \#104) & max - status code ok got: ''
expected: '200'
stream/re-split.t TEST 28: no match separator (github issue \#104) & max - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a:bcd
len: 2
'
stream/re-split.t TEST 8: split matches + max limiter set to 0 - Can't connect to 127.0.0.1:1984: Connection refused ==24135== Invalid read of size 4
==24135== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24135== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24135== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24135== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24135== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24135== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24135== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24135== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24135== by 0x8065F7E: main (nginx.c:382)
==24135== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24135==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-split.t TEST 8: split matches + max limiter set to 0 - Can't connect to 127.0.0.1:1984: Connection refused ==24135==
==24135== Process terminating with default action of signal 11 (SIGSEGV)
==24135== Access not within mapped region at address 0x0
==24135== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24135== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24135== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24135== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24135== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24135== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24135== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24135== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24135== by 0x8065F7E: main (nginx.c:382)
==24135== If you believe this happened as a result of a stack
==24135== overflow in your program's main thread (unlikely but
==24135== possible), you can try to increase the size of the
==24135== main thread stack using the --main-stacksize= flag.
==24135== The main thread stack size used in this run was 8388608.
==24135== 1,024 bytes in 1 blocks are definitely lost in loss record 3,077 of 3,193
==24135== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24135== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24135== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24135== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24135== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24135== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24135== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24135== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24135== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24135== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24135== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24135== by 0x40BB675: trace_state (lj_trace.c:690)
==24135== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24135== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24135== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24135== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24135== by 0x407FA29: lua_resume (lj_api.c:1296)
==24135== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24135== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24135== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24135== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24135== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24135== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24135== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24135== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24135== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24135== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24135== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24135== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24135== by 0x8065F7E: main (nginx.c:382)
==24135==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-split.t TEST 8: split matches + max limiter set to 0 - status code ok got: ''
expected: '200'
stream/re-split.t TEST 8: split matches + max limiter set to 0 - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
b
c
d
e
'
stream/re-split.t TEST 8: split matches + max limiter set to 0 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 8: split matches + max limiter set to 0 - status code ok got: ''
expected: '200'
stream/re-split.t TEST 8: split matches + max limiter set to 0 - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
b
c
d
e
'
stream/re-split.t TEST 23: regex is "" with max - Can't connect to 127.0.0.1:1984: Connection refused ==24137== Invalid read of size 4
==24137== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24137== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24137== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24137== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24137== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24137== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24137== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24137== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24137== by 0x8065F7E: main (nginx.c:382)
==24137== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24137==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-split.t TEST 23: regex is "" with max - Can't connect to 127.0.0.1:1984: Connection refused ==24137==
==24137== Process terminating with default action of signal 11 (SIGSEGV)
==24137== Access not within mapped region at address 0x0
==24137== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24137== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24137== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24137== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24137== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24137== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24137== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24137== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24137== by 0x8065F7E: main (nginx.c:382)
==24137== If you believe this happened as a result of a stack
==24137== overflow in your program's main thread (unlikely but
==24137== possible), you can try to increase the size of the
==24137== main thread stack using the --main-stacksize= flag.
==24137== The main thread stack size used in this run was 8388608.
==24137== 1,024 bytes in 1 blocks are definitely lost in loss record 3,094 of 3,210
==24137== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24137== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24137== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24137== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24137== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24137== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24137== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24137== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24137== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24137== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24137== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24137== by 0x40BB675: trace_state (lj_trace.c:690)
==24137== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24137== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24137== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24137== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24137== by 0x407FA29: lua_resume (lj_api.c:1296)
==24137== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24137== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24137== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24137== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24137== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24137== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24137== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24137== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24137== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24137== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24137== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24137== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24137== by 0x8065F7E: main (nginx.c:382)
==24137==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-split.t TEST 23: regex is "" with max - status code ok got: ''
expected: '200'
stream/re-split.t TEST 23: regex is "" with max - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1
2
345
len: 3
'
stream/re-split.t TEST 23: regex is "" with max - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 23: regex is "" with max - status code ok got: ''
expected: '200'
stream/re-split.t TEST 23: regex is "" with max - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '1
2
345
len: 3
'
stream/re-split.t TEST 18: split matches, real use-case - Can't connect to 127.0.0.1:1984: Connection refused ==24139== Invalid read of size 4
==24139== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24139== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24139== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24139== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24139== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24139== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24139== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24139== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24139== by 0x8065F7E: main (nginx.c:382)
==24139== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24139==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-split.t TEST 18: split matches, real use-case - Can't connect to 127.0.0.1:1984: Connection refused ==24139==
==24139== Process terminating with default action of signal 11 (SIGSEGV)
==24139== Access not within mapped region at address 0x0
==24139== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24139== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24139== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24139== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24139== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24139== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24139== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24139== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24139== by 0x8065F7E: main (nginx.c:382)
==24139== If you believe this happened as a result of a stack
==24139== overflow in your program's main thread (unlikely but
==24139== possible), you can try to increase the size of the
==24139== main thread stack using the --main-stacksize= flag.
==24139== The main thread stack size used in this run was 8388608.
==24139== 1,024 bytes in 1 blocks are definitely lost in loss record 2,983 of 3,074
==24139== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24139== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24139== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24139== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24139== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24139== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24139== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24139== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24139== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24139== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24139== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24139== by 0x40BB675: trace_state (lj_trace.c:690)
==24139== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24139== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24139== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24139== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24139== by 0x407FA29: lua_resume (lj_api.c:1296)
==24139== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24139== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24139== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24139== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24139== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24139== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24139== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24139== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24139== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24139== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24139== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24139== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24139== by 0x8065F7E: main (nginx.c:382)
==24139==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-split.t TEST 18: split matches, real use-case - status code ok got: ''
expected: '200'
stream/re-split.t TEST 18: split matches, real use-case - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'abcd
erfg
ghij
hello world
aaa
'
stream/re-split.t TEST 18: split matches, real use-case - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 18: split matches, real use-case - status code ok got: ''
expected: '200'
stream/re-split.t TEST 18: split matches, real use-case - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'abcd
erfg
ghij
hello world
aaa
'
stream/re-split.t TEST 30: behavior with /^/ differs from Perl's split - Can't connect to 127.0.0.1:1984: Connection refused ==24141== Invalid read of size 4
==24141== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24141== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24141== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24141== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24141== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24141== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24141== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24141== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24141== by 0x8065F7E: main (nginx.c:382)
==24141== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24141==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-split.t TEST 30: behavior with /^/ differs from Perl's split - Can't connect to 127.0.0.1:1984: Connection refused ==24141==
==24141== Process terminating with default action of signal 11 (SIGSEGV)
==24141== Access not within mapped region at address 0x0
==24141== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24141== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24141== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24141== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24141== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24141== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24141== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24141== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24141== by 0x8065F7E: main (nginx.c:382)
==24141== If you believe this happened as a result of a stack
==24141== overflow in your program's main thread (unlikely but
==24141== possible), you can try to increase the size of the
==24141== main thread stack using the --main-stacksize= flag.
==24141== The main thread stack size used in this run was 8388608.
==24141== 1,024 bytes in 1 blocks are definitely lost in loss record 3,077 of 3,193
==24141== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24141== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24141== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24141== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24141== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24141== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24141== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24141== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24141== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24141== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24141== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24141== by 0x40BB675: trace_state (lj_trace.c:690)
==24141== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24141== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24141== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24141== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24141== by 0x407FA29: lua_resume (lj_api.c:1296)
==24141== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24141== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24141== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24141== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24141== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24141== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24141== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24141== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24141== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24141== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24141== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24141== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24141== by 0x8065F7E: main (nginx.c:382)
==24141==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-split.t TEST 30: behavior with /^/ differs from Perl's split - status code ok got: ''
expected: '200'
stream/re-split.t TEST 30: behavior with /^/ differs from Perl's split - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ab
cd
ef
len: 1
'
stream/re-split.t TEST 30: behavior with /^/ differs from Perl's split - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 30: behavior with /^/ differs from Perl's split - status code ok got: ''
expected: '200'
stream/re-split.t TEST 30: behavior with /^/ differs from Perl's split - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ab
cd
ef
len: 1
'
stream/re-split.t TEST 4: split matches + submatch (matching) - Can't connect to 127.0.0.1:1984: Connection refused ==24143== Invalid read of size 4
==24143== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24143== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24143== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24143== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24143== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24143== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24143== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24143== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24143== by 0x8065F7E: main (nginx.c:382)
==24143== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24143==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-split.t TEST 4: split matches + submatch (matching) - Can't connect to 127.0.0.1:1984: Connection refused ==24143==
==24143== Process terminating with default action of signal 11 (SIGSEGV)
==24143== Access not within mapped region at address 0x0
==24143== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24143== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24143== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24143== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24143== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24143== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24143== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24143== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24143== by 0x8065F7E: main (nginx.c:382)
==24143== If you believe this happened as a result of a stack
==24143== overflow in your program's main thread (unlikely but
==24143== possible), you can try to increase the size of the
==24143== main thread stack using the --main-stacksize= flag.
==24143== The main thread stack size used in this run was 8388608.
==24143== 1,024 bytes in 1 blocks are definitely lost in loss record 3,077 of 3,193
==24143== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24143== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24143== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24143== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24143== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24143== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24143== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24143== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24143== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24143== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24143== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24143== by 0x40BB675: trace_state (lj_trace.c:690)
==24143== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24143== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24143== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24143== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24143== by 0x407FA29: lua_resume (lj_api.c:1296)
==24143== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24143== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24143== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24143== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24143== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24143== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24143== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24143== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24143== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24143== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24143== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24143== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24143== by 0x8065F7E: main (nginx.c:382)
==24143==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-split.t TEST 4: split matches + submatch (matching) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 4: split matches + submatch (matching) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
;
b
;
c
;
d,e
'
stream/re-split.t TEST 4: split matches + submatch (matching) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 4: split matches + submatch (matching) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 4: split matches + submatch (matching) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
;
b
;
c
;
d,e
'
stream/re-split.t TEST 31: behavior with /^/m - Can't connect to 127.0.0.1:1984: Connection refused ==24145== Invalid read of size 4
==24145== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24145== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24145== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24145== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24145== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24145== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24145== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24145== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24145== by 0x8065F7E: main (nginx.c:382)
==24145== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24145==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-split.t TEST 31: behavior with /^/m - Can't connect to 127.0.0.1:1984: Connection refused ==24145==
==24145== Process terminating with default action of signal 11 (SIGSEGV)
==24145== Access not within mapped region at address 0x0
==24145== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24145== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24145== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24145== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24145== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24145== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24145== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24145== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24145== by 0x8065F7E: main (nginx.c:382)
==24145== If you believe this happened as a result of a stack
==24145== overflow in your program's main thread (unlikely but
==24145== possible), you can try to increase the size of the
==24145== main thread stack using the --main-stacksize= flag.
==24145== The main thread stack size used in this run was 8388608.
==24145== 1,024 bytes in 1 blocks are definitely lost in loss record 3,083 of 3,198
==24145== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24145== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24145== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24145== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24145== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24145== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24145== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24145== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24145== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24145== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24145== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24145== by 0x40BB675: trace_state (lj_trace.c:690)
==24145== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24145== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24145== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24145== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24145== by 0x407FA29: lua_resume (lj_api.c:1296)
==24145== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24145== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24145== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24145== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24145== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24145== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24145== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24145== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24145== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24145== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24145== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24145== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24145== by 0x8065F7E: main (nginx.c:382)
==24145==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-split.t TEST 31: behavior with /^/m - status code ok got: ''
expected: '200'
stream/re-split.t TEST 31: behavior with /^/m - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ab
:cd
:ef
len: 3
'
stream/re-split.t TEST 31: behavior with /^/m - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 31: behavior with /^/m - status code ok got: ''
expected: '200'
stream/re-split.t TEST 31: behavior with /^/m - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ab
:cd
:ef
len: 3
'
stream/re-split.t TEST 11: split matches, provided res table - Can't connect to 127.0.0.1:1984: Connection refused ==24147== Invalid read of size 4
==24147== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24147== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24147== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24147== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24147== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24147== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24147== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24147== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24147== by 0x8065F7E: main (nginx.c:382)
==24147== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24147==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-split.t TEST 11: split matches, provided res table - Can't connect to 127.0.0.1:1984: Connection refused ==24147==
==24147== Process terminating with default action of signal 11 (SIGSEGV)
==24147== Access not within mapped region at address 0x0
==24147== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24147== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24147== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24147== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24147== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24147== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24147== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24147== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24147== by 0x8065F7E: main (nginx.c:382)
==24147== If you believe this happened as a result of a stack
==24147== overflow in your program's main thread (unlikely but
==24147== possible), you can try to increase the size of the
==24147== main thread stack using the --main-stacksize= flag.
==24147== The main thread stack size used in this run was 8388608.
==24147== 1,024 bytes in 1 blocks are definitely lost in loss record 3,091 of 3,208
==24147== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24147== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24147== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24147== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24147== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24147== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24147== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24147== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24147== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24147== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24147== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24147== by 0x40BB675: trace_state (lj_trace.c:690)
==24147== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24147== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24147== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24147== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24147== by 0x407FA29: lua_resume (lj_api.c:1296)
==24147== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24147== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24147== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24147== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24147== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24147== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24147== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24147== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24147== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24147== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24147== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24147== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24147== by 0x8065F7E: main (nginx.c:382)
==24147==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-split.t TEST 11: split matches, provided res table - status code ok got: ''
expected: '200'
stream/re-split.t TEST 11: split matches, provided res table - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
b
c
d
e
'
stream/re-split.t TEST 11: split matches, provided res table - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 11: split matches, provided res table - status code ok got: ''
expected: '200'
stream/re-split.t TEST 11: split matches, provided res table - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
b
c
d
e
'
stream/re-split.t TEST 3: split matches, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24149== Invalid read of size 4
==24149== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24149== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24149== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24149== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24149== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24149== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24149== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24149== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24149== by 0x8065F7E: main (nginx.c:382)
==24149== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24149==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-split.t TEST 3: split matches, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24149==
==24149== Process terminating with default action of signal 11 (SIGSEGV)
==24149== Access not within mapped region at address 0x0
==24149== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24149== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24149== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24149== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24149== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24149== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24149== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24149== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24149== by 0x8065F7E: main (nginx.c:382)
==24149== If you believe this happened as a result of a stack
==24149== overflow in your program's main thread (unlikely but
==24149== possible), you can try to increase the size of the
==24149== main thread stack using the --main-stacksize= flag.
==24149== The main thread stack size used in this run was 8388608.
==24149== 1,024 bytes in 1 blocks are definitely lost in loss record 3,093 of 3,209
==24149== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24149== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24149== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24149== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24149== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24149== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24149== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24149== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24149== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24149== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24149== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24149== by 0x40BB675: trace_state (lj_trace.c:690)
==24149== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24149== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24149== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24149== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24149== by 0x407FA29: lua_resume (lj_api.c:1296)
==24149== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24149== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24149== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24149== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24149== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24149== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24149== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24149== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24149== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24149== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24149== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24149== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24149== by 0x8065F7E: main (nginx.c:382)
==24149==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-split.t TEST 3: split matches, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
stream/re-split.t TEST 3: split matches, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
b
c
d
'
stream/re-split.t TEST 3: split matches, no submatch, jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 3: split matches, no submatch, jit compile, regex cache - status code ok got: ''
expected: '200'
stream/re-split.t TEST 3: split matches, no submatch, jit compile, regex cache - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
b
c
d
'
stream/re-split.t TEST 13: split matches, provided res table + max limiter - Can't connect to 127.0.0.1:1984: Connection refused ==24151== Invalid read of size 4
==24151== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24151== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24151== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24151== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24151== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24151== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24151== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24151== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24151== by 0x8065F7E: main (nginx.c:382)
==24151== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24151==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-split.t TEST 13: split matches, provided res table + max limiter - Can't connect to 127.0.0.1:1984: Connection refused ==24151==
==24151== Process terminating with default action of signal 11 (SIGSEGV)
==24151== Access not within mapped region at address 0x0
==24151== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24151== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24151== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24151== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24151== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24151== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24151== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24151== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24151== by 0x8065F7E: main (nginx.c:382)
==24151== If you believe this happened as a result of a stack
==24151== overflow in your program's main thread (unlikely but
==24151== possible), you can try to increase the size of the
==24151== main thread stack using the --main-stacksize= flag.
==24151== The main thread stack size used in this run was 8388608.
==24151== 1,024 bytes in 1 blocks are definitely lost in loss record 3,079 of 3,195
==24151== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24151== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24151== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24151== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24151== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24151== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24151== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24151== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24151== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24151== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24151== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24151== by 0x40BB675: trace_state (lj_trace.c:690)
==24151== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24151== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24151== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24151== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24151== by 0x407FA29: lua_resume (lj_api.c:1296)
==24151== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24151== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24151== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24151== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24151== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24151== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24151== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24151== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24151== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24151== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24151== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24151== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24151== by 0x8065F7E: main (nginx.c:382)
==24151==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-split.t TEST 13: split matches, provided res table + max limiter - status code ok got: ''
expected: '200'
stream/re-split.t TEST 13: split matches, provided res table + max limiter - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
b
c,d,e
'
stream/re-split.t TEST 13: split matches, provided res table + max limiter - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 13: split matches, provided res table + max limiter - status code ok got: ''
expected: '200'
stream/re-split.t TEST 13: split matches, provided res table + max limiter - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
b
c,d,e
'
stream/re-split.t TEST 16: split matches, ctx arg - Can't connect to 127.0.0.1:1984: Connection refused ==24153== Invalid read of size 4
==24153== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24153== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24153== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24153== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24153== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24153== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24153== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24153== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24153== by 0x8065F7E: main (nginx.c:382)
==24153== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24153==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-split.t TEST 16: split matches, ctx arg - Can't connect to 127.0.0.1:1984: Connection refused ==24153==
==24153== Process terminating with default action of signal 11 (SIGSEGV)
==24153== Access not within mapped region at address 0x0
==24153== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24153== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24153== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24153== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24153== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24153== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24153== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24153== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24153== by 0x8065F7E: main (nginx.c:382)
==24153== If you believe this happened as a result of a stack
==24153== overflow in your program's main thread (unlikely but
==24153== possible), you can try to increase the size of the
==24153== main thread stack using the --main-stacksize= flag.
==24153== The main thread stack size used in this run was 8388608.
==24153== 1,024 bytes in 1 blocks are definitely lost in loss record 3,096 of 3,212
==24153== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24153== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24153== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24153== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24153== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24153== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24153== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24153== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24153== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24153== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24153== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24153== by 0x40BB675: trace_state (lj_trace.c:690)
==24153== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24153== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24153== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24153== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24153== by 0x407FA29: lua_resume (lj_api.c:1296)
==24153== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24153== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24153== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24153== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24153== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24153== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24153== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24153== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24153== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24153== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24153== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24153== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24153== by 0x8065F7E: main (nginx.c:382)
==24153==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-split.t TEST 16: split matches, ctx arg - status code ok got: ''
expected: '200'
stream/re-split.t TEST 16: split matches, ctx arg - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'c
d
e
'
stream/re-split.t TEST 16: split matches, ctx arg - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 16: split matches, ctx arg - status code ok got: ''
expected: '200'
stream/re-split.t TEST 16: split matches, ctx arg - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'c
d
e
'
stream/re-split.t TEST 39: remaining characters are matched by regex (with max) - Can't connect to 127.0.0.1:1984: Connection refused ==24155== Invalid read of size 4
==24155== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24155== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24155== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24155== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24155== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24155== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24155== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24155== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24155== by 0x8065F7E: main (nginx.c:382)
==24155== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24155==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-split.t TEST 39: remaining characters are matched by regex (with max) - Can't connect to 127.0.0.1:1984: Connection refused ==24155==
==24155== Process terminating with default action of signal 11 (SIGSEGV)
==24155== Access not within mapped region at address 0x0
==24155== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24155== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24155== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24155== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24155== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24155== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24155== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24155== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24155== by 0x8065F7E: main (nginx.c:382)
==24155== If you believe this happened as a result of a stack
==24155== overflow in your program's main thread (unlikely but
==24155== possible), you can try to increase the size of the
==24155== main thread stack using the --main-stacksize= flag.
==24155== The main thread stack size used in this run was 8388608.
==24155== 1,024 bytes in 1 blocks are definitely lost in loss record 3,084 of 3,200
==24155== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24155== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24155== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24155== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24155== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24155== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24155== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24155== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24155== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24155== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24155== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24155== by 0x40BB675: trace_state (lj_trace.c:690)
==24155== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24155== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24155== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24155== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24155== by 0x407FA29: lua_resume (lj_api.c:1296)
==24155== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24155== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24155== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24155== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24155== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24155== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24155== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24155== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24155== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24155== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24155== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24155== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24155== by 0x8065F7E: main (nginx.c:382)
==24155==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-split.t TEST 39: remaining characters are matched by regex (with max) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 39: remaining characters are matched by regex (with max) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1 a,b,cd,,,
2 a|b,cd,,,
3 a|b|cd,,,
4 a|b|cd|,,
5 a|b|cd||,
6 a|b|cd|||
6 a|b|cd|||
'
stream/re-split.t TEST 39: remaining characters are matched by regex (with max) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 39: remaining characters are matched by regex (with max) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 39: remaining characters are matched by regex (with max) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '1 a,b,cd,,,
2 a|b,cd,,,
3 a|b|cd,,,
4 a|b|cd|,,
5 a|b|cd||,
6 a|b|cd|||
6 a|b|cd|||
'
stream/re-split.t TEST 24: regex is "" with pos - Can't connect to 127.0.0.1:1984: Connection refused ==24157== Invalid read of size 4
==24157== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24157== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24157== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24157== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24157== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24157== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24157== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24157== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24157== by 0x8065F7E: main (nginx.c:382)
==24157== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24157==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-split.t TEST 24: regex is "" with pos - Can't connect to 127.0.0.1:1984: Connection refused ==24157==
==24157== Process terminating with default action of signal 11 (SIGSEGV)
==24157== Access not within mapped region at address 0x0
==24157== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24157== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24157== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24157== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24157== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24157== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24157== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24157== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24157== by 0x8065F7E: main (nginx.c:382)
==24157== If you believe this happened as a result of a stack
==24157== overflow in your program's main thread (unlikely but
==24157== possible), you can try to increase the size of the
==24157== main thread stack using the --main-stacksize= flag.
==24157== The main thread stack size used in this run was 8388608.
==24157== 1,024 bytes in 1 blocks are definitely lost in loss record 3,094 of 3,209
==24157== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24157== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24157== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24157== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24157== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24157== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24157== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24157== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24157== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24157== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24157== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24157== by 0x40BB675: trace_state (lj_trace.c:690)
==24157== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24157== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24157== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24157== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24157== by 0x407FA29: lua_resume (lj_api.c:1296)
==24157== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24157== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24157== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24157== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24157== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24157== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24157== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24157== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24157== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24157== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24157== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24157== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24157== by 0x8065F7E: main (nginx.c:382)
==24157==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-split.t TEST 24: regex is "" with pos - status code ok got: ''
expected: '200'
stream/re-split.t TEST 24: regex is "" with pos - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '2
3
4
5
len: 4
'
stream/re-split.t TEST 24: regex is "" with pos - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 24: regex is "" with pos - status code ok got: ''
expected: '200'
stream/re-split.t TEST 24: regex is "" with pos - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '2
3
4
5
len: 4
'
stream/re-split.t TEST 27: no match separator (github issue #104) - Can't connect to 127.0.0.1:1984: Connection refused ==24159== Invalid read of size 4
==24159== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24159== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24159== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24159== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24159== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24159== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24159== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24159== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24159== by 0x8065F7E: main (nginx.c:382)
==24159== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24159==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-split.t TEST 27: no match separator (github issue #104) - Can't connect to 127.0.0.1:1984: Connection refused ==24159==
==24159== Process terminating with default action of signal 11 (SIGSEGV)
==24159== Access not within mapped region at address 0x0
==24159== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24159== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24159== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24159== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24159== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24159== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24159== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24159== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24159== by 0x8065F7E: main (nginx.c:382)
==24159== If you believe this happened as a result of a stack
==24159== overflow in your program's main thread (unlikely but
==24159== possible), you can try to increase the size of the
==24159== main thread stack using the --main-stacksize= flag.
==24159== The main thread stack size used in this run was 8388608.
==24159== 1,024 bytes in 1 blocks are definitely lost in loss record 3,081 of 3,197
==24159== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24159== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24159== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24159== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24159== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24159== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24159== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24159== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24159== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24159== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24159== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24159== by 0x40BB675: trace_state (lj_trace.c:690)
==24159== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24159== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24159== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24159== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24159== by 0x407FA29: lua_resume (lj_api.c:1296)
==24159== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24159== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24159== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24159== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24159== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24159== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24159== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24159== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24159== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24159== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24159== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24159== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24159== by 0x8065F7E: main (nginx.c:382)
==24159==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-split.t TEST 27: no match separator (github issue \#104) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 27: no match separator (github issue \#104) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a:b:c:d
len: 4
'
stream/re-split.t TEST 27: no match separator (github issue \#104) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 27: no match separator (github issue \#104) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 27: no match separator (github issue \#104) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a:b:c:d
len: 4
'
stream/re-split.t TEST 12: split matches, provided res table (non-cleared) - Can't connect to 127.0.0.1:1984: Connection refused ==24161== Invalid read of size 4
==24161== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24161== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24161== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24161== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24161== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24161== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24161== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24161== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24161== by 0x8065F7E: main (nginx.c:382)
==24161== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24161==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-split.t TEST 12: split matches, provided res table (non-cleared) - Can't connect to 127.0.0.1:1984: Connection refused ==24161==
==24161== Process terminating with default action of signal 11 (SIGSEGV)
==24161== Access not within mapped region at address 0x0
==24161== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24161== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24161== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24161== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24161== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24161== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24161== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24161== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24161== by 0x8065F7E: main (nginx.c:382)
==24161== If you believe this happened as a result of a stack
==24161== overflow in your program's main thread (unlikely but
==24161== possible), you can try to increase the size of the
==24161== main thread stack using the --main-stacksize= flag.
==24161== The main thread stack size used in this run was 8388608.
==24161== 1,024 bytes in 1 blocks are definitely lost in loss record 3,083 of 3,199
==24161== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24161== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24161== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24161== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24161== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24161== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24161== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24161== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24161== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24161== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24161== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24161== by 0x40BB675: trace_state (lj_trace.c:690)
==24161== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24161== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24161== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24161== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24161== by 0x407FA29: lua_resume (lj_api.c:1296)
==24161== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24161== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24161== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24161== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24161== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24161== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24161== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24161== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24161== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24161== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24161== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24161== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24161== by 0x8065F7E: main (nginx.c:382)
==24161==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-split.t TEST 12: split matches, provided res table (non-cleared) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 12: split matches, provided res table (non-cleared) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
b
c
d
e
'
stream/re-split.t TEST 12: split matches, provided res table (non-cleared) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 12: split matches, provided res table (non-cleared) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 12: split matches, provided res table (non-cleared) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
b
c
d
e
'
stream/re-split.t TEST 5: split matches + submatch (not matching) - Can't connect to 127.0.0.1:1984: Connection refused ==24163== Invalid read of size 4
==24163== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24163== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24163== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24163== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24163== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24163== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24163== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24163== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24163== by 0x8065F7E: main (nginx.c:382)
==24163== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24163==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-split.t TEST 5: split matches + submatch (not matching) - Can't connect to 127.0.0.1:1984: Connection refused ==24163==
==24163== Process terminating with default action of signal 11 (SIGSEGV)
==24163== Access not within mapped region at address 0x0
==24163== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24163== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24163== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24163== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24163== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24163== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24163== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24163== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24163== by 0x8065F7E: main (nginx.c:382)
==24163== If you believe this happened as a result of a stack
==24163== overflow in your program's main thread (unlikely but
==24163== possible), you can try to increase the size of the
==24163== main thread stack using the --main-stacksize= flag.
==24163== The main thread stack size used in this run was 8388608.
==24163== 1,024 bytes in 1 blocks are definitely lost in loss record 3,076 of 3,192
==24163== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24163== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24163== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24163== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24163== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24163== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24163== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24163== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24163== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24163== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24163== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24163== by 0x40BB675: trace_state (lj_trace.c:690)
==24163== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24163== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24163== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24163== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24163== by 0x407FA29: lua_resume (lj_api.c:1296)
==24163== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24163== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24163== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24163== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24163== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24163== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24163== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24163== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24163== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24163== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24163== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24163== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24163== by 0x8065F7E: main (nginx.c:382)
==24163==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-split.t TEST 5: split matches + submatch (not matching) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 5: split matches + submatch (not matching) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
b
c
d
e
'
stream/re-split.t TEST 5: split matches + submatch (not matching) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 5: split matches + submatch (not matching) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 5: split matches + submatch (not matching) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
b
c
d
e
'
stream/re-split.t TEST 35: behavior with /^(\d)/m (capture) - Can't connect to 127.0.0.1:1984: Connection refused ==24165== Invalid read of size 4
==24165== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24165== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24165== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24165== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24165== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24165== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24165== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24165== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24165== by 0x8065F7E: main (nginx.c:382)
==24165== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24165==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-split.t TEST 35: behavior with /^(\d)/m (capture) - Can't connect to 127.0.0.1:1984: Connection refused ==24165==
==24165== Process terminating with default action of signal 11 (SIGSEGV)
==24165== Access not within mapped region at address 0x0
==24165== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24165== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24165== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24165== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24165== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24165== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24165== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24165== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24165== by 0x8065F7E: main (nginx.c:382)
==24165== If you believe this happened as a result of a stack
==24165== overflow in your program's main thread (unlikely but
==24165== possible), you can try to increase the size of the
==24165== main thread stack using the --main-stacksize= flag.
==24165== The main thread stack size used in this run was 8388608.
==24165== 1,024 bytes in 1 blocks are definitely lost in loss record 3,077 of 3,191
==24165== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24165== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24165== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24165== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24165== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24165== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24165== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24165== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24165== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24165== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24165== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24165== by 0x40BB675: trace_state (lj_trace.c:690)
==24165== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24165== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24165== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24165== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24165== by 0x407FA29: lua_resume (lj_api.c:1296)
==24165== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24165== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24165== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24165== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24165== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24165== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24165== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24165== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24165== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24165== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24165== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24165== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24165== by 0x8065F7E: main (nginx.c:382)
==24165==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-split.t TEST 35: behavior with /^(\d)/m (capture) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 35: behavior with /^(\d)/m (capture) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ab
:1:cdefg
:2:hij
len: 5
'
stream/re-split.t TEST 35: behavior with /^(\d)/m (capture) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 35: behavior with /^(\d)/m (capture) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 35: behavior with /^(\d)/m (capture) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ab
:1:cdefg
:2:hij
len: 5
'
stream/re-split.t TEST 10: split matches + max limiter set to 1 - Can't connect to 127.0.0.1:1984: Connection refused ==24167== Invalid read of size 4
==24167== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24167== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24167== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24167== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24167== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24167== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24167== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24167== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24167== by 0x8065F7E: main (nginx.c:382)
==24167== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24167==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-split.t TEST 10: split matches + max limiter set to 1 - Can't connect to 127.0.0.1:1984: Connection refused ==24167==
==24167== Process terminating with default action of signal 11 (SIGSEGV)
==24167== Access not within mapped region at address 0x0
==24167== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24167== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24167== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24167== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24167== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24167== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24167== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24167== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24167== by 0x8065F7E: main (nginx.c:382)
==24167== If you believe this happened as a result of a stack
==24167== overflow in your program's main thread (unlikely but
==24167== possible), you can try to increase the size of the
==24167== main thread stack using the --main-stacksize= flag.
==24167== The main thread stack size used in this run was 8388608.
==24167== 1,024 bytes in 1 blocks are definitely lost in loss record 3,073 of 3,189
==24167== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24167== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24167== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24167== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24167== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24167== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24167== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24167== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24167== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24167== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24167== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24167== by 0x40BB675: trace_state (lj_trace.c:690)
==24167== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24167== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24167== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24167== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24167== by 0x407FA29: lua_resume (lj_api.c:1296)
==24167== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24167== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24167== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24167== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24167== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24167== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24167== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24167== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24167== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24167== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24167== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24167== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24167== by 0x8065F7E: main (nginx.c:382)
==24167==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-split.t TEST 10: split matches + max limiter set to 1 - status code ok got: ''
expected: '200'
stream/re-split.t TEST 10: split matches + max limiter set to 1 - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a,b,c,d,e
'
stream/re-split.t TEST 10: split matches + max limiter set to 1 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 10: split matches + max limiter set to 1 - status code ok got: ''
expected: '200'
stream/re-split.t TEST 10: split matches + max limiter set to 1 - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a,b,c,d,e
'
stream/re-split.t TEST 29: no match separator bis (github issue #104) - Can't connect to 127.0.0.1:1984: Connection refused ==24169== Invalid read of size 4
==24169== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24169== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24169== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24169== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24169== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24169== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24169== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24169== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24169== by 0x8065F7E: main (nginx.c:382)
==24169== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24169==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-split.t TEST 29: no match separator bis (github issue #104) - Can't connect to 127.0.0.1:1984: Connection refused ==24169==
==24169== Process terminating with default action of signal 11 (SIGSEGV)
==24169== Access not within mapped region at address 0x0
==24169== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24169== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24169== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24169== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24169== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24169== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24169== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24169== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24169== by 0x8065F7E: main (nginx.c:382)
==24169== If you believe this happened as a result of a stack
==24169== overflow in your program's main thread (unlikely but
==24169== possible), you can try to increase the size of the
==24169== main thread stack using the --main-stacksize= flag.
==24169== The main thread stack size used in this run was 8388608.
==24169== 1,024 bytes in 1 blocks are definitely lost in loss record 3,081 of 3,197
==24169== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24169== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24169== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24169== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24169== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24169== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24169== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24169== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24169== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24169== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24169== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24169== by 0x40BB675: trace_state (lj_trace.c:690)
==24169== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24169== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24169== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24169== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24169== by 0x407FA29: lua_resume (lj_api.c:1296)
==24169== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24169== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24169== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24169== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24169== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24169== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24169== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24169== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24169== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24169== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24169== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24169== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24169== by 0x8065F7E: main (nginx.c:382)
==24169==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-split.t TEST 29: no match separator bis (github issue \#104) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 29: no match separator bis (github issue \#104) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a::b::c::d
len: 7
'
stream/re-split.t TEST 29: no match separator bis (github issue \#104) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 29: no match separator bis (github issue \#104) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 29: no match separator bis (github issue \#104) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a::b::c::d
len: 7
'
stream/re-split.t TEST 33: behavior with /^/m & max - Can't connect to 127.0.0.1:1984: Connection refused ==24171== Invalid read of size 4
==24171== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24171== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24171== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24171== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24171== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24171== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24171== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24171== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24171== by 0x8065F7E: main (nginx.c:382)
==24171== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24171==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-split.t TEST 33: behavior with /^/m & max - Can't connect to 127.0.0.1:1984: Connection refused ==24171==
==24171== Process terminating with default action of signal 11 (SIGSEGV)
==24171== Access not within mapped region at address 0x0
==24171== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24171== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24171== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24171== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24171== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24171== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24171== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24171== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24171== by 0x8065F7E: main (nginx.c:382)
==24171== If you believe this happened as a result of a stack
==24171== overflow in your program's main thread (unlikely but
==24171== possible), you can try to increase the size of the
==24171== main thread stack using the --main-stacksize= flag.
==24171== The main thread stack size used in this run was 8388608.
==24171== 1,024 bytes in 1 blocks are definitely lost in loss record 3,082 of 3,198
==24171== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24171== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24171== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24171== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24171== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24171== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24171== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24171== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24171== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24171== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24171== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24171== by 0x40BB675: trace_state (lj_trace.c:690)
==24171== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24171== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24171== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24171== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24171== by 0x407FA29: lua_resume (lj_api.c:1296)
==24171== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24171== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24171== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24171== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24171== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24171== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24171== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24171== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24171== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24171== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24171== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24171== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24171== by 0x8065F7E: main (nginx.c:382)
==24171==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-split.t TEST 33: behavior with /^/m & max - status code ok got: ''
expected: '200'
stream/re-split.t TEST 33: behavior with /^/m & max - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ab
:cd
ef
len: 2
'
stream/re-split.t TEST 33: behavior with /^/m & max - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 33: behavior with /^/m & max - status code ok got: ''
expected: '200'
stream/re-split.t TEST 33: behavior with /^/m & max - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ab
:cd
ef
len: 2
'
stream/re-split.t TEST 36: split by unit separator 1/2 (GH issue lua-nginx-module #1217) - Can't connect to 127.0.0.1:1984: Connection refused ==24173== Invalid read of size 4
==24173== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24173== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24173== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24173== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24173== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24173== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24173== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24173== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24173== by 0x8065F7E: main (nginx.c:382)
==24173== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24173==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-split.t TEST 36: split by unit separator 1/2 (GH issue lua-nginx-module #1217) - Can't connect to 127.0.0.1:1984: Connection refused ==24173==
==24173== Process terminating with default action of signal 11 (SIGSEGV)
==24173== Access not within mapped region at address 0x0
==24173== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24173== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24173== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24173== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24173== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24173== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24173== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24173== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24173== by 0x8065F7E: main (nginx.c:382)
==24173== If you believe this happened as a result of a stack
==24173== overflow in your program's main thread (unlikely but
==24173== possible), you can try to increase the size of the
==24173== main thread stack using the --main-stacksize= flag.
==24173== The main thread stack size used in this run was 8388608.
==24173== 2,048 bytes in 1 blocks are definitely lost in loss record 3,024 of 3,079
==24173== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24173== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24173== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24173== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24173== by 0x408F5A6: lj_ir_nextins (lj_iropt.h:34)
==24173== by 0x408F5A6: lj_opt_cse (lj_opt_fold.c:2549)
==24173== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24173== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24173== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24173== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24173== by 0x40BB675: trace_state (lj_trace.c:690)
==24173== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24173== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24173== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24173== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24173== by 0x407FA29: lua_resume (lj_api.c:1296)
==24173== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24173== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24173== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24173== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24173== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24173== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24173== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24173== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24173== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24173== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24173== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24173== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24173== by 0x8065F7E: main (nginx.c:382)
==24173==
{
<insert_a_suppression_name_here>
Memcheck: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
}
stream/re-split.t TEST 36: split by unit separator 1/2 (GH issue lua-nginx-module \#1217) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 36: split by unit separator 1/2 (GH issue lua-nginx-module \#1217) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '15 1|T|||||||||||||15
15 1|T|T||||||||||||15
15 1|T|T|T|||||||||||15
'
stream/re-split.t TEST 36: split by unit separator 1/2 (GH issue lua-nginx-module \#1217) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 36: split by unit separator 1/2 (GH issue lua-nginx-module \#1217) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 36: split by unit separator 1/2 (GH issue lua-nginx-module \#1217) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '15 1|T|||||||||||||15
15 1|T|T||||||||||||15
15 1|T|T|T|||||||||||15
'
stream/re-split.t TEST 9: split matches + max limiter set to a negative value - Can't connect to 127.0.0.1:1984: Connection refused ==24175== Invalid read of size 4
==24175== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24175== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24175== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24175== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24175== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24175== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24175== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24175== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24175== by 0x8065F7E: main (nginx.c:382)
==24175== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24175==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-split.t TEST 9: split matches + max limiter set to a negative value - Can't connect to 127.0.0.1:1984: Connection refused ==24175==
==24175== Process terminating with default action of signal 11 (SIGSEGV)
==24175== Access not within mapped region at address 0x0
==24175== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24175== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24175== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24175== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24175== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24175== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24175== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24175== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24175== by 0x8065F7E: main (nginx.c:382)
==24175== If you believe this happened as a result of a stack
==24175== overflow in your program's main thread (unlikely but
==24175== possible), you can try to increase the size of the
==24175== main thread stack using the --main-stacksize= flag.
==24175== The main thread stack size used in this run was 8388608.
==24175== 1,024 bytes in 1 blocks are definitely lost in loss record 3,075 of 3,191
==24175== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24175== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24175== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24175== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24175== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24175== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24175== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24175== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24175== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24175== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24175== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24175== by 0x40BB675: trace_state (lj_trace.c:690)
==24175== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24175== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24175== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24175== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24175== by 0x407FA29: lua_resume (lj_api.c:1296)
==24175== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24175== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24175== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24175== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24175== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24175== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24175== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24175== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24175== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24175== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24175== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24175== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24175== by 0x8065F7E: main (nginx.c:382)
==24175==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-split.t TEST 9: split matches + max limiter set to a negative value - status code ok got: ''
expected: '200'
stream/re-split.t TEST 9: split matches + max limiter set to a negative value - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
b
c
d
e
'
stream/re-split.t TEST 9: split matches + max limiter set to a negative value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 9: split matches + max limiter set to a negative value - status code ok got: ''
expected: '200'
stream/re-split.t TEST 9: split matches + max limiter set to a negative value - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
b
c
d
e
'
stream/re-split.t TEST 1: split matches, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24177== Invalid read of size 4
==24177== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24177== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24177== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24177== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24177== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24177== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24177== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24177== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24177== by 0x8065F7E: main (nginx.c:382)
==24177== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24177==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-split.t TEST 1: split matches, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24177==
==24177== Process terminating with default action of signal 11 (SIGSEGV)
==24177== Access not within mapped region at address 0x0
==24177== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24177== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24177== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24177== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24177== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24177== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24177== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24177== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24177== by 0x8065F7E: main (nginx.c:382)
==24177== If you believe this happened as a result of a stack
==24177== overflow in your program's main thread (unlikely but
==24177== possible), you can try to increase the size of the
==24177== main thread stack using the --main-stacksize= flag.
==24177== The main thread stack size used in this run was 8388608.
==24177== 1,024 bytes in 1 blocks are definitely lost in loss record 3,077 of 3,193
==24177== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24177== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24177== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24177== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24177== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24177== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24177== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24177== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24177== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24177== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24177== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24177== by 0x40BB675: trace_state (lj_trace.c:690)
==24177== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24177== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24177== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24177== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24177== by 0x407FA29: lua_resume (lj_api.c:1296)
==24177== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24177== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24177== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24177== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24177== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24177== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24177== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24177== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24177== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24177== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24177== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24177== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24177== by 0x8065F7E: main (nginx.c:382)
==24177==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-split.t TEST 1: split matches, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
stream/re-split.t TEST 1: split matches, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
b
c
d
'
stream/re-split.t TEST 1: split matches, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 1: split matches, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
stream/re-split.t TEST 1: split matches, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
b
c
d
'
stream/re-split.t TEST 22: regex is "" - Can't connect to 127.0.0.1:1984: Connection refused ==24179== Invalid read of size 4
==24179== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24179== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24179== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24179== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24179== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24179== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24179== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24179== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24179== by 0x8065F7E: main (nginx.c:382)
==24179== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24179==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-split.t TEST 22: regex is "" - Can't connect to 127.0.0.1:1984: Connection refused ==24179==
==24179== Process terminating with default action of signal 11 (SIGSEGV)
==24179== Access not within mapped region at address 0x0
==24179== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24179== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24179== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24179== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24179== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24179== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24179== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24179== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24179== by 0x8065F7E: main (nginx.c:382)
==24179== If you believe this happened as a result of a stack
==24179== overflow in your program's main thread (unlikely but
==24179== possible), you can try to increase the size of the
==24179== main thread stack using the --main-stacksize= flag.
==24179== The main thread stack size used in this run was 8388608.
==24179== 1,024 bytes in 1 blocks are definitely lost in loss record 3,109 of 3,226
==24179== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24179== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24179== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24179== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24179== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24179== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24179== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24179== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24179== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24179== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24179== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24179== by 0x40BB675: trace_state (lj_trace.c:690)
==24179== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24179== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24179== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24179== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24179== by 0x407FA29: lua_resume (lj_api.c:1296)
==24179== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24179== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24179== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24179== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24179== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24179== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24179== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24179== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24179== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24179== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24179== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24179== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24179== by 0x8065F7E: main (nginx.c:382)
==24179==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-split.t TEST 22: regex is "" - status code ok got: ''
expected: '200'
stream/re-split.t TEST 22: regex is "" - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '1
2
3
4
5
len: 5
'
stream/re-split.t TEST 22: regex is "" - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 22: regex is "" - status code ok got: ''
expected: '200'
stream/re-split.t TEST 22: regex is "" - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '1
2
3
4
5
len: 5
'
stream/re-split.t TEST 7: split matches + submatch + max limiter - Can't connect to 127.0.0.1:1984: Connection refused ==24181== Invalid read of size 4
==24181== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24181== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24181== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24181== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24181== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24181== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24181== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24181== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24181== by 0x8065F7E: main (nginx.c:382)
==24181== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24181==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-split.t TEST 7: split matches + submatch + max limiter - Can't connect to 127.0.0.1:1984: Connection refused ==24181==
==24181== Process terminating with default action of signal 11 (SIGSEGV)
==24181== Access not within mapped region at address 0x0
==24181== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24181== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24181== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24181== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24181== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24181== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24181== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24181== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24181== by 0x8065F7E: main (nginx.c:382)
==24181== If you believe this happened as a result of a stack
==24181== overflow in your program's main thread (unlikely but
==24181== possible), you can try to increase the size of the
==24181== main thread stack using the --main-stacksize= flag.
==24181== The main thread stack size used in this run was 8388608.
==24181== 1,024 bytes in 1 blocks are definitely lost in loss record 3,064 of 3,176
==24181== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24181== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24181== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24181== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24181== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24181== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24181== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24181== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24181== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24181== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24181== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24181== by 0x40BB675: trace_state (lj_trace.c:690)
==24181== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24181== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24181== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24181== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24181== by 0x407FA29: lua_resume (lj_api.c:1296)
==24181== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24181== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24181== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24181== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24181== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24181== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24181== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24181== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24181== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24181== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24181== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24181== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24181== by 0x8065F7E: main (nginx.c:382)
==24181==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-split.t TEST 7: split matches + submatch + max limiter - status code ok got: ''
expected: '200'
stream/re-split.t TEST 7: split matches + submatch + max limiter - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'a
,
b
,
c,d,e
'
stream/re-split.t TEST 7: split matches + submatch + max limiter - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 7: split matches + submatch + max limiter - status code ok got: ''
expected: '200'
stream/re-split.t TEST 7: split matches + submatch + max limiter - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'a
,
b
,
c,d,e
'
stream/re-split.t TEST 26: regex is "" with pos & max - Can't connect to 127.0.0.1:1984: Connection refused ==24183== Invalid read of size 4
==24183== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24183== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24183== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24183== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24183== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24183== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24183== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24183== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24183== by 0x8065F7E: main (nginx.c:382)
==24183== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24183==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-split.t TEST 26: regex is "" with pos & max - Can't connect to 127.0.0.1:1984: Connection refused ==24183==
==24183== Process terminating with default action of signal 11 (SIGSEGV)
==24183== Access not within mapped region at address 0x0
==24183== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24183== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24183== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24183== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24183== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24183== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24183== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24183== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24183== by 0x8065F7E: main (nginx.c:382)
==24183== If you believe this happened as a result of a stack
==24183== overflow in your program's main thread (unlikely but
==24183== possible), you can try to increase the size of the
==24183== main thread stack using the --main-stacksize= flag.
==24183== The main thread stack size used in this run was 8388608.
==24183== 1,024 bytes in 1 blocks are definitely lost in loss record 3,096 of 3,212
==24183== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24183== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24183== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24183== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24183== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24183== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24183== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24183== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24183== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24183== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24183== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24183== by 0x40BB675: trace_state (lj_trace.c:690)
==24183== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24183== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24183== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24183== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24183== by 0x407FA29: lua_resume (lj_api.c:1296)
==24183== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24183== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24183== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24183== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24183== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24183== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24183== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24183== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24183== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24183== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24183== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24183== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24183== by 0x8065F7E: main (nginx.c:382)
==24183==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-split.t TEST 26: regex is "" with pos & max - status code ok got: ''
expected: '200'
stream/re-split.t TEST 26: regex is "" with pos & max - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '2
345
len: 2
'
stream/re-split.t TEST 26: regex is "" with pos & max - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 26: regex is "" with pos & max - status code ok got: ''
expected: '200'
stream/re-split.t TEST 26: regex is "" with pos & max - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '2
345
len: 2
'
stream/re-split.t TEST 37: split by unit separator 2/2 (with ctx.pos) - Can't connect to 127.0.0.1:1984: Connection refused ==24185== Invalid read of size 4
==24185== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24185== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24185== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24185== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24185== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24185== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24185== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24185== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24185== by 0x8065F7E: main (nginx.c:382)
==24185== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24185==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-split.t TEST 37: split by unit separator 2/2 (with ctx.pos) - Can't connect to 127.0.0.1:1984: Connection refused ==24185==
==24185== Process terminating with default action of signal 11 (SIGSEGV)
==24185== Access not within mapped region at address 0x0
==24185== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24185== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24185== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24185== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24185== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24185== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24185== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24185== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24185== by 0x8065F7E: main (nginx.c:382)
==24185== If you believe this happened as a result of a stack
==24185== overflow in your program's main thread (unlikely but
==24185== possible), you can try to increase the size of the
==24185== main thread stack using the --main-stacksize= flag.
==24185== The main thread stack size used in this run was 8388608.
==24185== 2,048 bytes in 1 blocks are definitely lost in loss record 3,030 of 3,085
==24185== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24185== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24185== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24185== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24185== by 0x408F5A6: lj_ir_nextins (lj_iropt.h:34)
==24185== by 0x408F5A6: lj_opt_cse (lj_opt_fold.c:2549)
==24185== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24185== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24185== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24185== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24185== by 0x40BB675: trace_state (lj_trace.c:690)
==24185== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24185== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24185== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24185== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24185== by 0x407FA29: lua_resume (lj_api.c:1296)
==24185== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24185== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24185== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24185== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24185== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24185== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24185== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24185== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24185== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24185== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24185== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24185== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24185== by 0x8065F7E: main (nginx.c:382)
==24185==
{
<insert_a_suppression_name_here>
Memcheck: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
}
stream/re-split.t TEST 37: split by unit separator 2/2 (with ctx.pos) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 37: split by unit separator 2/2 (with ctx.pos) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '12 |||||||||||15
13 ||||||||||||15
13 |T|||||||||||15
'
stream/re-split.t TEST 37: split by unit separator 2/2 (with ctx.pos) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 37: split by unit separator 2/2 (with ctx.pos) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 37: split by unit separator 2/2 (with ctx.pos) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '12 |||||||||||15
13 ||||||||||||15
13 |T|||||||||||15
'
stream/re-split.t TEST 19: split no matches - Can't connect to 127.0.0.1:1984: Connection refused ==24187== Invalid read of size 4
==24187== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24187== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24187== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24187== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24187== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24187== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24187== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24187== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24187== by 0x8065F7E: main (nginx.c:382)
==24187== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24187==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-split.t TEST 19: split no matches - Can't connect to 127.0.0.1:1984: Connection refused ==24187==
==24187== Process terminating with default action of signal 11 (SIGSEGV)
==24187== Access not within mapped region at address 0x0
==24187== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24187== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24187== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24187== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24187== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24187== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24187== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24187== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24187== by 0x8065F7E: main (nginx.c:382)
==24187== If you believe this happened as a result of a stack
==24187== overflow in your program's main thread (unlikely but
==24187== possible), you can try to increase the size of the
==24187== main thread stack using the --main-stacksize= flag.
==24187== The main thread stack size used in this run was 8388608.
==24187== 1,024 bytes in 1 blocks are definitely lost in loss record 3,072 of 3,188
==24187== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24187== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24187== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24187== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24187== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24187== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24187== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24187== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24187== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24187== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24187== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24187== by 0x40BB675: trace_state (lj_trace.c:690)
==24187== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24187== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24187== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24187== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24187== by 0x407FA29: lua_resume (lj_api.c:1296)
==24187== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24187== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24187== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24187== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24187== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24187== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24187== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24187== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24187== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24187== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24187== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24187== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24187== by 0x8065F7E: main (nginx.c:382)
==24187==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-split.t TEST 19: split no matches - status code ok got: ''
expected: '200'
stream/re-split.t TEST 19: split no matches - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'abcd
'
stream/re-split.t TEST 19: split no matches - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 19: split no matches - status code ok got: ''
expected: '200'
stream/re-split.t TEST 19: split no matches - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'abcd
'
stream/re-split.t TEST 32: behavior with /^()/m (capture) - Can't connect to 127.0.0.1:1984: Connection refused ==24189== Invalid read of size 4
==24189== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24189== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24189== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24189== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24189== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24189== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24189== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24189== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24189== by 0x8065F7E: main (nginx.c:382)
==24189== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24189==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-split.t TEST 32: behavior with /^()/m (capture) - Can't connect to 127.0.0.1:1984: Connection refused ==24189==
==24189== Process terminating with default action of signal 11 (SIGSEGV)
==24189== Access not within mapped region at address 0x0
==24189== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24189== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24189== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24189== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24189== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24189== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24189== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24189== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24189== by 0x8065F7E: main (nginx.c:382)
==24189== If you believe this happened as a result of a stack
==24189== overflow in your program's main thread (unlikely but
==24189== possible), you can try to increase the size of the
==24189== main thread stack using the --main-stacksize= flag.
==24189== The main thread stack size used in this run was 8388608.
==24189== 1,024 bytes in 1 blocks are definitely lost in loss record 3,072 of 3,185
==24189== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24189== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24189== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24189== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24189== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24189== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24189== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24189== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24189== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24189== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24189== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24189== by 0x40BB675: trace_state (lj_trace.c:690)
==24189== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24189== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24189== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24189== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24189== by 0x407FA29: lua_resume (lj_api.c:1296)
==24189== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24189== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24189== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24189== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24189== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24189== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24189== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24189== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24189== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24189== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24189== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24189== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24189== by 0x8065F7E: main (nginx.c:382)
==24189==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-split.t TEST 32: behavior with /^()/m (capture) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 32: behavior with /^()/m (capture) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ab
::cd
::ef
len: 5
'
stream/re-split.t TEST 32: behavior with /^()/m (capture) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 32: behavior with /^()/m (capture) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 32: behavior with /^()/m (capture) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ab
::cd
::ef
len: 5
'
stream/re-split.t TEST 38: remaining characters are matched by regex (without max) - Can't connect to 127.0.0.1:1984: Connection refused ==24191== Invalid read of size 4
==24191== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24191== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24191== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24191== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24191== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24191== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24191== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24191== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24191== by 0x8065F7E: main (nginx.c:382)
==24191== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24191==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-split.t TEST 38: remaining characters are matched by regex (without max) - Can't connect to 127.0.0.1:1984: Connection refused ==24191==
==24191== Process terminating with default action of signal 11 (SIGSEGV)
==24191== Access not within mapped region at address 0x0
==24191== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24191== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24191== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24191== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24191== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24191== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24191== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24191== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24191== by 0x8065F7E: main (nginx.c:382)
==24191== If you believe this happened as a result of a stack
==24191== overflow in your program's main thread (unlikely but
==24191== possible), you can try to increase the size of the
==24191== main thread stack using the --main-stacksize= flag.
==24191== The main thread stack size used in this run was 8388608.
==24191== 1,024 bytes in 1 blocks are definitely lost in loss record 3,081 of 3,197
==24191== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24191== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24191== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24191== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24191== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24191== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24191== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24191== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24191== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24191== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24191== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24191== by 0x40BB675: trace_state (lj_trace.c:690)
==24191== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24191== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24191== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24191== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24191== by 0x407FA29: lua_resume (lj_api.c:1296)
==24191== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24191== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24191== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24191== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24191== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24191== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24191== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24191== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24191== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24191== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24191== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24191== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24191== by 0x8065F7E: main (nginx.c:382)
==24191==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:lj_opt_fold
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/re-split.t TEST 38: remaining characters are matched by regex (without max) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 38: remaining characters are matched by regex (without max) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '3 a|b|cd
'
stream/re-split.t TEST 38: remaining characters are matched by regex (without max) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-split.t TEST 38: remaining characters are matched by regex (without max) - status code ok got: ''
expected: '200'
stream/re-split.t TEST 38: remaining characters are matched by regex (without max) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '3 a|b|cd
'
stream/re-sub.t TEST 10: func replace return is not a string type (ngx.re.gsub) - Can't connect to 127.0.0.1:1984: Connection refused ==24197== Invalid read of size 4
==24197== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24197== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24197== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24197== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24197== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24197== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24197== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24197== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24197== by 0x8065F7E: main (nginx.c:382)
==24197== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24197==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-sub.t TEST 10: func replace return is not a string type (ngx.re.gsub) - Can't connect to 127.0.0.1:1984: Connection refused ==24197==
==24197== Process terminating with default action of signal 11 (SIGSEGV)
==24197== Access not within mapped region at address 0x0
==24197== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24197== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24197== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24197== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24197== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24197== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24197== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24197== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24197== by 0x8065F7E: main (nginx.c:382)
==24197== If you believe this happened as a result of a stack
==24197== overflow in your program's main thread (unlikely but
==24197== possible), you can try to increase the size of the
==24197== main thread stack using the --main-stacksize= flag.
==24197== The main thread stack size used in this run was 8388608.

stream/re-sub.t TEST 10: func replace return is not a string type (ngx.re.gsub) - status code ok got: ''
expected: '200'
stream/re-sub.t TEST 10: func replace return is not a string type (ngx.re.gsub) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, 55
'
stream/re-sub.t TEST 10: func replace return is not a string type (ngx.re.gsub) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-sub.t TEST 10: func replace return is not a string type (ngx.re.gsub) - status code ok got: ''
expected: '200'
stream/re-sub.t TEST 10: func replace return is not a string type (ngx.re.gsub) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, 55
'
stream/re-sub.t TEST 8: string replace subj is not a string type - Can't connect to 127.0.0.1:1984: Connection refused ==24199== Invalid read of size 4
==24199== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24199== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24199== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24199== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24199== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24199== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24199== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24199== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24199== by 0x8065F7E: main (nginx.c:382)
==24199== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24199==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-sub.t TEST 8: string replace subj is not a string type - Can't connect to 127.0.0.1:1984: Connection refused ==24199==
==24199== Process terminating with default action of signal 11 (SIGSEGV)
==24199== Access not within mapped region at address 0x0
==24199== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24199== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24199== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24199== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24199== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24199== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24199== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24199== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24199== by 0x8065F7E: main (nginx.c:382)
==24199== If you believe this happened as a result of a stack
==24199== overflow in your program's main thread (unlikely but
==24199== possible), you can try to increase the size of the
==24199== main thread stack using the --main-stacksize= flag.
==24199== The main thread stack size used in this run was 8388608.

stream/re-sub.t TEST 8: string replace subj is not a string type - status code ok got: ''
expected: '200'
stream/re-sub.t TEST 8: string replace subj is not a string type - response_body - response is expected (repeated req 0, req 0) got: ''
expected: '534
'
stream/re-sub.t TEST 8: string replace subj is not a string type - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-sub.t TEST 8: string replace subj is not a string type - status code ok got: ''
expected: '200'
stream/re-sub.t TEST 8: string replace subj is not a string type - response_body - response is expected (repeated req 1, req 0) got: ''
expected: '534
'
stream/re-sub.t TEST 3: func + submatches - Can't connect to 127.0.0.1:1984: Connection refused ==24201== Invalid read of size 4
==24201== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24201== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24201== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24201== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24201== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24201== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24201== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24201== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24201== by 0x8065F7E: main (nginx.c:382)
==24201== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24201==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-sub.t TEST 3: func + submatches - Can't connect to 127.0.0.1:1984: Connection refused ==24201==
==24201== Process terminating with default action of signal 11 (SIGSEGV)
==24201== Access not within mapped region at address 0x0
==24201== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24201== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24201== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24201== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24201== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24201== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24201== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24201== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24201== by 0x8065F7E: main (nginx.c:382)
==24201== If you believe this happened as a result of a stack
==24201== overflow in your program's main thread (unlikely but
==24201== possible), you can try to increase the size of the
==24201== main thread stack using the --main-stacksize= flag.
==24201== The main thread stack size used in this run was 8388608.
==24201== 4,096 bytes in 1 blocks are definitely lost in loss record 3,113 of 3,141
==24201== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24201== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24201== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24201== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24201== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24201== by 0x408AA0C: ir_nextk (lj_ir.c:175)
==24201== by 0x408AA0C: lj_ir_kptr_ (lj_ir.c:326)
==24201== by 0x4099F4D: rec_mm_prep (lj_record.c:961)
==24201== by 0x409CF20: rec_mm_callcomp (lj_record.c:1098)
==24201== by 0x40A0BF3: lj_record_ins (lj_record.c:2173)
==24201== by 0x40BB16A: trace_state (lj_trace.c:680)
==24201== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24201== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24201== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24201== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24201== by 0x407FA29: lua_resume (lj_api.c:1296)
==24201== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24201== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24201== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24201== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24201== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24201== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24201== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24201== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24201== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24201== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24201== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24201== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24201== by 0x8065F7E: main (nginx.c:382)
==24201==
{
<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:rec_mm_callcomp
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
}
stream/re-sub.t TEST 3: func + submatches - status code ok got: ''
expected: '200'
stream/re-sub.t TEST 3: func + submatches - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-s: a[bc(c)]bd
-n: 1
'
stream/re-sub.t TEST 3: func + submatches - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-sub.t TEST 3: func + submatches - status code ok got: ''
expected: '200'
stream/re-sub.t TEST 3: func + submatches - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-s: a[bc(c)]bd
-n: 1
'
stream/re-sub.t TEST 2: sub, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24203== Invalid read of size 4
==24203== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24203== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24203== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24203== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24203== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24203== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24203== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24203== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24203== by 0x8065F7E: main (nginx.c:382)
==24203== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24203==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-sub.t TEST 2: sub, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24203==
==24203== Process terminating with default action of signal 11 (SIGSEGV)
==24203== Access not within mapped region at address 0x0
==24203== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24203== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24203== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24203== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24203== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24203== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24203== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24203== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24203== by 0x8065F7E: main (nginx.c:382)
==24203== If you believe this happened as a result of a stack
==24203== overflow in your program's main thread (unlikely but
==24203== possible), you can try to increase the size of the
==24203== main thread stack using the --main-stacksize= flag.
==24203== The main thread stack size used in this run was 8388608.
==24203== 4,096 bytes in 1 blocks are definitely lost in loss record 3,140 of 3,169
==24203== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24203== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24203== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24203== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24203== by 0x408F5A6: lj_ir_nextins (lj_iropt.h:34)
==24203== by 0x408F5A6: lj_opt_cse (lj_opt_fold.c:2549)
==24203== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24203== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24203== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24203== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24203== by 0x40BB675: trace_state (lj_trace.c:690)
==24203== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24203== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24203== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24203== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24203== by 0x407FA29: lua_resume (lj_api.c:1296)
==24203== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24203== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24203== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24203== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24203== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24203== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24203== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24203== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24203== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24203== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24203== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24203== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24203== by 0x8065F7E: main (nginx.c:382)
==24203==
{
<insert_a_suppression_name_here>
Memcheck: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
}
stream/re-sub.t TEST 2: sub, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
stream/re-sub.t TEST 2: sub, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-s: aBcbd
-n: 1
'
stream/re-sub.t TEST 2: sub, no submatch, no jit compile, no regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-sub.t TEST 2: sub, no submatch, no jit compile, no regex cache - status code ok got: ''
expected: '200'
stream/re-sub.t TEST 2: sub, no submatch, no jit compile, no regex cache - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-s: aBcbd
-n: 1
'
stream/re-sub.t TEST 9: func replace return is not a string type (ngx.re.sub) - Can't connect to 127.0.0.1:1984: Connection refused ==24205== Invalid read of size 4
==24205== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24205== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24205== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24205== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24205== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24205== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24205== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24205== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24205== by 0x8065F7E: main (nginx.c:382)
==24205== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24205==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-sub.t TEST 9: func replace return is not a string type (ngx.re.sub) - Can't connect to 127.0.0.1:1984: Connection refused ==24205==
==24205== Process terminating with default action of signal 11 (SIGSEGV)
==24205== Access not within mapped region at address 0x0
==24205== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24205== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24205== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24205== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24205== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24205== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24205== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24205== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24205== by 0x8065F7E: main (nginx.c:382)
==24205== If you believe this happened as a result of a stack
==24205== overflow in your program's main thread (unlikely but
==24205== possible), you can try to increase the size of the
==24205== main thread stack using the --main-stacksize= flag.
==24205== The main thread stack size used in this run was 8388608.

stream/re-sub.t TEST 9: func replace return is not a string type (ngx.re.sub) - status code ok got: ''
expected: '200'
stream/re-sub.t TEST 9: func replace return is not a string type (ngx.re.sub) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'hello, 534
'
stream/re-sub.t TEST 9: func replace return is not a string type (ngx.re.sub) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-sub.t TEST 9: func replace return is not a string type (ngx.re.sub) - status code ok got: ''
expected: '200'
stream/re-sub.t TEST 9: func replace return is not a string type (ngx.re.sub) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'hello, 534
'
stream/re-sub.t TEST 7: ngx.re.gsub: recursive calling (github openresty/lua-nginx-module#445) - Can't connect to 127.0.0.1:1984: Connection refused ==24207== Invalid read of size 4
==24207== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24207== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24207== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24207== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24207== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24207== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24207== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24207== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24207== by 0x8065F7E: main (nginx.c:382)
==24207== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24207==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-sub.t TEST 7: ngx.re.gsub: recursive calling (github openresty/lua-nginx-module#445) - Can't connect to 127.0.0.1:1984: Connection refused ==24207==
==24207== Process terminating with default action of signal 11 (SIGSEGV)
==24207== Access not within mapped region at address 0x0
==24207== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24207== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24207== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24207== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24207== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24207== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24207== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24207== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24207== by 0x8065F7E: main (nginx.c:382)
==24207== If you believe this happened as a result of a stack
==24207== overflow in your program's main thread (unlikely but
==24207== possible), you can try to increase the size of the
==24207== main thread stack using the --main-stacksize= flag.
==24207== The main thread stack size used in this run was 8388608.

stream/re-sub.t TEST 7: ngx.re.gsub: recursive calling (github openresty/lua-nginx-module\#445) - status code ok got: ''
expected: '200'
stream/re-sub.t TEST 7: ngx.re.gsub: recursive calling (github openresty/lua-nginx-module\#445) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
- OUTER {FIRST}
- OUTER REPLACED
'
stream/re-sub.t TEST 7: ngx.re.gsub: recursive calling (github openresty/lua-nginx-module\#445) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-sub.t TEST 7: ngx.re.gsub: recursive calling (github openresty/lua-nginx-module\#445) - status code ok got: ''
expected: '200'
stream/re-sub.t TEST 7: ngx.re.gsub: recursive calling (github openresty/lua-nginx-module\#445) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
- OUTER {FIRST}
- OUTER REPLACED
'
stream/re-sub.t ERROR: client socket timed out - TEST 5: replace template + submatches (exceeding buffers) '
stream/re-sub.t TEST 5: replace template + submatches (exceeding buffers) - status code ok got: ''
expected: '200'
stream/re-sub.t TEST 5: replace template + submatches (exceeding buffers) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-s: [bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(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]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd
-n: 2048
'
stream/re-sub.t ERROR: client socket timed out - TEST 5: replace template + submatches (exceeding buffers) '
stream/re-sub.t TEST 5: replace template + submatches (exceeding buffers) - status code ok got: ''
expected: '200'
stream/re-sub.t TEST 5: replace template + submatches (exceeding buffers) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-s: [bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[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(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd
-n: 2048
'
stream/re-sub.t TEST 1: sub, no submatch, no jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24210== Invalid read of size 4
==24210== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24210== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24210== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24210== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24210== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24210== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24210== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24210== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24210== by 0x8065F7E: main (nginx.c:382)
==24210== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24210==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-sub.t TEST 1: sub, no submatch, no jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused ==24210==
==24210== Process terminating with default action of signal 11 (SIGSEGV)
==24210== Access not within mapped region at address 0x0
==24210== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24210== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24210== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24210== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24210== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24210== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24210== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24210== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24210== by 0x8065F7E: main (nginx.c:382)
==24210== If you believe this happened as a result of a stack
==24210== overflow in your program's main thread (unlikely but
==24210== possible), you can try to increase the size of the
==24210== main thread stack using the --main-stacksize= flag.
==24210== The main thread stack size used in this run was 8388608.
==24210== 4,096 bytes in 1 blocks are definitely lost in loss record 3,140 of 3,168
==24210== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24210== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24210== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24210== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24210== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24210== by 0x408A511: ir_nextk (lj_ir.c:175)
==24210== by 0x408A511: lj_ir_kint (lj_ir.c:206)
==24210== by 0x40A3A4C: argv2cdata (lj_crecord.c:55)
==24210== by 0x40A5179: argv2ctype (lj_crecord.c:91)
==24210== by 0x40A8AE9: recff_ffi_new (lj_crecord.c:1608)
==24210== by 0x40AE0BC: lj_ffrecord_func (lj_ffrecord.c:1254)
==24210== by 0x409F4CA: lj_record_ins (lj_record.c:2479)
==24210== by 0x40BB16A: trace_state (lj_trace.c:680)
==24210== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24210== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24210== by 0x407596F: lj_dispatch_call (lj_dispatch.c:488)
==24210== by 0x406904F: lj_vm_hotcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24210== by 0x407FA29: lua_resume (lj_api.c:1296)
==24210== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24210== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24210== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24210== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24210== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24210== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24210== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24210== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24210== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24210== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24210== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24210== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24210== by 0x8065F7E: main (nginx.c:382)
==24210==
{
<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:argv2cdata
fun:argv2ctype
fun:recff_ffi_new
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
}
stream/re-sub.t TEST 1: sub, no submatch, no jit compile, regex cache - status code ok got: ''
expected: '200'
stream/re-sub.t TEST 1: sub, no submatch, no jit compile, regex cache - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-s: aBcbd
-n: 1
'
stream/re-sub.t TEST 1: sub, no submatch, no jit compile, regex cache - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-sub.t TEST 1: sub, no submatch, no jit compile, regex cache - status code ok got: ''
expected: '200'
stream/re-sub.t TEST 1: sub, no submatch, no jit compile, regex cache - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-s: aBcbd
-n: 1
'
stream/re-sub.t TEST 6: ngx.re.gsub: use of resty.core's API in the user callback - Can't connect to 127.0.0.1:1984: Connection refused ==24212== Invalid read of size 4
==24212== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24212== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24212== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24212== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24212== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24212== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24212== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24212== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24212== by 0x8065F7E: main (nginx.c:382)
==24212== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24212==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-sub.t TEST 6: ngx.re.gsub: use of resty.core's API in the user callback - Can't connect to 127.0.0.1:1984: Connection refused ==24212==
==24212== Process terminating with default action of signal 11 (SIGSEGV)
==24212== Access not within mapped region at address 0x0
==24212== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24212== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24212== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24212== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24212== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24212== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24212== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24212== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24212== by 0x8065F7E: main (nginx.c:382)
==24212== If you believe this happened as a result of a stack
==24212== overflow in your program's main thread (unlikely but
==24212== possible), you can try to increase the size of the
==24212== main thread stack using the --main-stacksize= flag.
==24212== The main thread stack size used in this run was 8388608.

stream/re-sub.t TEST 6: ngx.re.gsub: use of resty.core's API in the user callback - status code ok got: ''
expected: '200'
stream/re-sub.t TEST 6: ngx.re.gsub: use of resty.core's API in the user callback - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
- INNER_REPLACED
- INNER_REPLACED
'
stream/re-sub.t TEST 6: ngx.re.gsub: use of resty.core's API in the user callback - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-sub.t TEST 6: ngx.re.gsub: use of resty.core's API in the user callback - status code ok got: ''
expected: '200'
stream/re-sub.t TEST 6: ngx.re.gsub: use of resty.core's API in the user callback - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
- INNER_REPLACED
- INNER_REPLACED
'
stream/re-sub.t TEST 4: replace template + submatches - Can't connect to 127.0.0.1:1984: Connection refused ==24214== Invalid read of size 4
==24214== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24214== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24214== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24214== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24214== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24214== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24214== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24214== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24214== by 0x8065F7E: main (nginx.c:382)
==24214== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24214==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/re-sub.t TEST 4: replace template + submatches - Can't connect to 127.0.0.1:1984: Connection refused ==24214==
==24214== Process terminating with default action of signal 11 (SIGSEGV)
==24214== Access not within mapped region at address 0x0
==24214== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24214== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24214== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24214== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24214== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24214== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24214== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24214== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24214== by 0x8065F7E: main (nginx.c:382)
==24214== If you believe this happened as a result of a stack
==24214== overflow in your program's main thread (unlikely but
==24214== possible), you can try to increase the size of the
==24214== main thread stack using the --main-stacksize= flag.
==24214== The main thread stack size used in this run was 8388608.
==24214== 4,096 bytes in 1 blocks are definitely lost in loss record 3,146 of 3,174
==24214== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24214== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24214== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24214== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24214== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24214== by 0x408A8C6: ir_nextk (lj_ir.c:175)
==24214== by 0x408A8C6: lj_ir_kgc (lj_ir.c:286)
==24214== by 0x409AAFA: lj_record_constify (lj_record.c:251)
==24214== by 0x409AE30: rec_upvalue (lj_record.c:1620)
==24214== by 0x40A054C: lj_record_ins (lj_record.c:2314)
==24214== by 0x40BB16A: trace_state (lj_trace.c:680)
==24214== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24214== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24214== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24214== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24214== by 0x407FA29: lua_resume (lj_api.c:1296)
==24214== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24214== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24214== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24214== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24214== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24214== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24214== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24214== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24214== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24214== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24214== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24214== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24214== by 0x8065F7E: main (nginx.c:382)
==24214==
{
<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
}
stream/re-sub.t TEST 4: replace template + submatches - status code ok got: ''
expected: '200'
stream/re-sub.t TEST 4: replace template + submatches - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-s: a[bc(c)]bd
-n: 1
'
stream/re-sub.t TEST 4: replace template + submatches - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/re-sub.t TEST 4: replace template + submatches - status code ok got: ''
expected: '200'
stream/re-sub.t TEST 4: replace template + submatches - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-s: a[bc(c)]bd
-n: 1
'
stream/request.t TEST 1: ngx.req.start_time() - Can't connect to 127.0.0.1:1984: Connection refused ==24220== Invalid read of size 4
==24220== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24220== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24220== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24220== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24220== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24220== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24220== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24220== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24220== by 0x8065F7E: main (nginx.c:382)
==24220== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24220==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/request.t TEST 1: ngx.req.start_time() - Can't connect to 127.0.0.1:1984: Connection refused ==24220==
==24220== Process terminating with default action of signal 11 (SIGSEGV)
==24220== Access not within mapped region at address 0x0
==24220== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24220== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24220== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24220== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24220== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24220== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24220== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24220== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24220== by 0x8065F7E: main (nginx.c:382)
==24220== If you believe this happened as a result of a stack
==24220== overflow in your program's main thread (unlikely but
==24220== possible), you can try to increase the size of the
==24220== main thread stack using the --main-stacksize= flag.
==24220== The main thread stack size used in this run was 8388608.
==24220== 1,024 bytes in 1 blocks are definitely lost in loss record 3,019 of 3,128
==24220== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24220== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24220== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24220== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24220== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24220== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24220== by 0x40945CF: loop_emit_phi (lj_opt_loop.c:197)
==24220== by 0x40945CF: loop_unroll (lj_opt_loop.c:379)
==24220== by 0x40945CF: cploop_opt (lj_opt_loop.c:409)
==24220== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24220== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24220== by 0x40BB675: trace_state (lj_trace.c:690)
==24220== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24220== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24220== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24220== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24220== by 0x407FA29: lua_resume (lj_api.c:1296)
==24220== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24220== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24220== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24220== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24220== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24220== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24220== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24220== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24220== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24220== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24220== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24220== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24220== by 0x8065F7E: main (nginx.c:382)
==24220==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:loop_emit_phi
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/request.t TEST 1: ngx.req.start_time() - status code ok got: ''
expected: '200'
stream/request.t TEST 1: ngx.req.start_time() - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-true
->= 0.099: true
-< 0.11: true
'
stream/request.t TEST 1: ngx.req.start_time() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/request.t TEST 1: ngx.req.start_time() - status code ok got: ''
expected: '200'
stream/request.t TEST 1: ngx.req.start_time() - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-true
->= 0.099: true
-< 0.11: true
'
stream/semaphore.t TEST 23: test semaphore gc - Can't connect to 127.0.0.1:1984: Connection refused ==24226== Invalid read of size 4
==24226== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24226== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24226== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24226== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24226== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24226== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24226== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24226== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24226== by 0x8065F7E: main (nginx.c:382)
==24226== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24226==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/semaphore.t TEST 23: test semaphore gc - Can't connect to 127.0.0.1:1984: Connection refused ==24226==
==24226== Process terminating with default action of signal 11 (SIGSEGV)
==24226== Access not within mapped region at address 0x0
==24226== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24226== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24226== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24226== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24226== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24226== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24226== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24226== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24226== by 0x8065F7E: main (nginx.c:382)
==24226== If you believe this happened as a result of a stack
==24226== overflow in your program's main thread (unlikely but
==24226== possible), you can try to increase the size of the
==24226== main thread stack using the --main-stacksize= flag.
==24226== The main thread stack size used in this run was 8388608.

stream/semaphore.t TEST 23: test semaphore gc - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 23: test semaphore gc - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'success
'
stream/semaphore.t TEST 23: test semaphore gc - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/semaphore.t TEST 23: test semaphore gc - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 23: test semaphore gc - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'success
'
stream/semaphore.t TEST 23: test semaphore gc - pattern "in lua gc, semaphore" should match a line in error.log (req 1)
stream/semaphore.t TEST 22: semaphore wait time is zero - Can't connect to 127.0.0.1:1984: Connection refused ==24228== Invalid read of size 4
==24228== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24228== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24228== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24228== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24228== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24228== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24228== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24228== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24228== by 0x8065F7E: main (nginx.c:382)
==24228== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24228==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/semaphore.t TEST 22: semaphore wait time is zero - Can't connect to 127.0.0.1:1984: Connection refused ==24228==
==24228== Process terminating with default action of signal 11 (SIGSEGV)
==24228== Access not within mapped region at address 0x0
==24228== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24228== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24228== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24228== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24228== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24228== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24228== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24228== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24228== by 0x8065F7E: main (nginx.c:382)
==24228== If you believe this happened as a result of a stack
==24228== overflow in your program's main thread (unlikely but
==24228== possible), you can try to increase the size of the
==24228== main thread stack using the --main-stacksize= flag.
==24228== The main thread stack size used in this run was 8388608.

stream/semaphore.t TEST 22: semaphore wait time is zero - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 22: semaphore wait time is zero - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'timeout
'
stream/semaphore.t TEST 22: semaphore wait time is zero - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/semaphore.t TEST 22: semaphore wait time is zero - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 22: semaphore wait time is zero - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'timeout
'
stream/semaphore.t TEST 15: two thread wait for each other - Can't connect to 127.0.0.1:1984: Connection refused ==24230== Invalid read of size 4
==24230== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24230== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24230== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24230== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24230== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24230== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24230== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24230== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24230== by 0x8065F7E: main (nginx.c:382)
==24230== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24230==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/semaphore.t TEST 15: two thread wait for each other - Can't connect to 127.0.0.1:1984: Connection refused ==24230==
==24230== Process terminating with default action of signal 11 (SIGSEGV)
==24230== Access not within mapped region at address 0x0
==24230== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24230== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24230== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24230== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24230== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24230== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24230== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24230== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24230== by 0x8065F7E: main (nginx.c:382)
==24230== If you believe this happened as a result of a stack
==24230== overflow in your program's main thread (unlikely but
==24230== possible), you can try to increase the size of the
==24230== main thread stack using the --main-stacksize= flag.
==24230== The main thread stack size used in this run was 8388608.

stream/semaphore.t TEST 15: two thread wait for each other - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 15: two thread wait for each other - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-count in B: 0
-count in A: 0
'
stream/semaphore.t TEST 15: two thread wait for each other - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/semaphore.t TEST 15: two thread wait for each other - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 15: two thread wait for each other - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-count in B: 0
-count in A: 0
'
stream/semaphore.t TEST 18: kill a thread that is waiting on another thread that is waiting on semaphore - Can't connect to 127.0.0.1:1984: Connection refused ==24232== Invalid read of size 4
==24232== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24232== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24232== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24232== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24232== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24232== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24232== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24232== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24232== by 0x8065F7E: main (nginx.c:382)
==24232== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24232==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/semaphore.t TEST 18: kill a thread that is waiting on another thread that is waiting on semaphore - Can't connect to 127.0.0.1:1984: Connection refused ==24232==
==24232== Process terminating with default action of signal 11 (SIGSEGV)
==24232== Access not within mapped region at address 0x0
==24232== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24232== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24232== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24232== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24232== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24232== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24232== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24232== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24232== by 0x8065F7E: main (nginx.c:382)
==24232== If you believe this happened as a result of a stack
==24232== overflow in your program's main thread (unlikely but
==24232== possible), you can try to increase the size of the
==24232== main thread stack using the --main-stacksize= flag.
==24232== The main thread stack size used in this run was 8388608.

stream/semaphore.t TEST 18: kill a thread that is waiting on another thread that is waiting on semaphore - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 18: kill a thread that is waiting on another thread that is waiting on semaphore - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-sem waiting start
-thread waiting start
-thread kill success
-sem wait err: timeout
-sem waiting done
'
stream/semaphore.t TEST 18: kill a thread that is waiting on another thread that is waiting on semaphore - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/semaphore.t TEST 18: kill a thread that is waiting on another thread that is waiting on semaphore - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 18: kill a thread that is waiting on another thread that is waiting on semaphore - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-sem waiting start
-thread waiting start
-thread kill success
-sem wait err: timeout
-sem waiting done
'
stream/semaphore.t TEST 10: semaphore in log_by_lua (wait not allowed) - Can't connect to 127.0.0.1:1984: Connection refused ==24234== Invalid read of size 4
==24234== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24234== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24234== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24234== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24234== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24234== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24234== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24234== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24234== by 0x8065F7E: main (nginx.c:382)
==24234== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24234==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/semaphore.t TEST 10: semaphore in log_by_lua (wait not allowed) - Can't connect to 127.0.0.1:1984: Connection refused ==24234==
==24234== Process terminating with default action of signal 11 (SIGSEGV)
==24234== Access not within mapped region at address 0x0
==24234== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24234== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24234== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24234== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24234== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24234== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24234== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24234== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24234== by 0x8065F7E: main (nginx.c:382)
==24234== If you believe this happened as a result of a stack
==24234== overflow in your program's main thread (unlikely but
==24234== possible), you can try to increase the size of the
==24234== main thread stack using the --main-stacksize= flag.
==24234== The main thread stack size used in this run was 8388608.

stream/semaphore.t TEST 10: semaphore in log_by_lua (wait not allowed) - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 10: semaphore in log_by_lua (wait not allowed) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok'
stream/semaphore.t TEST 10: semaphore in log_by_lua (wait not allowed) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/semaphore.t TEST 10: semaphore in log_by_lua (wait not allowed) - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 10: semaphore in log_by_lua (wait not allowed) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok'
stream/semaphore.t TEST 10: semaphore in log_by_lua (wait not allowed) - grep_error_log_out (req 1) @@ -1,2 +0,0 @@
-sem: 1 while returning text,
-sem: API disabled in the context of log_by_lua* while returning text,
'
stream/semaphore.t TEST 17: kill a light thread that is waiting on a semaphore (after post) - Can't connect to 127.0.0.1:1984: Connection refused ==24236== Invalid read of size 4
==24236== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24236== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24236== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24236== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24236== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24236== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24236== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24236== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24236== by 0x8065F7E: main (nginx.c:382)
==24236== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24236==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/semaphore.t TEST 17: kill a light thread that is waiting on a semaphore (after post) - Can't connect to 127.0.0.1:1984: Connection refused ==24236==
==24236== Process terminating with default action of signal 11 (SIGSEGV)
==24236== Access not within mapped region at address 0x0
==24236== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24236== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24236== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24236== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24236== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24236== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24236== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24236== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24236== by 0x8065F7E: main (nginx.c:382)
==24236== If you believe this happened as a result of a stack
==24236== overflow in your program's main thread (unlikely but
==24236== possible), you can try to increase the size of the
==24236== main thread stack using the --main-stacksize= flag.
==24236== The main thread stack size used in this run was 8388608.

stream/semaphore.t TEST 17: kill a light thread that is waiting on a semaphore (after post) - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 17: kill a light thread that is waiting on a semaphore (after post) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-ok
-count: 1
'
stream/semaphore.t TEST 17: kill a light thread that is waiting on a semaphore (after post) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/semaphore.t TEST 17: kill a light thread that is waiting on a semaphore (after post) - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 17: kill a light thread that is waiting on a semaphore (after post) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-ok
-count: 1
'
stream/semaphore.t TEST 6: semaphore in init_worker_by_lua (wait is not allowed) - Can't connect to 127.0.0.1:1984: Connection refused ==24238== Invalid read of size 4
==24238== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24238== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24238== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24238== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24238== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24238== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24238== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24238== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24238== by 0x8065F7E: main (nginx.c:382)
==24238== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24238==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/semaphore.t TEST 6: semaphore in init_worker_by_lua (wait is not allowed) - Can't connect to 127.0.0.1:1984: Connection refused ==24238==
==24238== Process terminating with default action of signal 11 (SIGSEGV)
==24238== Access not within mapped region at address 0x0
==24238== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24238== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24238== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24238== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24238== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24238== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24238== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24238== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24238== by 0x8065F7E: main (nginx.c:382)
==24238== If you believe this happened as a result of a stack
==24238== overflow in your program's main thread (unlikely but
==24238== possible), you can try to increase the size of the
==24238== main thread stack using the --main-stacksize= flag.
==24238== The main thread stack size used in this run was 8388608.

stream/semaphore.t TEST 6: semaphore in init_worker_by_lua (wait is not allowed) - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 6: semaphore in init_worker_by_lua (wait is not allowed) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok'
stream/semaphore.t TEST 6: semaphore in init_worker_by_lua (wait is not allowed) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/semaphore.t TEST 6: semaphore in init_worker_by_lua (wait is not allowed) - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 6: semaphore in init_worker_by_lua (wait is not allowed) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok'
stream/semaphore.t TEST 7: semaphore in init_worker_by_lua (new and post) - Can't connect to 127.0.0.1:1984: Connection refused ==24240== Invalid read of size 4
==24240== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24240== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24240== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24240== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24240== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24240== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24240== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24240== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24240== by 0x8065F7E: main (nginx.c:382)
==24240== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24240==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/semaphore.t TEST 7: semaphore in init_worker_by_lua (new and post) - Can't connect to 127.0.0.1:1984: Connection refused ==24240==
==24240== Process terminating with default action of signal 11 (SIGSEGV)
==24240== Access not within mapped region at address 0x0
==24240== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24240== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24240== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24240== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24240== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24240== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24240== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24240== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24240== by 0x8065F7E: main (nginx.c:382)
==24240== If you believe this happened as a result of a stack
==24240== overflow in your program's main thread (unlikely but
==24240== possible), you can try to increase the size of the
==24240== main thread stack using the --main-stacksize= flag.
==24240== The main thread stack size used in this run was 8388608.

stream/semaphore.t TEST 7: semaphore in init_worker_by_lua (new and post) - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 7: semaphore in init_worker_by_lua (new and post) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'sem wait successfully.
'
stream/semaphore.t TEST 7: semaphore in init_worker_by_lua (new and post) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/semaphore.t TEST 7: semaphore in init_worker_by_lua (new and post) - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 7: semaphore in init_worker_by_lua (new and post) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'sem wait successfully.
'
stream/semaphore.t TEST 30: bugfix: semaphore instance can't be garbage collected when someone is waiting on it - Can't connect to 127.0.0.1:1984: Connection refused ==24242== Invalid read of size 4
==24242== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24242== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24242== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24242== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24242== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24242== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24242== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24242== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24242== by 0x8065F7E: main (nginx.c:382)
==24242== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24242==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/semaphore.t TEST 30: bugfix: semaphore instance can't be garbage collected when someone is waiting on it - Can't connect to 127.0.0.1:1984: Connection refused ==24242==
==24242== Process terminating with default action of signal 11 (SIGSEGV)
==24242== Access not within mapped region at address 0x0
==24242== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24242== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24242== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24242== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24242== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24242== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24242== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24242== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24242== by 0x8065F7E: main (nginx.c:382)
==24242== If you believe this happened as a result of a stack
==24242== overflow in your program's main thread (unlikely but
==24242== possible), you can try to increase the size of the
==24242== main thread stack using the --main-stacksize= flag.
==24242== The main thread stack size used in this run was 8388608.

stream/semaphore.t TEST 30: bugfix: semaphore instance can't be garbage collected when someone is waiting on it - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 30: bugfix: semaphore instance can't be garbage collected when someone is waiting on it - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'true, nil
'
stream/semaphore.t TEST 30: bugfix: semaphore instance can't be garbage collected when someone is waiting on it - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/semaphore.t TEST 30: bugfix: semaphore instance can't be garbage collected when someone is waiting on it - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 30: bugfix: semaphore instance can't be garbage collected when someone is waiting on it - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'true, nil
'
stream/semaphore.t ERROR: client socket timed out - TEST 26: basic semaphore_mm free insert head '
stream/semaphore.t TEST 26: basic semaphore_mm free insert head - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 26: basic semaphore_mm free insert head - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
stream/semaphore.t TEST 26: basic semaphore_mm free insert head - pattern "add to free queue head" should match a line in error.log (req 0)
stream/semaphore.t TEST 26: basic semaphore_mm free insert head - Can't connect to 127.0.0.1:1984: Connection refused ==24244== Invalid read of size 4
==24244== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24244== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24244== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24244== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24244== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24244== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24244== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24244== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24244== by 0x8065F7E: main (nginx.c:382)
==24244== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24244==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/semaphore.t TEST 26: basic semaphore_mm free insert head - Can't connect to 127.0.0.1:1984: Connection refused ==24244==
==24244== Process terminating with default action of signal 11 (SIGSEGV)
==24244== Access not within mapped region at address 0x0
==24244== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24244== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24244== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24244== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24244== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24244== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24244== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24244== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24244== by 0x8065F7E: main (nginx.c:382)
==24244== If you believe this happened as a result of a stack
==24244== overflow in your program's main thread (unlikely but
==24244== possible), you can try to increase the size of the
==24244== main thread stack using the --main-stacksize= flag.
==24244== The main thread stack size used in this run was 8388608.
==24244== 2,048 bytes in 1 blocks are definitely lost in loss record 3,004 of 3,069
==24244== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24244== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24244== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24244== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24244== by 0x40B9CC1: lj_ir_nextins (lj_iropt.h:34)
==24244== by 0x40B9CC1: lj_asm_trace (lj_asm.c:2346)
==24244== by 0x40BAF25: trace_state (lj_trace.c:707)
==24244== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24244== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24244== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24244== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24244== by 0x407FA29: lua_resume (lj_api.c:1296)
==24244== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24244== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24244== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24244== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24244== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24244== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24244== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24244== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24244== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24244== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24244== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24244== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24244== by 0x8065F7E: main (nginx.c:382)
==24244==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_asm_trace
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/semaphore.t TEST 26: basic semaphore_mm free insert head - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 26: basic semaphore_mm free insert head - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
stream/semaphore.t TEST 21: multi wait and mult post with one semaphore - Can't connect to 127.0.0.1:1984: Connection refused ==24245== Invalid read of size 4
==24245== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24245== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24245== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24245== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24245== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24245== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24245== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24245== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24245== by 0x8065F7E: main (nginx.c:382)
==24245== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24245==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/semaphore.t TEST 21: multi wait and mult post with one semaphore - Can't connect to 127.0.0.1:1984: Connection refused ==24245==
==24245== Process terminating with default action of signal 11 (SIGSEGV)
==24245== Access not within mapped region at address 0x0
==24245== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24245== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24245== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24245== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24245== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24245== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24245== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24245== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24245== by 0x8065F7E: main (nginx.c:382)
==24245== If you believe this happened as a result of a stack
==24245== overflow in your program's main thread (unlikely but
==24245== possible), you can try to increase the size of the
==24245== main thread stack using the --main-stacksize= flag.
==24245== The main thread stack size used in this run was 8388608.

stream/semaphore.t TEST 21: multi wait and mult post with one semaphore - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 21: multi wait and mult post with one semaphore - response_body - response is expected (repeated req 0, req 0) @@ -1,9 +0,0 @@
-wait: 1
-wait: 2
-wait: 3
-post: 1
-post: 2
-post: 3
-wait success: 1
-wait success: 2
-wait success: 3
'
stream/semaphore.t TEST 21: multi wait and mult post with one semaphore - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/semaphore.t TEST 21: multi wait and mult post with one semaphore - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 21: multi wait and mult post with one semaphore - response_body - response is expected (repeated req 1, req 0) @@ -1,9 +0,0 @@
-wait: 1
-wait: 2
-wait: 3
-post: 1
-post: 2
-post: 3
-wait success: 1
-wait success: 2
-wait success: 3
'
stream/semaphore.t TEST 29: basic semaphore count (negative number) - Can't connect to 127.0.0.1:1984: Connection refused ==24247== Invalid read of size 4
==24247== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24247== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24247== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24247== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24247== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24247== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24247== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24247== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24247== by 0x8065F7E: main (nginx.c:382)
==24247== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24247==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/semaphore.t TEST 29: basic semaphore count (negative number) - Can't connect to 127.0.0.1:1984: Connection refused ==24247==
==24247== Process terminating with default action of signal 11 (SIGSEGV)
==24247== Access not within mapped region at address 0x0
==24247== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24247== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24247== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24247== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24247== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24247== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24247== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24247== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24247== by 0x8065F7E: main (nginx.c:382)
==24247== If you believe this happened as a result of a stack
==24247== overflow in your program's main thread (unlikely but
==24247== possible), you can try to increase the size of the
==24247== main thread stack using the --main-stacksize= flag.
==24247== The main thread stack size used in this run was 8388608.

stream/semaphore.t TEST 29: basic semaphore count (negative number) - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 29: basic semaphore count (negative number) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-0
--1
'
stream/semaphore.t TEST 29: basic semaphore count (negative number) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/semaphore.t TEST 29: basic semaphore count (negative number) - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 29: basic semaphore count (negative number) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-0
--1
'
stream/semaphore.t TEST 9: semaphore in content_by_lua (all allowed) - Can't connect to 127.0.0.1:1984: Connection refused ==24249== Invalid read of size 4
==24249== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24249== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24249== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24249== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24249== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24249== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24249== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24249== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24249== by 0x8065F7E: main (nginx.c:382)
==24249== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24249==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/semaphore.t TEST 9: semaphore in content_by_lua (all allowed) - Can't connect to 127.0.0.1:1984: Connection refused ==24249==
==24249== Process terminating with default action of signal 11 (SIGSEGV)
==24249== Access not within mapped region at address 0x0
==24249== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24249== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24249== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24249== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24249== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24249== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24249== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24249== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24249== by 0x8065F7E: main (nginx.c:382)
==24249== If you believe this happened as a result of a stack
==24249== overflow in your program's main thread (unlikely but
==24249== possible), you can try to increase the size of the
==24249== main thread stack using the --main-stacksize= flag.
==24249== The main thread stack size used in this run was 8388608.

stream/semaphore.t TEST 9: semaphore in content_by_lua (all allowed) - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 9: semaphore in content_by_lua (all allowed) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
stream/semaphore.t TEST 9: semaphore in content_by_lua (all allowed) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/semaphore.t TEST 9: semaphore in content_by_lua (all allowed) - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 9: semaphore in content_by_lua (all allowed) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
stream/semaphore.t TEST 9: semaphore in content_by_lua (all allowed) - grep_error_log_out (req 1) @@ -1,2 +0,0 @@
-sem: timeout,
-sem: 1,
'
stream/semaphore.t TEST 8: semaphore in preread_by_lua (all allowed) - Can't connect to 127.0.0.1:1984: Connection refused ==24251== Invalid read of size 4
==24251== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24251== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24251== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24251== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24251== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24251== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24251== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24251== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24251== by 0x8065F7E: main (nginx.c:382)
==24251== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24251==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/semaphore.t TEST 8: semaphore in preread_by_lua (all allowed) - Can't connect to 127.0.0.1:1984: Connection refused ==24251==
==24251== Process terminating with default action of signal 11 (SIGSEGV)
==24251== Access not within mapped region at address 0x0
==24251== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24251== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24251== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24251== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24251== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24251== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24251== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24251== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24251== by 0x8065F7E: main (nginx.c:382)
==24251== If you believe this happened as a result of a stack
==24251== overflow in your program's main thread (unlikely but
==24251== possible), you can try to increase the size of the
==24251== main thread stack using the --main-stacksize= flag.
==24251== The main thread stack size used in this run was 8388608.

stream/semaphore.t TEST 8: semaphore in preread_by_lua (all allowed) - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 8: semaphore in preread_by_lua (all allowed) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok'
stream/semaphore.t TEST 8: semaphore in preread_by_lua (all allowed) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/semaphore.t TEST 8: semaphore in preread_by_lua (all allowed) - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 8: semaphore in preread_by_lua (all allowed) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok'
stream/semaphore.t TEST 8: semaphore in preread_by_lua (all allowed) - grep_error_log_out (req 1) @@ -1,2 +0,0 @@
-sem: timeout while prereading client data,
-sem: 1 while prereading client data,
'
stream/semaphore.t TEST 20: main thread wait a light thread that is waiting on a semaphore - Can't connect to 127.0.0.1:1984: Connection refused ==24253== Invalid read of size 4
==24253== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24253== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24253== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24253== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24253== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24253== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24253== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24253== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24253== by 0x8065F7E: main (nginx.c:382)
==24253== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24253==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/semaphore.t TEST 20: main thread wait a light thread that is waiting on a semaphore - Can't connect to 127.0.0.1:1984: Connection refused ==24253==
==24253== Process terminating with default action of signal 11 (SIGSEGV)
==24253== Access not within mapped region at address 0x0
==24253== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24253== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24253== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24253== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24253== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24253== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24253== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24253== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24253== by 0x8065F7E: main (nginx.c:382)
==24253== If you believe this happened as a result of a stack
==24253== overflow in your program's main thread (unlikely but
==24253== possible), you can try to increase the size of the
==24253== main thread stack using the --main-stacksize= flag.
==24253== The main thread stack size used in this run was 8388608.

stream/semaphore.t TEST 20: main thread wait a light thread that is waiting on a semaphore - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 20: main thread wait a light thread that is waiting on a semaphore - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'err: timeout
'
stream/semaphore.t TEST 20: main thread wait a light thread that is waiting on a semaphore - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/semaphore.t TEST 20: main thread wait a light thread that is waiting on a semaphore - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 20: main thread wait a light thread that is waiting on a semaphore - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'err: timeout
'
stream/semaphore.t TEST 24: basic semaphore_mm alloc - Can't connect to 127.0.0.1:1984: Connection refused ==24255== Invalid read of size 4
==24255== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24255== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24255== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24255== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24255== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24255== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24255== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24255== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24255== by 0x8065F7E: main (nginx.c:382)
==24255== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24255==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/semaphore.t TEST 24: basic semaphore_mm alloc - Can't connect to 127.0.0.1:1984: Connection refused ==24255==
==24255== Process terminating with default action of signal 11 (SIGSEGV)
==24255== Access not within mapped region at address 0x0
==24255== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24255== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24255== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24255== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24255== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24255== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24255== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24255== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24255== by 0x8065F7E: main (nginx.c:382)
==24255== If you believe this happened as a result of a stack
==24255== overflow in your program's main thread (unlikely but
==24255== possible), you can try to increase the size of the
==24255== main thread stack using the --main-stacksize= flag.
==24255== The main thread stack size used in this run was 8388608.

stream/semaphore.t TEST 24: basic semaphore_mm alloc - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 24: basic semaphore_mm alloc - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
stream/semaphore.t TEST 24: basic semaphore_mm alloc - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/semaphore.t TEST 24: basic semaphore_mm alloc - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 24: basic semaphore_mm alloc - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
stream/semaphore.t TEST 24: basic semaphore_mm alloc - grep_error_log_out (req 1) got: ''
expected: 'from head of free queue, alloc semaphore
'
stream/semaphore.t TEST 4: semaphore.new in init_by_lua* (w/o shdict) - Can't connect to 127.0.0.1:1984: Connection refused ==24257== Invalid read of size 4
==24257== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24257== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24257== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24257== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24257== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24257== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24257== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24257== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24257== by 0x8065F7E: main (nginx.c:382)
==24257== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24257==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/semaphore.t TEST 4: semaphore.new in init_by_lua* (w/o shdict) - Can't connect to 127.0.0.1:1984: Connection refused ==24257==
==24257== Process terminating with default action of signal 11 (SIGSEGV)
==24257== Access not within mapped region at address 0x0
==24257== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24257== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24257== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24257== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24257== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24257== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24257== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24257== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24257== by 0x8065F7E: main (nginx.c:382)
==24257== If you believe this happened as a result of a stack
==24257== overflow in your program's main thread (unlikely but
==24257== possible), you can try to increase the size of the
==24257== main thread stack using the --main-stacksize= flag.
==24257== The main thread stack size used in this run was 8388608.

stream/semaphore.t TEST 4: semaphore.new in init_by_lua* (w/o shdict) - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 4: semaphore.new in init_by_lua* (w/o shdict) - response_body_like - response is expected () ''
doesn't match '(?^s:sem count: [12]
waited successfully.
)'
stream/semaphore.t TEST 4: semaphore.new in init_by_lua* (w/o shdict) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/semaphore.t TEST 4: semaphore.new in init_by_lua* (w/o shdict) - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 4: semaphore.new in init_by_lua* (w/o shdict) - response_body_like - response is expected () ''
doesn't match '(?^s:sem count: [12]
waited successfully.
)'
stream/semaphore.t TEST 14: semaphore wait in timer.at - Can't connect to 127.0.0.1:1984: Connection refused ==24259== Invalid read of size 4
==24259== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24259== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24259== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24259== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24259== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24259== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24259== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24259== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24259== by 0x8065F7E: main (nginx.c:382)
==24259== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24259==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/semaphore.t TEST 14: semaphore wait in timer.at - Can't connect to 127.0.0.1:1984: Connection refused ==24259==
==24259== Process terminating with default action of signal 11 (SIGSEGV)
==24259== Access not within mapped region at address 0x0
==24259== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24259== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24259== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24259== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24259== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24259== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24259== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24259== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24259== by 0x8065F7E: main (nginx.c:382)
==24259== If you believe this happened as a result of a stack
==24259== overflow in your program's main thread (unlikely but
==24259== possible), you can try to increase the size of the
==24259== main thread stack using the --main-stacksize= flag.
==24259== The main thread stack size used in this run was 8388608.

stream/semaphore.t TEST 14: semaphore wait in timer.at - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 14: semaphore wait in timer.at - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
stream/semaphore.t TEST 14: semaphore wait in timer.at - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/semaphore.t TEST 14: semaphore wait in timer.at - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 14: semaphore wait in timer.at - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
stream/semaphore.t TEST 14: semaphore wait in timer.at - pattern "wait success" should match a line in error.log (req 1)
stream/semaphore.t TEST 3: semaphore wait time=0 - Can't connect to 127.0.0.1:1984: Connection refused ==24261== Invalid read of size 4
==24261== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24261== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24261== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24261== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24261== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24261== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24261== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24261== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24261== by 0x8065F7E: main (nginx.c:382)
==24261== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24261==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/semaphore.t TEST 3: semaphore wait time=0 - Can't connect to 127.0.0.1:1984: Connection refused ==24261==
==24261== Process terminating with default action of signal 11 (SIGSEGV)
==24261== Access not within mapped region at address 0x0
==24261== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24261== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24261== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24261== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24261== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24261== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24261== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24261== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24261== by 0x8065F7E: main (nginx.c:382)
==24261== If you believe this happened as a result of a stack
==24261== overflow in your program's main thread (unlikely but
==24261== possible), you can try to increase the size of the
==24261== main thread stack using the --main-stacksize= flag.
==24261== The main thread stack size used in this run was 8388608.

stream/semaphore.t TEST 3: semaphore wait time=0 - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 3: semaphore wait time=0 - response_body - response is expected (repeated req 0, req 0) @@ -1,10 +0,0 @@
-wait success
-err: timeout
-enter 1s wait
-back in main thread
-err: timeout
-err: timeout
-still in main thread
-wait success in 1s wait
-wait success
-main thread end
'
stream/semaphore.t TEST 3: semaphore wait time=0 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/semaphore.t TEST 3: semaphore wait time=0 - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 3: semaphore wait time=0 - response_body - response is expected (repeated req 1, req 0) @@ -1,10 +0,0 @@
-wait success
-err: timeout
-enter 1s wait
-back in main thread
-err: timeout
-err: timeout
-still in main thread
-wait success in 1s wait
-wait success
-main thread end
'
stream/semaphore.t ERROR: client socket timed out - TEST 25: basic semaphore_mm free insert tail '
stream/semaphore.t TEST 25: basic semaphore_mm free insert tail - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 25: basic semaphore_mm free insert tail - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
stream/semaphore.t TEST 25: basic semaphore_mm free insert tail - pattern "add to free queue tail" should match a line in error.log (req 0)
stream/semaphore.t TEST 25: basic semaphore_mm free insert tail - Can't connect to 127.0.0.1:1984: Connection refused ==24263== Invalid read of size 4
==24263== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24263== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24263== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24263== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24263== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24263== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24263== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24263== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24263== by 0x8065F7E: main (nginx.c:382)
==24263== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24263==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/semaphore.t TEST 25: basic semaphore_mm free insert tail - Can't connect to 127.0.0.1:1984: Connection refused ==24263==
==24263== Process terminating with default action of signal 11 (SIGSEGV)
==24263== Access not within mapped region at address 0x0
==24263== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24263== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24263== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24263== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24263== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24263== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24263== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24263== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24263== by 0x8065F7E: main (nginx.c:382)
==24263== If you believe this happened as a result of a stack
==24263== overflow in your program's main thread (unlikely but
==24263== possible), you can try to increase the size of the
==24263== main thread stack using the --main-stacksize= flag.
==24263== The main thread stack size used in this run was 8388608.
==24263== 2,048 bytes in 1 blocks are definitely lost in loss record 3,012 of 3,078
==24263== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24263== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24263== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24263== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24263== by 0x40B9CC1: lj_ir_nextins (lj_iropt.h:34)
==24263== by 0x40B9CC1: lj_asm_trace (lj_asm.c:2346)
==24263== by 0x40BAF25: trace_state (lj_trace.c:707)
==24263== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24263== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24263== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24263== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24263== by 0x407FA29: lua_resume (lj_api.c:1296)
==24263== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24263== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24263== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24263== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24263== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24263== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24263== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24263== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24263== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24263== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24263== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24263== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24263== by 0x8065F7E: main (nginx.c:382)
==24263==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_asm_trace
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/semaphore.t TEST 25: basic semaphore_mm free insert tail - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 25: basic semaphore_mm free insert tail - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
stream/semaphore.t TEST 12: semaphore post in all phase (in a request) - Can't connect to 127.0.0.1:1984: Connection refused ==24264== Invalid read of size 4
==24264== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24264== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24264== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24264== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24264== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24264== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24264== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24264== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24264== by 0x8065F7E: main (nginx.c:382)
==24264== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24264==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/semaphore.t TEST 12: semaphore post in all phase (in a request) - Can't connect to 127.0.0.1:1984: Connection refused ==24264==
==24264== Process terminating with default action of signal 11 (SIGSEGV)
==24264== Access not within mapped region at address 0x0
==24264== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24264== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24264== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24264== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24264== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24264== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24264== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24264== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24264== by 0x8065F7E: main (nginx.c:382)
==24264== If you believe this happened as a result of a stack
==24264== overflow in your program's main thread (unlikely but
==24264== possible), you can try to increase the size of the
==24264== main thread stack using the --main-stacksize= flag.
==24264== The main thread stack size used in this run was 8388608.

stream/semaphore.t TEST 12: semaphore post in all phase (in a request) - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 12: semaphore post in all phase (in a request) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
stream/semaphore.t TEST 12: semaphore post in all phase (in a request) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/semaphore.t TEST 12: semaphore post in all phase (in a request) - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 12: semaphore post in all phase (in a request) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
stream/semaphore.t TEST 12: semaphore post in all phase (in a request) - grep_error_log_out (req 1) got: ''
expected: 'sem: 3 times,
'
stream/semaphore.t TEST 28: basic semaphore count - Can't connect to 127.0.0.1:1984: Connection refused ==24266== Invalid read of size 4
==24266== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24266== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24266== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24266== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24266== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24266== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24266== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24266== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24266== by 0x8065F7E: main (nginx.c:382)
==24266== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24266==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/semaphore.t TEST 28: basic semaphore count - Can't connect to 127.0.0.1:1984: Connection refused ==24266==
==24266== Process terminating with default action of signal 11 (SIGSEGV)
==24266== Access not within mapped region at address 0x0
==24266== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24266== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24266== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24266== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24266== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24266== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24266== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24266== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24266== by 0x8065F7E: main (nginx.c:382)
==24266== If you believe this happened as a result of a stack
==24266== overflow in your program's main thread (unlikely but
==24266== possible), you can try to increase the size of the
==24266== main thread stack using the --main-stacksize= flag.
==24266== The main thread stack size used in this run was 8388608.

stream/semaphore.t TEST 28: basic semaphore count - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 28: basic semaphore count - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-10
-9
-12
'
stream/semaphore.t TEST 28: basic semaphore count - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/semaphore.t TEST 28: basic semaphore count - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 28: basic semaphore count - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-10
-9
-12
'
stream/semaphore.t TEST 1: basic semaphore in uthread - Can't connect to 127.0.0.1:1984: Connection refused ==24268== Invalid read of size 4
==24268== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24268== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24268== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24268== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24268== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24268== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24268== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24268== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24268== by 0x8065F7E: main (nginx.c:382)
==24268== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24268==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/semaphore.t TEST 1: basic semaphore in uthread - Can't connect to 127.0.0.1:1984: Connection refused ==24268==
==24268== Process terminating with default action of signal 11 (SIGSEGV)
==24268== Access not within mapped region at address 0x0
==24268== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24268== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24268== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24268== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24268== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24268== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24268== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24268== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24268== by 0x8065F7E: main (nginx.c:382)
==24268== If you believe this happened as a result of a stack
==24268== overflow in your program's main thread (unlikely but
==24268== possible), you can try to increase the size of the
==24268== main thread stack using the --main-stacksize= flag.
==24268== The main thread stack size used in this run was 8388608.

stream/semaphore.t TEST 1: basic semaphore in uthread - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 1: basic semaphore in uthread - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-enter waiting
-back in main thread
-still in main thread
-wait success
-main thread end
'
stream/semaphore.t TEST 1: basic semaphore in uthread - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/semaphore.t TEST 1: basic semaphore in uthread - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 1: basic semaphore in uthread - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-enter waiting
-back in main thread
-still in main thread
-wait success
-main thread end
'
stream/semaphore.t TEST 16: kill a light thread that is waiting on a semaphore (no resource) - Can't connect to 127.0.0.1:1984: Connection refused ==24270== Invalid read of size 4
==24270== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24270== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24270== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24270== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24270== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24270== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24270== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24270== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24270== by 0x8065F7E: main (nginx.c:382)
==24270== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24270==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/semaphore.t TEST 16: kill a light thread that is waiting on a semaphore (no resource) - Can't connect to 127.0.0.1:1984: Connection refused ==24270==
==24270== Process terminating with default action of signal 11 (SIGSEGV)
==24270== Access not within mapped region at address 0x0
==24270== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24270== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24270== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24270== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24270== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24270== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24270== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24270== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24270== by 0x8065F7E: main (nginx.c:382)
==24270== If you believe this happened as a result of a stack
==24270== overflow in your program's main thread (unlikely but
==24270== possible), you can try to increase the size of the
==24270== main thread stack using the --main-stacksize= flag.
==24270== The main thread stack size used in this run was 8388608.

stream/semaphore.t TEST 16: kill a light thread that is waiting on a semaphore (no resource) - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 16: kill a light thread that is waiting on a semaphore (no resource) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
stream/semaphore.t TEST 16: kill a light thread that is waiting on a semaphore (no resource) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/semaphore.t TEST 16: kill a light thread that is waiting on a semaphore (no resource) - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 16: kill a light thread that is waiting on a semaphore (no resource) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
stream/semaphore.t TEST 27: semaphore_mm free block (load <= 50% & the on the older side) - Can't connect to 127.0.0.1:1984: Connection refused ==24272== Invalid read of size 4
==24272== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24272== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24272== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24272== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24272== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24272== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24272== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24272== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24272== by 0x8065F7E: main (nginx.c:382)
==24272== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24272==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/semaphore.t TEST 27: semaphore_mm free block (load <= 50% & the on the older side) - Can't connect to 127.0.0.1:1984: Connection refused ==24272==
==24272== Process terminating with default action of signal 11 (SIGSEGV)
==24272== Access not within mapped region at address 0x0
==24272== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24272== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24272== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24272== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24272== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24272== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24272== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24272== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24272== by 0x8065F7E: main (nginx.c:382)
==24272== If you believe this happened as a result of a stack
==24272== overflow in your program's main thread (unlikely but
==24272== possible), you can try to increase the size of the
==24272== main thread stack using the --main-stacksize= flag.
==24272== The main thread stack size used in this run was 8388608.
==24272== 2,048 bytes in 1 blocks are definitely lost in loss record 3,013 of 3,078
==24272== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24272== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24272== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24272== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24272== by 0x40B9CC1: lj_ir_nextins (lj_iropt.h:34)
==24272== by 0x40B9CC1: lj_asm_trace (lj_asm.c:2346)
==24272== by 0x40BAF25: trace_state (lj_trace.c:707)
==24272== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24272== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24272== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24272== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24272== by 0x407FA29: lua_resume (lj_api.c:1296)
==24272== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24272== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24272== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24272== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24272== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24272== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24272== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24272== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24272== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24272== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24272== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24272== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24272== by 0x8065F7E: main (nginx.c:382)
==24272==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_asm_trace
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/semaphore.t TEST 27: semaphore_mm free block (load <= 50% & the on the older side) - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 27: semaphore_mm free block (load <= 50% & the on the older side) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
stream/semaphore.t TEST 27: semaphore_mm free block (load <= 50% & the on the older side) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/semaphore.t TEST 27: semaphore_mm free block (load <= 50% & the on the older side) - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 27: semaphore_mm free block (load <= 50% & the on the older side) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
stream/semaphore.t TEST 27: semaphore_mm free block (load <= 50% & the on the older side) - grep_error_log_out (req 1) got: ''
expected: 'free semaphore block
'
stream/semaphore.t TEST 11: semaphore in ngx.timer (all allowed) - Can't connect to 127.0.0.1:1984: Connection refused ==24274== Invalid read of size 4
==24274== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24274== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24274== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24274== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24274== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24274== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24274== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24274== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24274== by 0x8065F7E: main (nginx.c:382)
==24274== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24274==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/semaphore.t TEST 11: semaphore in ngx.timer (all allowed) - Can't connect to 127.0.0.1:1984: Connection refused ==24274==
==24274== Process terminating with default action of signal 11 (SIGSEGV)
==24274== Access not within mapped region at address 0x0
==24274== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24274== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24274== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24274== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24274== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24274== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24274== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24274== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24274== by 0x8065F7E: main (nginx.c:382)
==24274== If you believe this happened as a result of a stack
==24274== overflow in your program's main thread (unlikely but
==24274== possible), you can try to increase the size of the
==24274== main thread stack using the --main-stacksize= flag.
==24274== The main thread stack size used in this run was 8388608.

stream/semaphore.t TEST 11: semaphore in ngx.timer (all allowed) - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 11: semaphore in ngx.timer (all allowed) - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
stream/semaphore.t TEST 11: semaphore in ngx.timer (all allowed) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/semaphore.t TEST 11: semaphore in ngx.timer (all allowed) - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 11: semaphore in ngx.timer (all allowed) - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
stream/semaphore.t TEST 11: semaphore in ngx.timer (all allowed) - grep_error_log_out (req 1) @@ -1,2 +0,0 @@
-sem: timeout,
-sem: 1,
'
stream/semaphore.t TEST 5: semaphore.new in init_by_lua* (with shdict) - Can't connect to 127.0.0.1:1984: Connection refused ==24276== Invalid read of size 4
==24276== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24276== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24276== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24276== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24276== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24276== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24276== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24276== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24276== by 0x8065F7E: main (nginx.c:382)
==24276== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24276==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/semaphore.t TEST 5: semaphore.new in init_by_lua* (with shdict) - Can't connect to 127.0.0.1:1984: Connection refused ==24276==
==24276== Process terminating with default action of signal 11 (SIGSEGV)
==24276== Access not within mapped region at address 0x0
==24276== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24276== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24276== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24276== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24276== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24276== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24276== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24276== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24276== by 0x8065F7E: main (nginx.c:382)
==24276== If you believe this happened as a result of a stack
==24276== overflow in your program's main thread (unlikely but
==24276== possible), you can try to increase the size of the
==24276== main thread stack using the --main-stacksize= flag.
==24276== The main thread stack size used in this run was 8388608.

stream/semaphore.t TEST 5: semaphore.new in init_by_lua* (with shdict) - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 5: semaphore.new in init_by_lua* (with shdict) - response_body_like - response is expected () ''
doesn't match '(?^s:sem count: [12]
waited successfully.
)'
stream/semaphore.t TEST 5: semaphore.new in init_by_lua* (with shdict) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/semaphore.t TEST 5: semaphore.new in init_by_lua* (with shdict) - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 5: semaphore.new in init_by_lua* (with shdict) - response_body_like - response is expected () ''
doesn't match '(?^s:sem count: [12]
waited successfully.
)'
stream/semaphore.t TEST 13: semaphore wait post in preread_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==24278== Invalid read of size 4
==24278== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24278== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24278== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24278== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24278== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24278== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24278== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24278== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24278== by 0x8065F7E: main (nginx.c:382)
==24278== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24278==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/semaphore.t TEST 13: semaphore wait post in preread_by_lua - Can't connect to 127.0.0.1:1984: Connection refused ==24278==
==24278== Process terminating with default action of signal 11 (SIGSEGV)
==24278== Access not within mapped region at address 0x0
==24278== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24278== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24278== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24278== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24278== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24278== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24278== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24278== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24278== by 0x8065F7E: main (nginx.c:382)
==24278== If you believe this happened as a result of a stack
==24278== overflow in your program's main thread (unlikely but
==24278== possible), you can try to increase the size of the
==24278== main thread stack using the --main-stacksize= flag.
==24278== The main thread stack size used in this run was 8388608.

stream/semaphore.t TEST 13: semaphore wait post in preread_by_lua - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 13: semaphore wait post in preread_by_lua - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +0,0 @@
-enter wait
-enter post
-post success
-wait success
-done'
stream/semaphore.t TEST 13: semaphore wait post in preread_by_lua - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/semaphore.t TEST 13: semaphore wait post in preread_by_lua - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 13: semaphore wait post in preread_by_lua - response_body - response is expected (repeated req 1, req 0) @@ -1,5 +0,0 @@
-enter wait
-enter post
-post success
-wait success
-done'
stream/semaphore.t TEST 2: semaphore wait order - Can't connect to 127.0.0.1:1984: Connection refused ==24280== Invalid read of size 4
==24280== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24280== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24280== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24280== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24280== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24280== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24280== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24280== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24280== by 0x8065F7E: main (nginx.c:382)
==24280== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24280==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/semaphore.t TEST 2: semaphore wait order - Can't connect to 127.0.0.1:1984: Connection refused ==24280==
==24280== Process terminating with default action of signal 11 (SIGSEGV)
==24280== Access not within mapped region at address 0x0
==24280== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24280== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24280== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24280== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24280== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24280== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24280== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24280== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24280== by 0x8065F7E: main (nginx.c:382)
==24280== If you believe this happened as a result of a stack
==24280== overflow in your program's main thread (unlikely but
==24280== possible), you can try to increase the size of the
==24280== main thread stack using the --main-stacksize= flag.
==24280== The main thread stack size used in this run was 8388608.

stream/semaphore.t TEST 2: semaphore wait order - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 2: semaphore wait order - response_body - response is expected (repeated req 0, req 0) @@ -1,9 +0,0 @@
-enter waiting, id: 1
-enter waiting, id: 2
-back in main thread
-wait failed in main thread: timeout
-still in main thread
-wait success, id: 1
-wait success, id: 2
-wait failed in main thread: timeout
-main thread end
'
stream/semaphore.t TEST 2: semaphore wait order - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/semaphore.t TEST 2: semaphore wait order - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 2: semaphore wait order - response_body - response is expected (repeated req 1, req 0) @@ -1,9 +0,0 @@
-enter waiting, id: 1
-enter waiting, id: 2
-back in main thread
-wait failed in main thread: timeout
-still in main thread
-wait success, id: 1
-wait success, id: 2
-wait failed in main thread: timeout
-main thread end
'
stream/semaphore.t TEST 19: a light thread that is going to exit is waiting on a semaphore - Can't connect to 127.0.0.1:1984: Connection refused ==24282== Invalid read of size 4
==24282== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24282== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24282== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24282== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24282== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24282== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24282== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24282== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24282== by 0x8065F7E: main (nginx.c:382)
==24282== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24282==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/semaphore.t TEST 19: a light thread that is going to exit is waiting on a semaphore - Can't connect to 127.0.0.1:1984: Connection refused ==24282==
==24282== Process terminating with default action of signal 11 (SIGSEGV)
==24282== Access not within mapped region at address 0x0
==24282== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24282== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24282== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24282== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24282== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24282== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24282== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24282== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24282== by 0x8065F7E: main (nginx.c:382)
==24282== If you believe this happened as a result of a stack
==24282== overflow in your program's main thread (unlikely but
==24282== possible), you can try to increase the size of the
==24282== main thread stack using the --main-stacksize= flag.
==24282== The main thread stack size used in this run was 8388608.

stream/semaphore.t TEST 19: a light thread that is going to exit is waiting on a semaphore - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 19: a light thread that is going to exit is waiting on a semaphore - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-sem waiting
-ok
'
stream/semaphore.t TEST 19: a light thread that is going to exit is waiting on a semaphore - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/semaphore.t TEST 19: a light thread that is going to exit is waiting on a semaphore - status code ok got: ''
expected: '200'
stream/semaphore.t TEST 19: a light thread that is going to exit is waiting on a semaphore - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-sem waiting
-ok
'
stream/semaphore.t TEST 19: a light thread that is going to exit is waiting on a semaphore - pattern "stream lua semaphore cleanup" should match a line in error.log (req 1)
stream/shdict.t TEST 20: safe add a string value - Can't connect to 127.0.0.1:1984: Connection refused ==24288== Invalid read of size 4
==24288== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24288== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24288== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24288== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24288== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24288== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24288== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24288== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24288== by 0x8065F7E: main (nginx.c:382)
==24288== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24288==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 20: safe add a string value - Can't connect to 127.0.0.1:1984: Connection refused ==24288==
==24288== Process terminating with default action of signal 11 (SIGSEGV)
==24288== Access not within mapped region at address 0x0
==24288== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24288== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24288== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24288== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24288== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24288== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24288== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24288== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24288== by 0x8065F7E: main (nginx.c:382)
==24288== If you believe this happened as a result of a stack
==24288== overflow in your program's main thread (unlikely but
==24288== possible), you can try to increase the size of the
==24288== main thread stack using the --main-stacksize= flag.
==24288== The main thread stack size used in this run was 8388608.
==24288== 2,048 bytes in 1 blocks are definitely lost in loss record 3,129 of 3,190
==24288== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24288== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24288== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24288== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24288== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24288== by 0x408A8C6: ir_nextk (lj_ir.c:175)
==24288== by 0x408A8C6: lj_ir_kgc (lj_ir.c:286)
==24288== by 0x409C767: lj_record_mm_lookup (lj_record.c:999)
==24288== by 0x409B444: lj_record_idx (lj_record.c:1415)
==24288== by 0x409F552: lj_record_ins (lj_record.c:2339)
==24288== by 0x40BB16A: trace_state (lj_trace.c:680)
==24288== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24288== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24288== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24288== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24288== by 0x407FA29: lua_resume (lj_api.c:1296)
==24288== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24288== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24288== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24288== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24288== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24288== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24288== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24288== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24288== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24288== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24288== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24288== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24288== by 0x8065F7E: main (nginx.c:382)
==24288==
{
<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: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
}
stream/shdict.t TEST 20: safe add a string value - status code ok got: ''
expected: '200'
stream/shdict.t TEST 20: safe add a string value - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: string
-value: bar
-flags: 72
'
stream/shdict.t TEST 20: safe add a string value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 20: safe add a string value - status code ok got: ''
expected: '200'
stream/shdict.t TEST 20: safe add a string value - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: string
-value: bar
-flags: 72
'
stream/shdict.t TEST 28: incr, value is not number - Can't connect to 127.0.0.1:1984: Connection refused ==24290== Invalid read of size 4
==24290== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24290== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24290== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24290== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24290== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24290== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24290== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24290== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24290== by 0x8065F7E: main (nginx.c:382)
==24290== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24290==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 28: incr, value is not number - Can't connect to 127.0.0.1:1984: Connection refused ==24290==
==24290== Process terminating with default action of signal 11 (SIGSEGV)
==24290== Access not within mapped region at address 0x0
==24290== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24290== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24290== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24290== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24290== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24290== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24290== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24290== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24290== by 0x8065F7E: main (nginx.c:382)
==24290== If you believe this happened as a result of a stack
==24290== overflow in your program's main thread (unlikely but
==24290== possible), you can try to increase the size of the
==24290== main thread stack using the --main-stacksize= flag.
==24290== The main thread stack size used in this run was 8388608.

stream/shdict.t TEST 28: incr, value is not number - status code ok got: ''
expected: '200'
stream/shdict.t TEST 28: incr, value is not number - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 28: incr, value is not number - status code ok got: ''
expected: '200'
stream/shdict.t TEST 18: safe set a number value - Can't connect to 127.0.0.1:1984: Connection refused ==24292== Invalid read of size 4
==24292== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24292== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24292== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24292== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24292== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24292== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24292== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24292== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24292== by 0x8065F7E: main (nginx.c:382)
==24292== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24292==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 18: safe set a number value - Can't connect to 127.0.0.1:1984: Connection refused ==24292==
==24292== Process terminating with default action of signal 11 (SIGSEGV)
==24292== Access not within mapped region at address 0x0
==24292== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24292== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24292== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24292== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24292== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24292== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24292== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24292== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24292== by 0x8065F7E: main (nginx.c:382)
==24292== If you believe this happened as a result of a stack
==24292== overflow in your program's main thread (unlikely but
==24292== possible), you can try to increase the size of the
==24292== main thread stack using the --main-stacksize= flag.
==24292== The main thread stack size used in this run was 8388608.
==24292== 2,048 bytes in 1 blocks are definitely lost in loss record 3,125 of 3,189
==24292== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24292== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24292== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24292== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24292== by 0x408F5A6: lj_ir_nextins (lj_iropt.h:34)
==24292== by 0x408F5A6: lj_opt_cse (lj_opt_fold.c:2549)
==24292== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24292== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24292== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24292== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24292== by 0x40BB675: trace_state (lj_trace.c:690)
==24292== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24292== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24292== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24292== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24292== by 0x407FA29: lua_resume (lj_api.c:1296)
==24292== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24292== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24292== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24292== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24292== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24292== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24292== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24292== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24292== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24292== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24292== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24292== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24292== by 0x8065F7E: main (nginx.c:382)
==24292==
{
<insert_a_suppression_name_here>
Memcheck: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
}
stream/shdict.t TEST 18: safe set a number value - status code ok got: ''
expected: '200'
stream/shdict.t TEST 18: safe set a number value - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: number
-value: 3.1415926
-flags: 78
'
stream/shdict.t TEST 18: safe set a number value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 18: safe set a number value - status code ok got: ''
expected: '200'
stream/shdict.t TEST 18: safe set a number value - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: number
-value: 3.1415926
-flags: 78
'
stream/shdict.t TEST 9: get_stale (true) - Can't connect to 127.0.0.1:1984: Connection refused ==24294== Invalid read of size 4
==24294== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24294== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24294== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24294== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24294== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24294== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24294== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24294== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24294== by 0x8065F7E: main (nginx.c:382)
==24294== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24294==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 9: get_stale (true) - Can't connect to 127.0.0.1:1984: Connection refused ==24294==
==24294== Process terminating with default action of signal 11 (SIGSEGV)
==24294== Access not within mapped region at address 0x0
==24294== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24294== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24294== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24294== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24294== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24294== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24294== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24294== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24294== by 0x8065F7E: main (nginx.c:382)
==24294== If you believe this happened as a result of a stack
==24294== overflow in your program's main thread (unlikely but
==24294== possible), you can try to increase the size of the
==24294== main thread stack using the --main-stacksize= flag.
==24294== The main thread stack size used in this run was 8388608.
==24294== 2,048 bytes in 1 blocks are definitely lost in loss record 3,118 of 3,179
==24294== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24294== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24294== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24294== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24294== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24294== by 0x408A511: ir_nextk (lj_ir.c:175)
==24294== by 0x408A511: lj_ir_kint (lj_ir.c:206)
==24294== by 0x40A4F4A: crec_ct_tv (lj_crecord.c:644)
==24294== by 0x40A711A: crec_call_args (lj_crecord.c:1127)
==24294== by 0x40A711A: crec_call (lj_crecord.c:1231)
==24294== by 0x40A711A: recff_cdata_call (lj_crecord.c:1277)
==24294== by 0x40AE0BC: lj_ffrecord_func (lj_ffrecord.c:1254)
==24294== by 0x409F4CA: lj_record_ins (lj_record.c:2479)
==24294== by 0x40BB16A: trace_state (lj_trace.c:680)
==24294== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24294== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24294== by 0x407596F: lj_dispatch_call (lj_dispatch.c:488)
==24294== by 0x406904F: lj_vm_hotcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24294== by 0x407FA29: lua_resume (lj_api.c:1296)
==24294== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24294== by 0x818ED1A: ngx_stream_lua_sleep_resume (ngx_stream_lua_sleep.c:206)
==24294== by 0x818EE41: ngx_stream_lua_sleep_handler (ngx_stream_lua_sleep.c:145)
==24294== by 0x80858DB: ngx_event_expire_timers (ngx_event_timer.c:94)
==24294== by 0x80853A3: ngx_process_events_and_timers (ngx_event.c:271)
==24294== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24294== by 0x8065F7E: main (nginx.c:382)
==24294==
{
<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_sleep_resume
fun:ngx_stream_lua_sleep_handler
fun:ngx_event_expire_timers
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 9: get_stale (true) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 9: get_stale (true) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-value type: string
-value: bar
-flags: 72
-stale: true
'
stream/shdict.t TEST 9: get_stale (true) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 9: get_stale (true) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 9: get_stale (true) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-value type: string
-value: bar
-flags: 72
-stale: true
'
stream/shdict.t TEST 42: incr key with init_ttl (key exists) - Can't connect to 127.0.0.1:1984: Connection refused ==24296== Invalid read of size 4
==24296== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24296== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24296== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24296== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24296== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24296== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24296== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24296== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24296== by 0x8065F7E: main (nginx.c:382)
==24296== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24296==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 42: incr key with init_ttl (key exists) - Can't connect to 127.0.0.1:1984: Connection refused ==24296==
==24296== Process terminating with default action of signal 11 (SIGSEGV)
==24296== Access not within mapped region at address 0x0
==24296== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24296== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24296== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24296== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24296== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24296== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24296== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24296== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24296== by 0x8065F7E: main (nginx.c:382)
==24296== If you believe this happened as a result of a stack
==24296== overflow in your program's main thread (unlikely but
==24296== possible), you can try to increase the size of the
==24296== main thread stack using the --main-stacksize= flag.
==24296== The main thread stack size used in this run was 8388608.

stream/shdict.t TEST 42: incr key with init_ttl (key exists) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 42: incr key with init_ttl (key exists) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-incr: 10534 nil
-foo = 10534
-foo after incr init_ttl = 10534
'
stream/shdict.t TEST 42: incr key with init_ttl (key exists) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 42: incr key with init_ttl (key exists) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 42: incr key with init_ttl (key exists) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-incr: 10534 nil
-foo = 10534
-foo after incr init_ttl = 10534
'
stream/shdict.t TEST 49: init_ttl uses long type to avoid overflow in incr() + ttl() - Can't connect to 127.0.0.1:1984: Connection refused ==24298== Invalid read of size 4
==24298== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24298== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24298== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24298== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24298== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24298== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24298== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24298== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24298== by 0x8065F7E: main (nginx.c:382)
==24298== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24298==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 49: init_ttl uses long type to avoid overflow in incr() + ttl() - Can't connect to 127.0.0.1:1984: Connection refused ==24298==
==24298== Process terminating with default action of signal 11 (SIGSEGV)
==24298== Access not within mapped region at address 0x0
==24298== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24298== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24298== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24298== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24298== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24298== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24298== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24298== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24298== by 0x8065F7E: main (nginx.c:382)
==24298== If you believe this happened as a result of a stack
==24298== overflow in your program's main thread (unlikely but
==24298== possible), you can try to increase the size of the
==24298== main thread stack using the --main-stacksize= flag.
==24298== The main thread stack size used in this run was 8388608.

stream/shdict.t TEST 49: init_ttl uses long type to avoid overflow in incr() + ttl() - status code ok got: ''
expected: '200'
stream/shdict.t TEST 49: init_ttl uses long type to avoid overflow in incr() + ttl() - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ttl: 2147483648
'
stream/shdict.t TEST 49: init_ttl uses long type to avoid overflow in incr() + ttl() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 49: init_ttl uses long type to avoid overflow in incr() + ttl() - status code ok got: ''
expected: '200'
stream/shdict.t TEST 49: init_ttl uses long type to avoid overflow in incr() + ttl() - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ttl: 2147483648
'
stream/shdict.t TEST 27: flush_all - Can't connect to 127.0.0.1:1984: Connection refused ==24300== Invalid read of size 4
==24300== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24300== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24300== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24300== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24300== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24300== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24300== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24300== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24300== by 0x8065F7E: main (nginx.c:382)
==24300== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24300==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 27: flush_all - Can't connect to 127.0.0.1:1984: Connection refused ==24300==
==24300== Process terminating with default action of signal 11 (SIGSEGV)
==24300== Access not within mapped region at address 0x0
==24300== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24300== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24300== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24300== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24300== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24300== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24300== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24300== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24300== by 0x8065F7E: main (nginx.c:382)
==24300== If you believe this happened as a result of a stack
==24300== overflow in your program's main thread (unlikely but
==24300== possible), you can try to increase the size of the
==24300== main thread stack using the --main-stacksize= flag.
==24300== The main thread stack size used in this run was 8388608.
==24300== 1,024 bytes in 1 blocks are definitely lost in loss record 3,070 of 3,181
==24300== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24300== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24300== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24300== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24300== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24300== by 0x408A8C6: ir_nextk (lj_ir.c:175)
==24300== by 0x408A8C6: lj_ir_kgc (lj_ir.c:286)
==24300== by 0x40AC5D9: recff_type (lj_ffrecord.c:204)
==24300== by 0x40AE0BC: lj_ffrecord_func (lj_ffrecord.c:1254)
==24300== by 0x409F4CA: lj_record_ins (lj_record.c:2479)
==24300== by 0x40BB16A: trace_state (lj_trace.c:680)
==24300== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24300== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24300== by 0x407596F: lj_dispatch_call (lj_dispatch.c:488)
==24300== by 0x406904F: lj_vm_hotcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24300== by 0x407FA29: lua_resume (lj_api.c:1296)
==24300== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24300== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24300== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24300== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24300== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24300== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24300== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24300== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24300== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24300== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24300== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24300== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24300== by 0x8065F7E: main (nginx.c:382)
==24300==
{
<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:recff_type
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
}
stream/shdict.t TEST 27: flush_all - status code ok got: ''
expected: '200'
stream/shdict.t TEST 27: flush_all - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: nil
-value: nil
-flags: nil
'
stream/shdict.t TEST 27: flush_all - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 27: flush_all - status code ok got: ''
expected: '200'
stream/shdict.t TEST 27: flush_all - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: nil
-value: nil
-flags: nil
'
stream/shdict.t TEST 8: get_stale (false) - Can't connect to 127.0.0.1:1984: Connection refused ==24302== Invalid read of size 4
==24302== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24302== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24302== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24302== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24302== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24302== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24302== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24302== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24302== by 0x8065F7E: main (nginx.c:382)
==24302== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24302==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 8: get_stale (false) - Can't connect to 127.0.0.1:1984: Connection refused ==24302==
==24302== Process terminating with default action of signal 11 (SIGSEGV)
==24302== Access not within mapped region at address 0x0
==24302== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24302== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24302== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24302== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24302== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24302== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24302== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24302== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24302== by 0x8065F7E: main (nginx.c:382)
==24302== If you believe this happened as a result of a stack
==24302== overflow in your program's main thread (unlikely but
==24302== possible), you can try to increase the size of the
==24302== main thread stack using the --main-stacksize= flag.
==24302== The main thread stack size used in this run was 8388608.
==24302== 2,048 bytes in 1 blocks are definitely lost in loss record 3,119 of 3,181
==24302== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24302== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24302== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24302== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24302== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24302== by 0x408A511: ir_nextk (lj_ir.c:175)
==24302== by 0x408A511: lj_ir_kint (lj_ir.c:206)
==24302== by 0x40A4F4A: crec_ct_tv (lj_crecord.c:644)
==24302== by 0x40A711A: crec_call_args (lj_crecord.c:1127)
==24302== by 0x40A711A: crec_call (lj_crecord.c:1231)
==24302== by 0x40A711A: recff_cdata_call (lj_crecord.c:1277)
==24302== by 0x40AE0BC: lj_ffrecord_func (lj_ffrecord.c:1254)
==24302== by 0x409F4CA: lj_record_ins (lj_record.c:2479)
==24302== by 0x40BB16A: trace_state (lj_trace.c:680)
==24302== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24302== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24302== by 0x407596F: lj_dispatch_call (lj_dispatch.c:488)
==24302== by 0x406904F: lj_vm_hotcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24302== by 0x407FA29: lua_resume (lj_api.c:1296)
==24302== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24302== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24302== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24302== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24302== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24302== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24302== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24302== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24302== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24302== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24302== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24302== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24302== by 0x8065F7E: main (nginx.c:382)
==24302==
{
<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
}
stream/shdict.t TEST 8: get_stale (false) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 8: get_stale (false) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-value type: string
-value: bar
-flags: 72
-stale: false
'
stream/shdict.t TEST 8: get_stale (false) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 8: get_stale (false) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 8: get_stale (false) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-value type: string
-value: bar
-flags: 72
-stale: false
'
stream/shdict.t TEST 41: incr init_ttl argument without init - Can't connect to 127.0.0.1:1984: Connection refused ==24304== Invalid read of size 4
==24304== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24304== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24304== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24304== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24304== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24304== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24304== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24304== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24304== by 0x8065F7E: main (nginx.c:382)
==24304== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24304==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 41: incr init_ttl argument without init - Can't connect to 127.0.0.1:1984: Connection refused ==24304==
==24304== Process terminating with default action of signal 11 (SIGSEGV)
==24304== Access not within mapped region at address 0x0
==24304== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24304== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24304== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24304== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24304== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24304== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24304== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24304== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24304== by 0x8065F7E: main (nginx.c:382)
==24304== If you believe this happened as a result of a stack
==24304== overflow in your program's main thread (unlikely but
==24304== possible), you can try to increase the size of the
==24304== main thread stack using the --main-stacksize= flag.
==24304== The main thread stack size used in this run was 8388608.

stream/shdict.t TEST 41: incr init_ttl argument without init - status code ok got: ''
expected: '200'
stream/shdict.t TEST 41: incr init_ttl argument without init - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: must provide "init" when providing "init_ttl"
'
stream/shdict.t TEST 41: incr init_ttl argument without init - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 41: incr init_ttl argument without init - status code ok got: ''
expected: '200'
stream/shdict.t TEST 41: incr init_ttl argument without init - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not ok: must provide "init" when providing "init_ttl"
'
stream/shdict.t TEST 40: incr init_ttl argument is not a number - Can't connect to 127.0.0.1:1984: Connection refused ==24306== Invalid read of size 4
==24306== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24306== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24306== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24306== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24306== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24306== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24306== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24306== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24306== by 0x8065F7E: main (nginx.c:382)
==24306== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24306==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 40: incr init_ttl argument is not a number - Can't connect to 127.0.0.1:1984: Connection refused ==24306==
==24306== Process terminating with default action of signal 11 (SIGSEGV)
==24306== Access not within mapped region at address 0x0
==24306== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24306== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24306== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24306== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24306== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24306== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24306== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24306== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24306== by 0x8065F7E: main (nginx.c:382)
==24306== If you believe this happened as a result of a stack
==24306== overflow in your program's main thread (unlikely but
==24306== possible), you can try to increase the size of the
==24306== main thread stack using the --main-stacksize= flag.
==24306== The main thread stack size used in this run was 8388608.

stream/shdict.t TEST 40: incr init_ttl argument is not a number - status code ok got: ''
expected: '200'
stream/shdict.t TEST 40: incr init_ttl argument is not a number - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: bad init_ttl arg: number expected, got string
'
stream/shdict.t TEST 40: incr init_ttl argument is not a number - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 40: incr init_ttl argument is not a number - status code ok got: ''
expected: '200'
stream/shdict.t TEST 40: incr init_ttl argument is not a number - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not ok: bad init_ttl arg: number expected, got string
'
stream/shdict.t TEST 48: exptime uses long type to avoid overflow in expire() + ttl() - Can't connect to 127.0.0.1:1984: Connection refused ==24308== Invalid read of size 4
==24308== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24308== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24308== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24308== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24308== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24308== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24308== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24308== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24308== by 0x8065F7E: main (nginx.c:382)
==24308== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24308==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 48: exptime uses long type to avoid overflow in expire() + ttl() - Can't connect to 127.0.0.1:1984: Connection refused ==24308==
==24308== Process terminating with default action of signal 11 (SIGSEGV)
==24308== Access not within mapped region at address 0x0
==24308== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24308== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24308== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24308== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24308== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24308== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24308== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24308== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24308== by 0x8065F7E: main (nginx.c:382)
==24308== If you believe this happened as a result of a stack
==24308== overflow in your program's main thread (unlikely but
==24308== possible), you can try to increase the size of the
==24308== main thread stack using the --main-stacksize= flag.
==24308== The main thread stack size used in this run was 8388608.

stream/shdict.t TEST 48: exptime uses long type to avoid overflow in expire() + ttl() - status code ok got: ''
expected: '200'
stream/shdict.t TEST 48: exptime uses long type to avoid overflow in expire() + ttl() - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ttl: 2147483648
'
stream/shdict.t TEST 48: exptime uses long type to avoid overflow in expire() + ttl() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 48: exptime uses long type to avoid overflow in expire() + ttl() - status code ok got: ''
expected: '200'
stream/shdict.t TEST 48: exptime uses long type to avoid overflow in expire() + ttl() - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ttl: 2147483648
'
stream/shdict.t TEST 26: incr key - Can't connect to 127.0.0.1:1984: Connection refused ==24310== Invalid read of size 4
==24310== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24310== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24310== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24310== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24310== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24310== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24310== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24310== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24310== by 0x8065F7E: main (nginx.c:382)
==24310== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24310==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 26: incr key - Can't connect to 127.0.0.1:1984: Connection refused ==24310==
==24310== Process terminating with default action of signal 11 (SIGSEGV)
==24310== Access not within mapped region at address 0x0
==24310== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24310== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24310== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24310== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24310== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24310== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24310== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24310== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24310== by 0x8065F7E: main (nginx.c:382)
==24310== If you believe this happened as a result of a stack
==24310== overflow in your program's main thread (unlikely but
==24310== possible), you can try to increase the size of the
==24310== main thread stack using the --main-stacksize= flag.
==24310== The main thread stack size used in this run was 8388608.

stream/shdict.t TEST 26: incr key - status code ok got: ''
expected: '200'
stream/shdict.t TEST 26: incr key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to incr: nil key
'
stream/shdict.t TEST 26: incr key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 26: incr key - status code ok got: ''
expected: '200'
stream/shdict.t TEST 26: incr key - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to incr: nil key
'
stream/shdict.t TEST 15: set a number value (int) - Can't connect to 127.0.0.1:1984: Connection refused ==24312== Invalid read of size 4
==24312== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24312== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24312== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24312== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24312== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24312== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24312== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24312== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24312== by 0x8065F7E: main (nginx.c:382)
==24312== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24312==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 15: set a number value (int) - Can't connect to 127.0.0.1:1984: Connection refused ==24312==
==24312== Process terminating with default action of signal 11 (SIGSEGV)
==24312== Access not within mapped region at address 0x0
==24312== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24312== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24312== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24312== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24312== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24312== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24312== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24312== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24312== by 0x8065F7E: main (nginx.c:382)
==24312== If you believe this happened as a result of a stack
==24312== overflow in your program's main thread (unlikely but
==24312== possible), you can try to increase the size of the
==24312== main thread stack using the --main-stacksize= flag.
==24312== The main thread stack size used in this run was 8388608.
==24312== 2,048 bytes in 1 blocks are definitely lost in loss record 3,120 of 3,183
==24312== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24312== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24312== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24312== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24312== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24312== by 0x408AA0C: ir_nextk (lj_ir.c:175)
==24312== by 0x408AA0C: lj_ir_kptr_ (lj_ir.c:326)
==24312== by 0x408E504: fold_kfold_add_kgc (lj_opt_fold.c:761)
==24312== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24312== by 0x40A6029: recff_cdata_index (lj_crecord.c:839)
==24312== by 0x40AE0BC: lj_ffrecord_func (lj_ffrecord.c:1254)
==24312== by 0x409F4CA: lj_record_ins (lj_record.c:2479)
==24312== by 0x40BB16A: trace_state (lj_trace.c:680)
==24312== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24312== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24312== by 0x407596F: lj_dispatch_call (lj_dispatch.c:488)
==24312== by 0x406904F: lj_vm_hotcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24312== by 0x407FA29: lua_resume (lj_api.c:1296)
==24312== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24312== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24312== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24312== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24312== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24312== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24312== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24312== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24312== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24312== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24312== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24312== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24312== by 0x8065F7E: main (nginx.c:382)
==24312==
{
<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:fold_kfold_add_kgc
fun:lj_opt_fold
fun:recff_cdata_index
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
}
stream/shdict.t TEST 15: set a number value (int) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 15: set a number value (int) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: number
-value: 51203
-flags: nil
'
stream/shdict.t TEST 15: set a number value (int) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 15: set a number value (int) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 15: set a number value (int) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: number
-value: 51203
-flags: nil
'
stream/shdict.t TEST 35: free_space, about half full, no page left - Can't connect to 127.0.0.1:1984: Connection refused ==24314== Invalid read of size 4
==24314== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24314== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24314== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24314== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24314== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24314== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24314== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24314== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24314== by 0x8065F7E: main (nginx.c:382)
==24314== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24314==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 35: free_space, about half full, no page left - Can't connect to 127.0.0.1:1984: Connection refused ==24314==
==24314== Process terminating with default action of signal 11 (SIGSEGV)
==24314== Access not within mapped region at address 0x0
==24314== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24314== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24314== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24314== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24314== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24314== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24314== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24314== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24314== by 0x8065F7E: main (nginx.c:382)
==24314== If you believe this happened as a result of a stack
==24314== overflow in your program's main thread (unlikely but
==24314== possible), you can try to increase the size of the
==24314== main thread stack using the --main-stacksize= flag.
==24314== The main thread stack size used in this run was 8388608.
==24314== 4,096 bytes in 1 blocks are definitely lost in loss record 3,161 of 3,187
==24314== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24314== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24314== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24314== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24314== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24314== by 0x408AA0C: ir_nextk (lj_ir.c:175)
==24314== by 0x408AA0C: lj_ir_kptr_ (lj_ir.c:326)
==24314== by 0x408E504: fold_kfold_add_kgc (lj_opt_fold.c:761)
==24314== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24314== by 0x40A6029: recff_cdata_index (lj_crecord.c:839)
==24314== by 0x40AE0BC: lj_ffrecord_func (lj_ffrecord.c:1254)
==24314== by 0x409F4CA: lj_record_ins (lj_record.c:2479)
==24314== by 0x40BB16A: trace_state (lj_trace.c:680)
==24314== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24314== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24314== by 0x407596F: lj_dispatch_call (lj_dispatch.c:488)
==24314== by 0x406904F: lj_vm_hotcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24314== by 0x407FA29: lua_resume (lj_api.c:1296)
==24314== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24314== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24314== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24314== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24314== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24314== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24314== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24314== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24314== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24314== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24314== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24314== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24314== by 0x8065F7E: main (nginx.c:382)
==24314==
{
<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:fold_kfold_add_kgc
fun:lj_opt_fold
fun:recff_cdata_index
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
}
stream/shdict.t TEST 35: free_space, about half full, no page left - status code ok got: ''
expected: '200'
stream/shdict.t TEST 35: free_space, about half full, no page left - response_body_like - response is expected () ''
doesn't match '(?^s:\Afree_page_bytes type: number
free_page_bytes: (?:0|4096)
\z)'
stream/shdict.t TEST 35: free_space, about half full, no page left - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 35: free_space, about half full, no page left - status code ok got: ''
expected: '200'
stream/shdict.t TEST 35: free_space, about half full, no page left - response_body_like - response is expected () ''
doesn't match '(?^s:\Afree_page_bytes type: number
free_page_bytes: (?:0|4096)
\z)'
stream/shdict.t TEST 19: add a string value - Can't connect to 127.0.0.1:1984: Connection refused ==24316== Invalid read of size 4
==24316== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24316== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24316== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24316== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24316== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24316== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24316== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24316== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24316== by 0x8065F7E: main (nginx.c:382)
==24316== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24316==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 19: add a string value - Can't connect to 127.0.0.1:1984: Connection refused ==24316==
==24316== Process terminating with default action of signal 11 (SIGSEGV)
==24316== Access not within mapped region at address 0x0
==24316== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24316== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24316== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24316== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24316== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24316== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24316== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24316== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24316== by 0x8065F7E: main (nginx.c:382)
==24316== If you believe this happened as a result of a stack
==24316== overflow in your program's main thread (unlikely but
==24316== possible), you can try to increase the size of the
==24316== main thread stack using the --main-stacksize= flag.
==24316== The main thread stack size used in this run was 8388608.
==24316== 2,048 bytes in 1 blocks are definitely lost in loss record 3,126 of 3,190
==24316== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24316== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24316== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24316== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24316== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24316== by 0x408AA0C: ir_nextk (lj_ir.c:175)
==24316== by 0x408AA0C: lj_ir_kptr_ (lj_ir.c:326)
==24316== by 0x4099F4D: rec_mm_prep (lj_record.c:961)
==24316== by 0x409BAA4: lj_record_idx (lj_record.c:1419)
==24316== by 0x409F552: lj_record_ins (lj_record.c:2339)
==24316== by 0x40BB16A: trace_state (lj_trace.c:680)
==24316== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24316== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24316== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24316== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24316== by 0x407FA29: lua_resume (lj_api.c:1296)
==24316== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24316== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24316== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24316== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24316== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24316== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24316== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24316== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24316== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24316== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24316== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24316== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24316== by 0x8065F7E: main (nginx.c:382)
==24316==
{
<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
}
stream/shdict.t TEST 19: add a string value - status code ok got: ''
expected: '200'
stream/shdict.t TEST 19: add a string value - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: string
-value: bar
-flags: 72
'
stream/shdict.t TEST 19: add a string value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 19: add a string value - status code ok got: ''
expected: '200'
stream/shdict.t TEST 19: add a string value - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: string
-value: bar
-flags: 72
'
stream/shdict.t TEST 11: incr double - Can't connect to 127.0.0.1:1984: Connection refused ==24318== Invalid read of size 4
==24318== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24318== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24318== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24318== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24318== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24318== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24318== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24318== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24318== by 0x8065F7E: main (nginx.c:382)
==24318== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24318==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 11: incr double - Can't connect to 127.0.0.1:1984: Connection refused ==24318==
==24318== Process terminating with default action of signal 11 (SIGSEGV)
==24318== Access not within mapped region at address 0x0
==24318== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24318== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24318== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24318== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24318== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24318== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24318== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24318== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24318== by 0x8065F7E: main (nginx.c:382)
==24318== If you believe this happened as a result of a stack
==24318== overflow in your program's main thread (unlikely but
==24318== possible), you can try to increase the size of the
==24318== main thread stack using the --main-stacksize= flag.
==24318== The main thread stack size used in this run was 8388608.
==24318== 2,048 bytes in 1 blocks are definitely lost in loss record 3,118 of 3,180
==24318== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24318== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24318== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24318== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24318== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24318== by 0x408A6B5: ir_nextk64 (lj_ir.c:187)
==24318== by 0x408A6B5: lj_ir_k64 (lj_ir.c:226)
==24318== by 0x408A726: lj_ir_knum_u64 (lj_ir.c:241)
==24318== by 0x408DF64: lj_ir_knum (lj_iropt.h:63)
==24318== by 0x408DF64: fold_kfold_conv_kint_num (lj_opt_fold.c:802)
==24318== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24318== by 0x40A453C: crec_ct_ct (lj_crecord.c:465)
==24318== by 0x40A453C: crec_ct_tv (lj_crecord.c:691)
==24318== by 0x40A711A: crec_call_args (lj_crecord.c:1127)
==24318== by 0x40A711A: crec_call (lj_crecord.c:1231)
==24318== by 0x40A711A: recff_cdata_call (lj_crecord.c:1277)
==24318== by 0x40AE0BC: lj_ffrecord_func (lj_ffrecord.c:1254)
==24318== by 0x409F4CA: lj_record_ins (lj_record.c:2479)
==24318== by 0x40BB16A: trace_state (lj_trace.c:680)
==24318== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24318== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24318== by 0x407596F: lj_dispatch_call (lj_dispatch.c:488)
==24318== by 0x406904F: lj_vm_hotcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24318== by 0x407FA29: lua_resume (lj_api.c:1296)
==24318== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24318== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24318== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24318== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24318== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24318== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24318== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24318== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24318== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24318== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24318== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24318== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24318== by 0x8065F7E: main (nginx.c:382)
==24318==
{
<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_nextk64
fun:lj_ir_k64
fun:lj_ir_knum_u64
fun:lj_ir_knum
fun:fold_kfold_conv_kint_num
fun:lj_opt_fold
fun:crec_ct_ct
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
}
stream/shdict.t TEST 11: incr double - status code ok got: ''
expected: '200'
stream/shdict.t TEST 11: incr double - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-value: 371
-err: nil
'
stream/shdict.t TEST 11: incr double - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 11: incr double - status code ok got: ''
expected: '200'
stream/shdict.t TEST 11: incr double - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-value: 371
-err: nil
'
stream/shdict.t TEST 45: incr key with init and init_ttl (key expired and size matched) - Can't connect to 127.0.0.1:1984: Connection refused ==24320== Invalid read of size 4
==24320== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24320== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24320== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24320== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24320== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24320== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24320== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24320== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24320== by 0x8065F7E: main (nginx.c:382)
==24320== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24320==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 45: incr key with init and init_ttl (key expired and size matched) - Can't connect to 127.0.0.1:1984: Connection refused ==24320==
==24320== Process terminating with default action of signal 11 (SIGSEGV)
==24320== Access not within mapped region at address 0x0
==24320== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24320== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24320== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24320== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24320== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24320== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24320== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24320== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24320== by 0x8065F7E: main (nginx.c:382)
==24320== If you believe this happened as a result of a stack
==24320== overflow in your program's main thread (unlikely but
==24320== possible), you can try to increase the size of the
==24320== main thread stack using the --main-stacksize= flag.
==24320== The main thread stack size used in this run was 8388608.
==24320== 2,048 bytes in 1 blocks are definitely lost in loss record 3,148 of 3,212
==24320== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24320== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24320== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24320== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24320== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24320== by 0x408A8C6: ir_nextk (lj_ir.c:175)
==24320== by 0x408A8C6: lj_ir_kgc (lj_ir.c:286)
==24320== by 0x409C767: lj_record_mm_lookup (lj_record.c:999)
==24320== by 0x409B444: lj_record_idx (lj_record.c:1415)
==24320== by 0x409F552: lj_record_ins (lj_record.c:2339)
==24320== by 0x40BB16A: trace_state (lj_trace.c:680)
==24320== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24320== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24320== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24320== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24320== by 0x407FA29: lua_resume (lj_api.c:1296)
==24320== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24320== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24320== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24320== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24320== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24320== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24320== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24320== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24320== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24320== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24320== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24320== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24320== by 0x8065F7E: main (nginx.c:382)
==24320==
{
<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: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
}
stream/shdict.t TEST 45: incr key with init and init_ttl (key expired and size matched) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 45: incr key with init and init_ttl (key expired and size matched) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-incr: 10502 nil
-foo = 10502
-foo after init_ttl = nil
'
stream/shdict.t TEST 45: incr key with init and init_ttl (key expired and size matched) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 45: incr key with init and init_ttl (key expired and size matched) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 45: incr key with init and init_ttl (key expired and size matched) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-incr: 10502 nil
-foo = 10502
-foo after init_ttl = nil
'
stream/shdict.t TEST 38: free_space, full (100k) - Can't connect to 127.0.0.1:1984: Connection refused ==24322== Invalid read of size 4
==24322== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24322== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24322== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24322== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24322== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24322== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24322== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24322== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24322== by 0x8065F7E: main (nginx.c:382)
==24322== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24322==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 38: free_space, full (100k) - Can't connect to 127.0.0.1:1984: Connection refused ==24322==
==24322== Process terminating with default action of signal 11 (SIGSEGV)
==24322== Access not within mapped region at address 0x0
==24322== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24322== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24322== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24322== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24322== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24322== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24322== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24322== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24322== by 0x8065F7E: main (nginx.c:382)
==24322== If you believe this happened as a result of a stack
==24322== overflow in your program's main thread (unlikely but
==24322== possible), you can try to increase the size of the
==24322== main thread stack using the --main-stacksize= flag.
==24322== The main thread stack size used in this run was 8388608.
==24322== 2,048 bytes in 1 blocks are definitely lost in loss record 3,012 of 3,068
==24322== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24322== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24322== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24322== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24322== by 0x408F5A6: lj_ir_nextins (lj_iropt.h:34)
==24322== by 0x408F5A6: lj_opt_cse (lj_opt_fold.c:2549)
==24322== by 0x40A7386: crec_call_args (lj_crecord.c:1171)
==24322== by 0x40A7386: crec_call (lj_crecord.c:1231)
==24322== by 0x40A7386: recff_cdata_call (lj_crecord.c:1277)
==24322== by 0x40AE0BC: lj_ffrecord_func (lj_ffrecord.c:1254)
==24322== by 0x409F4CA: lj_record_ins (lj_record.c:2479)
==24322== by 0x40BB16A: trace_state (lj_trace.c:680)
==24322== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24322== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24322== by 0x407596F: lj_dispatch_call (lj_dispatch.c:488)
==24322== by 0x406904F: lj_vm_hotcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24322== by 0x407FA29: lua_resume (lj_api.c:1296)
==24322== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24322== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24322== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24322== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24322== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24322== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24322== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24322== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24322== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24322== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24322== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24322== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24322== by 0x8065F7E: main (nginx.c:382)
==24322==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_opt_cse
fun:crec_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
}
stream/shdict.t TEST 38: free_space, full (100k) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 38: free_space, full (100k) - response_body_like - response is expected () ''
doesn't match '(?^s:\A(?:got forcible, i=736
)?free_page_bytes type: number
free_page_bytes: (?:0|32768)
\z)'
stream/shdict.t TEST 38: free_space, full (100k) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 38: free_space, full (100k) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 38: free_space, full (100k) - response_body_like - response is expected () ''
doesn't match '(?^s:\A(?:got forcible, i=736
)?free_page_bytes type: number
free_page_bytes: (?:0|32768)
\z)'
stream/shdict.t TEST 23: set nil key - Can't connect to 127.0.0.1:1984: Connection refused ==24324== Invalid read of size 4
==24324== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24324== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24324== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24324== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24324== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24324== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24324== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24324== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24324== by 0x8065F7E: main (nginx.c:382)
==24324== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24324==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 23: set nil key - Can't connect to 127.0.0.1:1984: Connection refused ==24324==
==24324== Process terminating with default action of signal 11 (SIGSEGV)
==24324== Access not within mapped region at address 0x0
==24324== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24324== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24324== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24324== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24324== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24324== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24324== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24324== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24324== by 0x8065F7E: main (nginx.c:382)
==24324== If you believe this happened as a result of a stack
==24324== overflow in your program's main thread (unlikely but
==24324== possible), you can try to increase the size of the
==24324== main thread stack using the --main-stacksize= flag.
==24324== The main thread stack size used in this run was 8388608.

stream/shdict.t TEST 23: set nil key - status code ok got: ''
expected: '200'
stream/shdict.t TEST 23: set nil key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to set: nil key
'
stream/shdict.t TEST 23: set nil key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 23: set nil key - status code ok got: ''
expected: '200'
stream/shdict.t TEST 23: set nil key - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to set: nil key
'
stream/shdict.t TEST 10: incr int - Can't connect to 127.0.0.1:1984: Connection refused ==24326== Invalid read of size 4
==24326== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24326== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24326== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24326== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24326== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24326== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24326== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24326== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24326== by 0x8065F7E: main (nginx.c:382)
==24326== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24326==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 10: incr int - Can't connect to 127.0.0.1:1984: Connection refused ==24326==
==24326== Process terminating with default action of signal 11 (SIGSEGV)
==24326== Access not within mapped region at address 0x0
==24326== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24326== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24326== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24326== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24326== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24326== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24326== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24326== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24326== by 0x8065F7E: main (nginx.c:382)
==24326== If you believe this happened as a result of a stack
==24326== overflow in your program's main thread (unlikely but
==24326== possible), you can try to increase the size of the
==24326== main thread stack using the --main-stacksize= flag.
==24326== The main thread stack size used in this run was 8388608.
==24326== 2,048 bytes in 1 blocks are definitely lost in loss record 3,119 of 3,181
==24326== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24326== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24326== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24326== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24326== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24326== by 0x408A6B5: ir_nextk64 (lj_ir.c:187)
==24326== by 0x408A6B5: lj_ir_k64 (lj_ir.c:226)
==24326== by 0x408A726: lj_ir_knum_u64 (lj_ir.c:241)
==24326== by 0x408DF64: lj_ir_knum (lj_iropt.h:63)
==24326== by 0x408DF64: fold_kfold_conv_kint_num (lj_opt_fold.c:802)
==24326== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24326== by 0x40A453C: crec_ct_ct (lj_crecord.c:465)
==24326== by 0x40A453C: crec_ct_tv (lj_crecord.c:691)
==24326== by 0x40A711A: crec_call_args (lj_crecord.c:1127)
==24326== by 0x40A711A: crec_call (lj_crecord.c:1231)
==24326== by 0x40A711A: recff_cdata_call (lj_crecord.c:1277)
==24326== by 0x40AE0BC: lj_ffrecord_func (lj_ffrecord.c:1254)
==24326== by 0x409F4CA: lj_record_ins (lj_record.c:2479)
==24326== by 0x40BB16A: trace_state (lj_trace.c:680)
==24326== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24326== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24326== by 0x407596F: lj_dispatch_call (lj_dispatch.c:488)
==24326== by 0x406904F: lj_vm_hotcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24326== by 0x407FA29: lua_resume (lj_api.c:1296)
==24326== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24326== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24326== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24326== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24326== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24326== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24326== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24326== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24326== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24326== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24326== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24326== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24326== by 0x8065F7E: main (nginx.c:382)
==24326==
{
<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_nextk64
fun:lj_ir_k64
fun:lj_ir_knum_u64
fun:lj_ir_knum
fun:fold_kfold_conv_kint_num
fun:lj_opt_fold
fun:crec_ct_ct
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
}
stream/shdict.t TEST 10: incr int - status code ok got: ''
expected: '200'
stream/shdict.t TEST 10: incr int - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-value: 256
-err: nil
'
stream/shdict.t TEST 10: incr int - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 10: incr int - status code ok got: ''
expected: '200'
stream/shdict.t TEST 10: incr int - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-value: 256
-err: nil
'
stream/shdict.t TEST 1: get a string value - Can't connect to 127.0.0.1:1984: Connection refused ==24328== Invalid read of size 4
==24328== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24328== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24328== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24328== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24328== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24328== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24328== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24328== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24328== by 0x8065F7E: main (nginx.c:382)
==24328== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24328==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 1: get a string value - Can't connect to 127.0.0.1:1984: Connection refused ==24328==
==24328== Process terminating with default action of signal 11 (SIGSEGV)
==24328== Access not within mapped region at address 0x0
==24328== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24328== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24328== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24328== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24328== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24328== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24328== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24328== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24328== by 0x8065F7E: main (nginx.c:382)
==24328== If you believe this happened as a result of a stack
==24328== overflow in your program's main thread (unlikely but
==24328== possible), you can try to increase the size of the
==24328== main thread stack using the --main-stacksize= flag.
==24328== The main thread stack size used in this run was 8388608.
==24328== 2,048 bytes in 1 blocks are definitely lost in loss record 3,121 of 3,185
==24328== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24328== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24328== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24328== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24328== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24328== by 0x408A511: ir_nextk (lj_ir.c:175)
==24328== by 0x408A511: lj_ir_kint (lj_ir.c:206)
==24328== by 0x40A4F4A: crec_ct_tv (lj_crecord.c:644)
==24328== by 0x40A711A: crec_call_args (lj_crecord.c:1127)
==24328== by 0x40A711A: crec_call (lj_crecord.c:1231)
==24328== by 0x40A711A: recff_cdata_call (lj_crecord.c:1277)
==24328== by 0x40AE0BC: lj_ffrecord_func (lj_ffrecord.c:1254)
==24328== by 0x409F4CA: lj_record_ins (lj_record.c:2479)
==24328== by 0x40BB16A: trace_state (lj_trace.c:680)
==24328== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24328== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24328== by 0x407596F: lj_dispatch_call (lj_dispatch.c:488)
==24328== by 0x406904F: lj_vm_hotcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24328== by 0x407FA29: lua_resume (lj_api.c:1296)
==24328== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24328== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24328== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24328== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24328== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24328== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24328== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24328== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24328== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24328== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24328== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24328== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24328== by 0x8065F7E: main (nginx.c:382)
==24328==
{
<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
}
stream/shdict.t TEST 1: get a string value - status code ok got: ''
expected: '200'
stream/shdict.t TEST 1: get a string value - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: string
-value: bar
-flags: 72
'
stream/shdict.t TEST 1: get a string value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 1: get a string value - status code ok got: ''
expected: '200'
stream/shdict.t TEST 1: get a string value - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: string
-value: bar
-flags: 72
'
stream/shdict.t TEST 7: get a large string value - Can't connect to 127.0.0.1:1984: Connection refused ==24330== Invalid read of size 4
==24330== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24330== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24330== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24330== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24330== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24330== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24330== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24330== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24330== by 0x8065F7E: main (nginx.c:382)
==24330== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24330==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 7: get a large string value - Can't connect to 127.0.0.1:1984: Connection refused ==24330==
==24330== Process terminating with default action of signal 11 (SIGSEGV)
==24330== Access not within mapped region at address 0x0
==24330== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24330== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24330== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24330== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24330== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24330== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24330== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24330== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24330== by 0x8065F7E: main (nginx.c:382)
==24330== If you believe this happened as a result of a stack
==24330== overflow in your program's main thread (unlikely but
==24330== possible), you can try to increase the size of the
==24330== main thread stack using the --main-stacksize= flag.
==24330== The main thread stack size used in this run was 8388608.
==24330== 2,048 bytes in 1 blocks are definitely lost in loss record 3,119 of 3,186
==24330== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24330== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24330== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24330== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24330== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24330== by 0x408A511: ir_nextk (lj_ir.c:175)
==24330== by 0x408A511: lj_ir_kint (lj_ir.c:206)
==24330== by 0x40A4F4A: crec_ct_tv (lj_crecord.c:644)
==24330== by 0x40A711A: crec_call_args (lj_crecord.c:1127)
==24330== by 0x40A711A: crec_call (lj_crecord.c:1231)
==24330== by 0x40A711A: recff_cdata_call (lj_crecord.c:1277)
==24330== by 0x40AE0BC: lj_ffrecord_func (lj_ffrecord.c:1254)
==24330== by 0x409F4CA: lj_record_ins (lj_record.c:2479)
==24330== by 0x40BB16A: trace_state (lj_trace.c:680)
==24330== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24330== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24330== by 0x407596F: lj_dispatch_call (lj_dispatch.c:488)
==24330== by 0x406904F: lj_vm_hotcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24330== by 0x407FA29: lua_resume (lj_api.c:1296)
==24330== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24330== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24330== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24330== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24330== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24330== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24330== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24330== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24330== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24330== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24330== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24330== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24330== by 0x8065F7E: main (nginx.c:382)
==24330==
{
<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
}
stream/shdict.t TEST 7: get a large string value - status code ok got: ''
expected: '200'
stream/shdict.t TEST 7: get a large string value - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: string
-value: bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb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bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbba
-flags: 912
'
stream/shdict.t TEST 7: get a large string value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 7: get a large string value - status code ok got: ''
expected: '200'
stream/shdict.t TEST 7: get a large string value - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: string
-value: bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb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bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbba
-flags: 912
'
stream/shdict.t TEST 5: get a number value (int) - Can't connect to 127.0.0.1:1984: Connection refused ==24332== Invalid read of size 4
==24332== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24332== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24332== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24332== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24332== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24332== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24332== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24332== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24332== by 0x8065F7E: main (nginx.c:382)
==24332== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24332==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 5: get a number value (int) - Can't connect to 127.0.0.1:1984: Connection refused ==24332==
==24332== Process terminating with default action of signal 11 (SIGSEGV)
==24332== Access not within mapped region at address 0x0
==24332== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24332== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24332== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24332== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24332== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24332== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24332== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24332== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24332== by 0x8065F7E: main (nginx.c:382)
==24332== If you believe this happened as a result of a stack
==24332== overflow in your program's main thread (unlikely but
==24332== possible), you can try to increase the size of the
==24332== main thread stack using the --main-stacksize= flag.
==24332== The main thread stack size used in this run was 8388608.
==24332== 2,048 bytes in 1 blocks are definitely lost in loss record 3,008 of 3,063
==24332== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24332== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24332== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24332== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24332== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24332== by 0x408A511: ir_nextk (lj_ir.c:175)
==24332== by 0x408A511: lj_ir_kint (lj_ir.c:206)
==24332== by 0x40A4F4A: crec_ct_tv (lj_crecord.c:644)
==24332== by 0x40A711A: crec_call_args (lj_crecord.c:1127)
==24332== by 0x40A711A: crec_call (lj_crecord.c:1231)
==24332== by 0x40A711A: recff_cdata_call (lj_crecord.c:1277)
==24332== by 0x40AE0BC: lj_ffrecord_func (lj_ffrecord.c:1254)
==24332== by 0x409F4CA: lj_record_ins (lj_record.c:2479)
==24332== by 0x40BB16A: trace_state (lj_trace.c:680)
==24332== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24332== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24332== by 0x407596F: lj_dispatch_call (lj_dispatch.c:488)
==24332== by 0x406904F: lj_vm_hotcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24332== by 0x407FA29: lua_resume (lj_api.c:1296)
==24332== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24332== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24332== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24332== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24332== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24332== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24332== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24332== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24332== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24332== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24332== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24332== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24332== by 0x8065F7E: main (nginx.c:382)
==24332==
{
<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
}
stream/shdict.t TEST 5: get a number value (int) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 5: get a number value (int) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: number
-value: 51203
-flags: nil
'
stream/shdict.t TEST 5: get a number value (int) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 5: get a number value (int) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 5: get a number value (int) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: number
-value: 51203
-flags: nil
'
stream/shdict.t TEST 21: replace a string value - Can't connect to 127.0.0.1:1984: Connection refused ==24334== Invalid read of size 4
==24334== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24334== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24334== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24334== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24334== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24334== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24334== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24334== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24334== by 0x8065F7E: main (nginx.c:382)
==24334== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24334==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 21: replace a string value - Can't connect to 127.0.0.1:1984: Connection refused ==24334==
==24334== Process terminating with default action of signal 11 (SIGSEGV)
==24334== Access not within mapped region at address 0x0
==24334== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24334== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24334== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24334== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24334== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24334== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24334== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24334== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24334== by 0x8065F7E: main (nginx.c:382)
==24334== If you believe this happened as a result of a stack
==24334== overflow in your program's main thread (unlikely but
==24334== possible), you can try to increase the size of the
==24334== main thread stack using the --main-stacksize= flag.
==24334== The main thread stack size used in this run was 8388608.
==24334== 2,048 bytes in 1 blocks are definitely lost in loss record 3,124 of 3,188
==24334== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24334== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24334== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24334== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24334== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24334== by 0x408A8C6: ir_nextk (lj_ir.c:175)
==24334== by 0x408A8C6: lj_ir_kgc (lj_ir.c:286)
==24334== by 0x409C767: lj_record_mm_lookup (lj_record.c:999)
==24334== by 0x409B444: lj_record_idx (lj_record.c:1415)
==24334== by 0x409F552: lj_record_ins (lj_record.c:2339)
==24334== by 0x40BB16A: trace_state (lj_trace.c:680)
==24334== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24334== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24334== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24334== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24334== by 0x407FA29: lua_resume (lj_api.c:1296)
==24334== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24334== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24334== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24334== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24334== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24334== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24334== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24334== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24334== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24334== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24334== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24334== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24334== by 0x8065F7E: main (nginx.c:382)
==24334==
{
<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: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
}
stream/shdict.t TEST 21: replace a string value - status code ok got: ''
expected: '200'
stream/shdict.t TEST 21: replace a string value - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: string
-value: bar100
-flags: 72
'
stream/shdict.t TEST 21: replace a string value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 21: replace a string value - status code ok got: ''
expected: '200'
stream/shdict.t TEST 21: replace a string value - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: string
-value: bar100
-flags: 72
'
stream/shdict.t TEST 6: get a number value (double) - Can't connect to 127.0.0.1:1984: Connection refused ==24336== Invalid read of size 4
==24336== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24336== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24336== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24336== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24336== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24336== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24336== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24336== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24336== by 0x8065F7E: main (nginx.c:382)
==24336== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24336==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 6: get a number value (double) - Can't connect to 127.0.0.1:1984: Connection refused ==24336==
==24336== Process terminating with default action of signal 11 (SIGSEGV)
==24336== Access not within mapped region at address 0x0
==24336== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24336== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24336== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24336== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24336== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24336== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24336== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24336== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24336== by 0x8065F7E: main (nginx.c:382)
==24336== If you believe this happened as a result of a stack
==24336== overflow in your program's main thread (unlikely but
==24336== possible), you can try to increase the size of the
==24336== main thread stack using the --main-stacksize= flag.
==24336== The main thread stack size used in this run was 8388608.
==24336== 2,048 bytes in 1 blocks are definitely lost in loss record 3,134 of 3,199
==24336== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24336== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24336== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24336== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24336== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24336== by 0x408A511: ir_nextk (lj_ir.c:175)
==24336== by 0x408A511: lj_ir_kint (lj_ir.c:206)
==24336== by 0x40A4F4A: crec_ct_tv (lj_crecord.c:644)
==24336== by 0x40A711A: crec_call_args (lj_crecord.c:1127)
==24336== by 0x40A711A: crec_call (lj_crecord.c:1231)
==24336== by 0x40A711A: recff_cdata_call (lj_crecord.c:1277)
==24336== by 0x40AE0BC: lj_ffrecord_func (lj_ffrecord.c:1254)
==24336== by 0x409F4CA: lj_record_ins (lj_record.c:2479)
==24336== by 0x40BB16A: trace_state (lj_trace.c:680)
==24336== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24336== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24336== by 0x407596F: lj_dispatch_call (lj_dispatch.c:488)
==24336== by 0x406904F: lj_vm_hotcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24336== by 0x407FA29: lua_resume (lj_api.c:1296)
==24336== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24336== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24336== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24336== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24336== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24336== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24336== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24336== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24336== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24336== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24336== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24336== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24336== by 0x8065F7E: main (nginx.c:382)
==24336==
{
<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
}
stream/shdict.t TEST 6: get a number value (double) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 6: get a number value (double) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: number
-value: 3.1415926
-flags: 78
'
stream/shdict.t TEST 6: get a number value (double) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 6: get a number value (double) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 6: get a number value (double) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: number
-value: 3.1415926
-flags: 78
'
stream/shdict.t TEST 4: get a boolean value (false) - Can't connect to 127.0.0.1:1984: Connection refused ==24338== Invalid read of size 4
==24338== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24338== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24338== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24338== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24338== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24338== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24338== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24338== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24338== by 0x8065F7E: main (nginx.c:382)
==24338== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24338==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 4: get a boolean value (false) - Can't connect to 127.0.0.1:1984: Connection refused ==24338==
==24338== Process terminating with default action of signal 11 (SIGSEGV)
==24338== Access not within mapped region at address 0x0
==24338== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24338== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24338== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24338== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24338== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24338== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24338== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24338== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24338== by 0x8065F7E: main (nginx.c:382)
==24338== If you believe this happened as a result of a stack
==24338== overflow in your program's main thread (unlikely but
==24338== possible), you can try to increase the size of the
==24338== main thread stack using the --main-stacksize= flag.
==24338== The main thread stack size used in this run was 8388608.
==24338== 2,048 bytes in 1 blocks are definitely lost in loss record 3,109 of 3,171
==24338== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24338== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24338== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24338== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24338== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24338== by 0x408A511: ir_nextk (lj_ir.c:175)
==24338== by 0x408A511: lj_ir_kint (lj_ir.c:206)
==24338== by 0x40A4F4A: crec_ct_tv (lj_crecord.c:644)
==24338== by 0x40A711A: crec_call_args (lj_crecord.c:1127)
==24338== by 0x40A711A: crec_call (lj_crecord.c:1231)
==24338== by 0x40A711A: recff_cdata_call (lj_crecord.c:1277)
==24338== by 0x40AE0BC: lj_ffrecord_func (lj_ffrecord.c:1254)
==24338== by 0x409F4CA: lj_record_ins (lj_record.c:2479)
==24338== by 0x40BB16A: trace_state (lj_trace.c:680)
==24338== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24338== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24338== by 0x407596F: lj_dispatch_call (lj_dispatch.c:488)
==24338== by 0x406904F: lj_vm_hotcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24338== by 0x407FA29: lua_resume (lj_api.c:1296)
==24338== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24338== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24338== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24338== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24338== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24338== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24338== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24338== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24338== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24338== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24338== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24338== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24338== by 0x8065F7E: main (nginx.c:382)
==24338==
{
<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
}
stream/shdict.t TEST 4: get a boolean value (false) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 4: get a boolean value (false) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: boolean
-value: false
-flags: 777
'
stream/shdict.t TEST 4: get a boolean value (false) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 4: get a boolean value (false) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 4: get a boolean value (false) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: boolean
-value: false
-flags: 777
'
stream/shdict.t TEST 47: exptime uses long type to avoid overflow in set() + ttl() - Can't connect to 127.0.0.1:1984: Connection refused ==24340== Invalid read of size 4
==24340== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24340== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24340== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24340== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24340== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24340== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24340== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24340== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24340== by 0x8065F7E: main (nginx.c:382)
==24340== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24340==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 47: exptime uses long type to avoid overflow in set() + ttl() - Can't connect to 127.0.0.1:1984: Connection refused ==24340==
==24340== Process terminating with default action of signal 11 (SIGSEGV)
==24340== Access not within mapped region at address 0x0
==24340== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24340== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24340== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24340== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24340== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24340== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24340== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24340== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24340== by 0x8065F7E: main (nginx.c:382)
==24340== If you believe this happened as a result of a stack
==24340== overflow in your program's main thread (unlikely but
==24340== possible), you can try to increase the size of the
==24340== main thread stack using the --main-stacksize= flag.
==24340== The main thread stack size used in this run was 8388608.

stream/shdict.t TEST 47: exptime uses long type to avoid overflow in set() + ttl() - status code ok got: ''
expected: '200'
stream/shdict.t TEST 47: exptime uses long type to avoid overflow in set() + ttl() - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ttl: 2147483648
'
stream/shdict.t TEST 47: exptime uses long type to avoid overflow in set() + ttl() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 47: exptime uses long type to avoid overflow in set() + ttl() - status code ok got: ''
expected: '200'
stream/shdict.t TEST 47: exptime uses long type to avoid overflow in set() + ttl() - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ttl: 2147483648
'
stream/shdict.t TEST 17: set a number value and a nil - Can't connect to 127.0.0.1:1984: Connection refused ==24342== Invalid read of size 4
==24342== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24342== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24342== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24342== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24342== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24342== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24342== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24342== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24342== by 0x8065F7E: main (nginx.c:382)
==24342== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24342==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 17: set a number value and a nil - Can't connect to 127.0.0.1:1984: Connection refused ==24342==
==24342== Process terminating with default action of signal 11 (SIGSEGV)
==24342== Access not within mapped region at address 0x0
==24342== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24342== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24342== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24342== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24342== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24342== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24342== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24342== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24342== by 0x8065F7E: main (nginx.c:382)
==24342== If you believe this happened as a result of a stack
==24342== overflow in your program's main thread (unlikely but
==24342== possible), you can try to increase the size of the
==24342== main thread stack using the --main-stacksize= flag.
==24342== The main thread stack size used in this run was 8388608.
==24342== 2,048 bytes in 1 blocks are definitely lost in loss record 3,122 of 3,186
==24342== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24342== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24342== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24342== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24342== by 0x408A321: lj_ir_nextins (lj_iropt.h:34)
==24342== by 0x408A321: lj_ir_emit (lj_ir.c:118)
==24342== by 0x4093C52: loop_unroll (lj_opt_loop.c:285)
==24342== by 0x4093C52: cploop_opt (lj_opt_loop.c:409)
==24342== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24342== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24342== by 0x40BB675: trace_state (lj_trace.c:690)
==24342== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24342== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24342== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24342== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24342== by 0x407FA29: lua_resume (lj_api.c:1296)
==24342== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24342== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24342== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24342== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24342== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24342== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24342== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24342== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24342== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24342== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24342== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24342== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24342== by 0x8065F7E: main (nginx.c:382)
==24342==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_ir_emit
fun:loop_unroll
fun:cploop_opt
fun:lj_vm_cpcall
fun:lj_opt_loop
fun:trace_state
fun:lj_vm_cpcall
fun:lj_trace_ins
fun:lj_dispatch_ins
fun:lj_vm_inshook
fun:lua_resume
fun:ngx_stream_lua_run_thread
fun:ngx_stream_lua_content_by_chunk
fun:ngx_stream_lua_content_handler_inline
fun:ngx_stream_lua_content_handler
fun:ngx_stream_core_content_phase
fun:ngx_stream_core_run_phases
fun:ngx_stream_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
}
stream/shdict.t TEST 17: set a number value and a nil - status code ok got: ''
expected: '200'
stream/shdict.t TEST 17: set a number value and a nil - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: nil
-value: nil
-flags: nil
'
stream/shdict.t TEST 17: set a number value and a nil - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 17: set a number value and a nil - status code ok got: ''
expected: '200'
stream/shdict.t TEST 17: set a number value and a nil - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: nil
-value: nil
-flags: nil
'
stream/shdict.t TEST 32: free_space, empty (16k zone) - Can't connect to 127.0.0.1:1984: Connection refused ==24344== Invalid read of size 4
==24344== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24344== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24344== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24344== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24344== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24344== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24344== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24344== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24344== by 0x8065F7E: main (nginx.c:382)
==24344== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24344==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 32: free_space, empty (16k zone) - Can't connect to 127.0.0.1:1984: Connection refused ==24344==
==24344== Process terminating with default action of signal 11 (SIGSEGV)
==24344== Access not within mapped region at address 0x0
==24344== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24344== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24344== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24344== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24344== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24344== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24344== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24344== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24344== by 0x8065F7E: main (nginx.c:382)
==24344== If you believe this happened as a result of a stack
==24344== overflow in your program's main thread (unlikely but
==24344== possible), you can try to increase the size of the
==24344== main thread stack using the --main-stacksize= flag.
==24344== The main thread stack size used in this run was 8388608.

stream/shdict.t TEST 32: free_space, empty (16k zone) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 32: free_space, empty (16k zone) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-free_page_bytes type: number
-free_page_bytes: 4096
'
stream/shdict.t TEST 32: free_space, empty (16k zone) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 32: free_space, empty (16k zone) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 32: free_space, empty (16k zone) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-free_page_bytes type: number
-free_page_bytes: 4096
'
stream/shdict.t TEST 34: free_space, about half full, one page left - Can't connect to 127.0.0.1:1984: Connection refused ==24346== Invalid read of size 4
==24346== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24346== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24346== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24346== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24346== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24346== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24346== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24346== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24346== by 0x8065F7E: main (nginx.c:382)
==24346== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24346==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 34: free_space, about half full, one page left - Can't connect to 127.0.0.1:1984: Connection refused ==24346==
==24346== Process terminating with default action of signal 11 (SIGSEGV)
==24346== Access not within mapped region at address 0x0
==24346== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24346== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24346== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24346== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24346== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24346== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24346== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24346== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24346== by 0x8065F7E: main (nginx.c:382)
==24346== If you believe this happened as a result of a stack
==24346== overflow in your program's main thread (unlikely but
==24346== possible), you can try to increase the size of the
==24346== main thread stack using the --main-stacksize= flag.
==24346== The main thread stack size used in this run was 8388608.
==24346== 2,048 bytes in 1 blocks are definitely lost in loss record 3,139 of 3,203
==24346== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24346== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24346== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24346== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24346== by 0x408F5A6: lj_ir_nextins (lj_iropt.h:34)
==24346== by 0x408F5A6: lj_opt_cse (lj_opt_fold.c:2549)
==24346== by 0x40A7386: crec_call_args (lj_crecord.c:1171)
==24346== by 0x40A7386: crec_call (lj_crecord.c:1231)
==24346== by 0x40A7386: recff_cdata_call (lj_crecord.c:1277)
==24346== by 0x40AE0BC: lj_ffrecord_func (lj_ffrecord.c:1254)
==24346== by 0x409F4CA: lj_record_ins (lj_record.c:2479)
==24346== by 0x40BB16A: trace_state (lj_trace.c:680)
==24346== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24346== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24346== by 0x407596F: lj_dispatch_call (lj_dispatch.c:488)
==24346== by 0x406904F: lj_vm_hotcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24346== by 0x407FA29: lua_resume (lj_api.c:1296)
==24346== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24346== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24346== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24346== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24346== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24346== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24346== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24346== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24346== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24346== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24346== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24346== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24346== by 0x8065F7E: main (nginx.c:382)
==24346==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_opt_cse
fun:crec_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
}
stream/shdict.t TEST 34: free_space, about half full, one page left - status code ok got: ''
expected: '200'
stream/shdict.t TEST 34: free_space, about half full, one page left - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-free_page_bytes type: number
-free_page_bytes: 4096
'
stream/shdict.t TEST 34: free_space, about half full, one page left - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 34: free_space, about half full, one page left - status code ok got: ''
expected: '200'
stream/shdict.t TEST 34: free_space, about half full, one page left - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-free_page_bytes type: number
-free_page_bytes: 4096
'
stream/shdict.t TEST 24: get nil key - Can't connect to 127.0.0.1:1984: Connection refused ==24348== Invalid read of size 4
==24348== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24348== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24348== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24348== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24348== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24348== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24348== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24348== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24348== by 0x8065F7E: main (nginx.c:382)
==24348== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24348==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 24: get nil key - Can't connect to 127.0.0.1:1984: Connection refused ==24348==
==24348== Process terminating with default action of signal 11 (SIGSEGV)
==24348== Access not within mapped region at address 0x0
==24348== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24348== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24348== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24348== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24348== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24348== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24348== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24348== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24348== by 0x8065F7E: main (nginx.c:382)
==24348== If you believe this happened as a result of a stack
==24348== overflow in your program's main thread (unlikely but
==24348== possible), you can try to increase the size of the
==24348== main thread stack using the --main-stacksize= flag.
==24348== The main thread stack size used in this run was 8388608.

stream/shdict.t TEST 24: get nil key - status code ok got: ''
expected: '200'
stream/shdict.t TEST 24: get nil key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to get: nil key
'
stream/shdict.t TEST 24: get nil key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 24: get nil key - status code ok got: ''
expected: '200'
stream/shdict.t TEST 24: get nil key - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to get: nil key
'
stream/shdict.t TEST 33: free_space, empty (100k zone) - Can't connect to 127.0.0.1:1984: Connection refused ==24350== Invalid read of size 4
==24350== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24350== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24350== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24350== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24350== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24350== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24350== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24350== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24350== by 0x8065F7E: main (nginx.c:382)
==24350== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24350==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 33: free_space, empty (100k zone) - Can't connect to 127.0.0.1:1984: Connection refused ==24350==
==24350== Process terminating with default action of signal 11 (SIGSEGV)
==24350== Access not within mapped region at address 0x0
==24350== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24350== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24350== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24350== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24350== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24350== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24350== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24350== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24350== by 0x8065F7E: main (nginx.c:382)
==24350== If you believe this happened as a result of a stack
==24350== overflow in your program's main thread (unlikely but
==24350== possible), you can try to increase the size of the
==24350== main thread stack using the --main-stacksize= flag.
==24350== The main thread stack size used in this run was 8388608.

stream/shdict.t TEST 33: free_space, empty (100k zone) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 33: free_space, empty (100k zone) - response_body_like - response is expected () ''
doesn't match '(?^s:\Afree_page_bytes type: number
free_page_bytes: (?:90112|94208)
\z)'
stream/shdict.t TEST 33: free_space, empty (100k zone) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 33: free_space, empty (100k zone) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 33: free_space, empty (100k zone) - response_body_like - response is expected () ''
doesn't match '(?^s:\Afree_page_bytes type: number
free_page_bytes: (?:90112|94208)
\z)'
stream/shdict.t TEST 13: set a boolean value (true) - Can't connect to 127.0.0.1:1984: Connection refused ==24352== Invalid read of size 4
==24352== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24352== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24352== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24352== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24352== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24352== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24352== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24352== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24352== by 0x8065F7E: main (nginx.c:382)
==24352== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24352==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 13: set a boolean value (true) - Can't connect to 127.0.0.1:1984: Connection refused ==24352==
==24352== Process terminating with default action of signal 11 (SIGSEGV)
==24352== Access not within mapped region at address 0x0
==24352== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24352== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24352== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24352== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24352== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24352== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24352== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24352== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24352== by 0x8065F7E: main (nginx.c:382)
==24352== If you believe this happened as a result of a stack
==24352== overflow in your program's main thread (unlikely but
==24352== possible), you can try to increase the size of the
==24352== main thread stack using the --main-stacksize= flag.
==24352== The main thread stack size used in this run was 8388608.
==24352== 2,048 bytes in 1 blocks are definitely lost in loss record 3,110 of 3,171
==24352== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24352== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24352== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24352== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24352== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24352== by 0x408A511: ir_nextk (lj_ir.c:175)
==24352== by 0x408A511: lj_ir_kint (lj_ir.c:206)
==24352== by 0x40A5FEB: recff_cdata_index (lj_crecord.c:838)
==24352== by 0x40AE0BC: lj_ffrecord_func (lj_ffrecord.c:1254)
==24352== by 0x409F4CA: lj_record_ins (lj_record.c:2479)
==24352== by 0x40BB16A: trace_state (lj_trace.c:680)
==24352== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24352== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24352== by 0x407596F: lj_dispatch_call (lj_dispatch.c:488)
==24352== by 0x406904F: lj_vm_hotcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24352== by 0x407FA29: lua_resume (lj_api.c:1296)
==24352== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24352== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24352== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24352== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24352== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24352== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24352== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24352== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24352== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24352== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24352== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24352== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24352== by 0x8065F7E: main (nginx.c:382)
==24352==
{
<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:recff_cdata_index
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
}
stream/shdict.t TEST 13: set a boolean value (true) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 13: set a boolean value (true) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: boolean
-value: true
-flags: 5678
'
stream/shdict.t TEST 13: set a boolean value (true) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 13: set a boolean value (true) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 13: set a boolean value (true) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: boolean
-value: true
-flags: 5678
'
stream/shdict.t TEST 37: free_space, got forcible - Can't connect to 127.0.0.1:1984: Connection refused ==24354== Invalid read of size 4
==24354== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24354== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24354== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24354== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24354== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24354== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24354== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24354== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24354== by 0x8065F7E: main (nginx.c:382)
==24354== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24354==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 37: free_space, got forcible - Can't connect to 127.0.0.1:1984: Connection refused ==24354==
==24354== Process terminating with default action of signal 11 (SIGSEGV)
==24354== Access not within mapped region at address 0x0
==24354== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24354== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24354== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24354== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24354== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24354== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24354== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24354== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24354== by 0x8065F7E: main (nginx.c:382)
==24354== If you believe this happened as a result of a stack
==24354== overflow in your program's main thread (unlikely but
==24354== possible), you can try to increase the size of the
==24354== main thread stack using the --main-stacksize= flag.
==24354== The main thread stack size used in this run was 8388608.
==24354== 4,096 bytes in 1 blocks are definitely lost in loss record 3,169 of 3,194
==24354== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24354== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24354== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24354== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24354== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24354== by 0x408AA0C: ir_nextk (lj_ir.c:175)
==24354== by 0x408AA0C: lj_ir_kptr_ (lj_ir.c:326)
==24354== by 0x408E504: fold_kfold_add_kgc (lj_opt_fold.c:761)
==24354== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24354== by 0x40A6029: recff_cdata_index (lj_crecord.c:839)
==24354== by 0x40AE0BC: lj_ffrecord_func (lj_ffrecord.c:1254)
==24354== by 0x409F4CA: lj_record_ins (lj_record.c:2479)
==24354== by 0x40BB16A: trace_state (lj_trace.c:680)
==24354== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24354== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24354== by 0x407596F: lj_dispatch_call (lj_dispatch.c:488)
==24354== by 0x406904F: lj_vm_hotcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24354== by 0x407FA29: lua_resume (lj_api.c:1296)
==24354== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24354== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24354== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24354== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24354== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24354== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24354== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24354== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24354== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24354== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24354== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24354== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24354== by 0x8065F7E: main (nginx.c:382)
==24354==
{
<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:fold_kfold_add_kgc
fun:lj_opt_fold
fun:recff_cdata_index
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
}
stream/shdict.t TEST 37: free_space, got forcible - status code ok got: ''
expected: '200'
stream/shdict.t TEST 37: free_space, got forcible - response_body_like - response is expected () ''
doesn't match '(?^s:\A(?:got forcible, i=64
)?free_page_bytes type: number
free_page_bytes: 0
\z)'
stream/shdict.t TEST 37: free_space, got forcible - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 37: free_space, got forcible - status code ok got: ''
expected: '200'
stream/shdict.t TEST 37: free_space, got forcible - response_body_like - response is expected () ''
doesn't match '(?^s:\A(?:got forcible, i=64
)?free_page_bytes type: number
free_page_bytes: 0
\z)'
stream/shdict.t TEST 43: incr key with init and init_ttl (key not exists) - Can't connect to 127.0.0.1:1984: Connection refused ==24356== Invalid read of size 4
==24356== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24356== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24356== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24356== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24356== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24356== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24356== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24356== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24356== by 0x8065F7E: main (nginx.c:382)
==24356== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24356==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 43: incr key with init and init_ttl (key not exists) - Can't connect to 127.0.0.1:1984: Connection refused ==24356==
==24356== Process terminating with default action of signal 11 (SIGSEGV)
==24356== Access not within mapped region at address 0x0
==24356== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24356== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24356== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24356== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24356== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24356== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24356== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24356== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24356== by 0x8065F7E: main (nginx.c:382)
==24356== If you believe this happened as a result of a stack
==24356== overflow in your program's main thread (unlikely but
==24356== possible), you can try to increase the size of the
==24356== main thread stack using the --main-stacksize= flag.
==24356== The main thread stack size used in this run was 8388608.

stream/shdict.t TEST 43: incr key with init and init_ttl (key not exists) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 43: incr key with init and init_ttl (key not exists) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-incr: 10503 nil
-foo = 10503
-foo after init_ttl = nil
'
stream/shdict.t TEST 43: incr key with init and init_ttl (key not exists) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 43: incr key with init and init_ttl (key not exists) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 43: incr key with init and init_ttl (key not exists) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-incr: 10503 nil
-foo = 10503
-foo after init_ttl = nil
'
stream/shdict.t TEST 46: incr key with init and init_ttl (forcibly override other valid entries) - Can't connect to 127.0.0.1:1984: Connection refused ==24358== Invalid read of size 4
==24358== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24358== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24358== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24358== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24358== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24358== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24358== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24358== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24358== by 0x8065F7E: main (nginx.c:382)
==24358== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24358==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 46: incr key with init and init_ttl (forcibly override other valid entries) - Can't connect to 127.0.0.1:1984: Connection refused ==24358==
==24358== Process terminating with default action of signal 11 (SIGSEGV)
==24358== Access not within mapped region at address 0x0
==24358== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24358== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24358== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24358== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24358== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24358== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24358== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24358== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24358== by 0x8065F7E: main (nginx.c:382)
==24358== If you believe this happened as a result of a stack
==24358== overflow in your program's main thread (unlikely but
==24358== possible), you can try to increase the size of the
==24358== main thread stack using the --main-stacksize= flag.
==24358== The main thread stack size used in this run was 8388608.
==24358== 2,048 bytes in 1 blocks are definitely lost in loss record 3,121 of 3,186
==24358== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24358== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24358== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24358== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24358== by 0x408F5A6: lj_ir_nextins (lj_iropt.h:34)
==24358== by 0x408F5A6: lj_opt_cse (lj_opt_fold.c:2549)
==24358== by 0x4093E81: loop_unroll (lj_opt_loop.c:329)
==24358== by 0x4093E81: cploop_opt (lj_opt_loop.c:409)
==24358== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24358== by 0x4094781: lj_opt_loop (lj_opt_loop.c:424)
==24358== by 0x40BB675: trace_state (lj_trace.c:690)
==24358== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24358== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24358== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24358== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24358== by 0x407FA29: lua_resume (lj_api.c:1296)
==24358== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24358== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24358== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24358== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24358== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24358== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24358== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24358== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24358== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24358== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24358== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24358== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24358== by 0x8065F7E: main (nginx.c:382)
==24358==
{
<insert_a_suppression_name_here>
Memcheck: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
}
stream/shdict.t TEST 46: incr key with init and init_ttl (forcibly override other valid entries) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 46: incr key with init and init_ttl (forcibly override other valid entries) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-incr: 10502 nil false
-incr: 10502 nil true
-foo = 10502
-foo after init_ttl = nil
'
stream/shdict.t TEST 46: incr key with init and init_ttl (forcibly override other valid entries) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 46: incr key with init and init_ttl (forcibly override other valid entries) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 46: incr key with init and init_ttl (forcibly override other valid entries) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +0,0 @@
-incr: 10502 nil false
-incr: 10502 nil true
-foo = 10502
-foo after init_ttl = nil
'
stream/shdict.t TEST 22: set a number value and delete - Can't connect to 127.0.0.1:1984: Connection refused ==24360== Invalid read of size 4
==24360== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24360== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24360== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24360== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24360== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24360== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24360== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24360== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24360== by 0x8065F7E: main (nginx.c:382)
==24360== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24360==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 22: set a number value and delete - Can't connect to 127.0.0.1:1984: Connection refused ==24360==
==24360== Process terminating with default action of signal 11 (SIGSEGV)
==24360== Access not within mapped region at address 0x0
==24360== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24360== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24360== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24360== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24360== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24360== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24360== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24360== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24360== by 0x8065F7E: main (nginx.c:382)
==24360== If you believe this happened as a result of a stack
==24360== overflow in your program's main thread (unlikely but
==24360== possible), you can try to increase the size of the
==24360== main thread stack using the --main-stacksize= flag.
==24360== The main thread stack size used in this run was 8388608.
==24360== 2,048 bytes in 1 blocks are definitely lost in loss record 3,119 of 3,183
==24360== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24360== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24360== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24360== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24360== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24360== by 0x408AA0C: ir_nextk (lj_ir.c:175)
==24360== by 0x408AA0C: lj_ir_kptr_ (lj_ir.c:326)
==24360== by 0x408E504: fold_kfold_add_kgc (lj_opt_fold.c:761)
==24360== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24360== by 0x40A6029: recff_cdata_index (lj_crecord.c:839)
==24360== by 0x40AE0BC: lj_ffrecord_func (lj_ffrecord.c:1254)
==24360== by 0x409F4CA: lj_record_ins (lj_record.c:2479)
==24360== by 0x40BB16A: trace_state (lj_trace.c:680)
==24360== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24360== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24360== by 0x407596F: lj_dispatch_call (lj_dispatch.c:488)
==24360== by 0x406904F: lj_vm_hotcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24360== by 0x407FA29: lua_resume (lj_api.c:1296)
==24360== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24360== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24360== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24360== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24360== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24360== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24360== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24360== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24360== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24360== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24360== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24360== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24360== by 0x8065F7E: main (nginx.c:382)
==24360==
{
<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:fold_kfold_add_kgc
fun:lj_opt_fold
fun:recff_cdata_index
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
}
stream/shdict.t TEST 22: set a number value and delete - status code ok got: ''
expected: '200'
stream/shdict.t TEST 22: set a number value and delete - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: nil
-value: nil
-flags: nil
'
stream/shdict.t TEST 22: set a number value and delete - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 22: set a number value and delete - status code ok got: ''
expected: '200'
stream/shdict.t TEST 22: set a number value and delete - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: nil
-value: nil
-flags: nil
'
stream/shdict.t TEST 29: incr with init - Can't connect to 127.0.0.1:1984: Connection refused ==24362== Invalid read of size 4
==24362== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24362== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24362== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24362== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24362== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24362== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24362== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24362== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24362== by 0x8065F7E: main (nginx.c:382)
==24362== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24362==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 29: incr with init - Can't connect to 127.0.0.1:1984: Connection refused ==24362==
==24362== Process terminating with default action of signal 11 (SIGSEGV)
==24362== Access not within mapped region at address 0x0
==24362== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24362== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24362== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24362== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24362== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24362== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24362== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24362== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24362== by 0x8065F7E: main (nginx.c:382)
==24362== If you believe this happened as a result of a stack
==24362== overflow in your program's main thread (unlikely but
==24362== possible), you can try to increase the size of the
==24362== main thread stack using the --main-stacksize= flag.
==24362== The main thread stack size used in this run was 8388608.

stream/shdict.t TEST 29: incr with init - status code ok got: ''
expected: '200'
stream/shdict.t TEST 29: incr with init - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-failed to incr: not found
-incr ok, value: 20, forcible: false
'
stream/shdict.t TEST 29: incr with init - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 29: incr with init - status code ok got: ''
expected: '200'
stream/shdict.t TEST 29: incr with init - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-failed to incr: not found
-incr ok, value: 20, forcible: false
'
stream/shdict.t TEST 14: set a boolean value (false) - Can't connect to 127.0.0.1:1984: Connection refused ==24364== Invalid read of size 4
==24364== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24364== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24364== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24364== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24364== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24364== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24364== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24364== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24364== by 0x8065F7E: main (nginx.c:382)
==24364== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24364==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 14: set a boolean value (false) - Can't connect to 127.0.0.1:1984: Connection refused ==24364==
==24364== Process terminating with default action of signal 11 (SIGSEGV)
==24364== Access not within mapped region at address 0x0
==24364== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24364== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24364== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24364== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24364== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24364== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24364== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24364== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24364== by 0x8065F7E: main (nginx.c:382)
==24364== If you believe this happened as a result of a stack
==24364== overflow in your program's main thread (unlikely but
==24364== possible), you can try to increase the size of the
==24364== main thread stack using the --main-stacksize= flag.
==24364== The main thread stack size used in this run was 8388608.
==24364== 2,048 bytes in 1 blocks are definitely lost in loss record 3,120 of 3,183
==24364== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24364== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24364== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24364== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24364== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24364== by 0x408A511: ir_nextk (lj_ir.c:175)
==24364== by 0x408A511: lj_ir_kint (lj_ir.c:206)
==24364== by 0x40A5FEB: recff_cdata_index (lj_crecord.c:838)
==24364== by 0x40AE0BC: lj_ffrecord_func (lj_ffrecord.c:1254)
==24364== by 0x409F4CA: lj_record_ins (lj_record.c:2479)
==24364== by 0x40BB16A: trace_state (lj_trace.c:680)
==24364== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24364== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24364== by 0x407596F: lj_dispatch_call (lj_dispatch.c:488)
==24364== by 0x406904F: lj_vm_hotcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24364== by 0x407FA29: lua_resume (lj_api.c:1296)
==24364== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24364== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24364== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24364== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24364== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24364== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24364== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24364== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24364== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24364== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24364== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24364== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24364== by 0x8065F7E: main (nginx.c:382)
==24364==
{
<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:recff_cdata_index
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
}
stream/shdict.t TEST 14: set a boolean value (false) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 14: set a boolean value (false) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: boolean
-value: false
-flags: 777
'
stream/shdict.t TEST 14: set a boolean value (false) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 14: set a boolean value (false) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 14: set a boolean value (false) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: boolean
-value: false
-flags: 777
'
stream/shdict.t TEST 3: get a boolean value (true) - Can't connect to 127.0.0.1:1984: Connection refused ==24366== Invalid read of size 4
==24366== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24366== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24366== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24366== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24366== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24366== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24366== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24366== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24366== by 0x8065F7E: main (nginx.c:382)
==24366== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24366==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 3: get a boolean value (true) - Can't connect to 127.0.0.1:1984: Connection refused ==24366==
==24366== Process terminating with default action of signal 11 (SIGSEGV)
==24366== Access not within mapped region at address 0x0
==24366== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24366== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24366== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24366== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24366== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24366== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24366== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24366== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24366== by 0x8065F7E: main (nginx.c:382)
==24366== If you believe this happened as a result of a stack
==24366== overflow in your program's main thread (unlikely but
==24366== possible), you can try to increase the size of the
==24366== main thread stack using the --main-stacksize= flag.
==24366== The main thread stack size used in this run was 8388608.
==24366== 2,048 bytes in 1 blocks are definitely lost in loss record 3,133 of 3,198
==24366== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24366== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24366== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24366== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24366== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24366== by 0x408A511: ir_nextk (lj_ir.c:175)
==24366== by 0x408A511: lj_ir_kint (lj_ir.c:206)
==24366== by 0x40A4F4A: crec_ct_tv (lj_crecord.c:644)
==24366== by 0x40A711A: crec_call_args (lj_crecord.c:1127)
==24366== by 0x40A711A: crec_call (lj_crecord.c:1231)
==24366== by 0x40A711A: recff_cdata_call (lj_crecord.c:1277)
==24366== by 0x40AE0BC: lj_ffrecord_func (lj_ffrecord.c:1254)
==24366== by 0x409F4CA: lj_record_ins (lj_record.c:2479)
==24366== by 0x40BB16A: trace_state (lj_trace.c:680)
==24366== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24366== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24366== by 0x407596F: lj_dispatch_call (lj_dispatch.c:488)
==24366== by 0x406904F: lj_vm_hotcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24366== by 0x407FA29: lua_resume (lj_api.c:1296)
==24366== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24366== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24366== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24366== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24366== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24366== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24366== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24366== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24366== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24366== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24366== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24366== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24366== by 0x8065F7E: main (nginx.c:382)
==24366==
{
<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
}
stream/shdict.t TEST 3: get a boolean value (true) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 3: get a boolean value (true) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: boolean
-value: true
-flags: 5678
'
stream/shdict.t TEST 3: get a boolean value (true) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 3: get a boolean value (true) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 3: get a boolean value (true) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: boolean
-value: true
-flags: 5678
'
stream/shdict.t TEST 39: incr bad init_ttl argument - Can't connect to 127.0.0.1:1984: Connection refused ==24368== Invalid read of size 4
==24368== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24368== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24368== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24368== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24368== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24368== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24368== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24368== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24368== by 0x8065F7E: main (nginx.c:382)
==24368== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24368==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 39: incr bad init_ttl argument - Can't connect to 127.0.0.1:1984: Connection refused ==24368==
==24368== Process terminating with default action of signal 11 (SIGSEGV)
==24368== Access not within mapped region at address 0x0
==24368== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24368== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24368== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24368== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24368== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24368== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24368== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24368== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24368== by 0x8065F7E: main (nginx.c:382)
==24368== If you believe this happened as a result of a stack
==24368== overflow in your program's main thread (unlikely but
==24368== possible), you can try to increase the size of the
==24368== main thread stack using the --main-stacksize= flag.
==24368== The main thread stack size used in this run was 8388608.

stream/shdict.t TEST 39: incr bad init_ttl argument - status code ok got: ''
expected: '200'
stream/shdict.t TEST 39: incr bad init_ttl argument - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'not ok: bad "init_ttl" argument
'
stream/shdict.t TEST 39: incr bad init_ttl argument - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 39: incr bad init_ttl argument - status code ok got: ''
expected: '200'
stream/shdict.t TEST 39: incr bad init_ttl argument - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'not ok: bad "init_ttl" argument
'
stream/shdict.t TEST 44: incr key with init and init_ttl as string (key not exists) - Can't connect to 127.0.0.1:1984: Connection refused ==24370== Invalid read of size 4
==24370== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24370== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24370== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24370== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24370== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24370== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24370== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24370== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24370== by 0x8065F7E: main (nginx.c:382)
==24370== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24370==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 44: incr key with init and init_ttl as string (key not exists) - Can't connect to 127.0.0.1:1984: Connection refused ==24370==
==24370== Process terminating with default action of signal 11 (SIGSEGV)
==24370== Access not within mapped region at address 0x0
==24370== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24370== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24370== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24370== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24370== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24370== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24370== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24370== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24370== by 0x8065F7E: main (nginx.c:382)
==24370== If you believe this happened as a result of a stack
==24370== overflow in your program's main thread (unlikely but
==24370== possible), you can try to increase the size of the
==24370== main thread stack using the --main-stacksize= flag.
==24370== The main thread stack size used in this run was 8388608.

stream/shdict.t TEST 44: incr key with init and init_ttl as string (key not exists) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 44: incr key with init and init_ttl as string (key not exists) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-incr: 10503 nil
-foo = 10503
-foo after init_ttl = nil
'
stream/shdict.t TEST 44: incr key with init and init_ttl as string (key not exists) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 44: incr key with init and init_ttl as string (key not exists) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 44: incr key with init and init_ttl as string (key not exists) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-incr: 10503 nil
-foo = 10503
-foo after init_ttl = nil
'
stream/shdict.t TEST 16: set a number value (double) - Can't connect to 127.0.0.1:1984: Connection refused ==24372== Invalid read of size 4
==24372== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24372== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24372== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24372== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24372== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24372== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24372== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24372== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24372== by 0x8065F7E: main (nginx.c:382)
==24372== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24372==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 16: set a number value (double) - Can't connect to 127.0.0.1:1984: Connection refused ==24372==
==24372== Process terminating with default action of signal 11 (SIGSEGV)
==24372== Access not within mapped region at address 0x0
==24372== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24372== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24372== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24372== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24372== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24372== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24372== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24372== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24372== by 0x8065F7E: main (nginx.c:382)
==24372== If you believe this happened as a result of a stack
==24372== overflow in your program's main thread (unlikely but
==24372== possible), you can try to increase the size of the
==24372== main thread stack using the --main-stacksize= flag.
==24372== The main thread stack size used in this run was 8388608.
==24372== 2,048 bytes in 1 blocks are definitely lost in loss record 3,113 of 3,174
==24372== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24372== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24372== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24372== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24372== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24372== by 0x408AA0C: ir_nextk (lj_ir.c:175)
==24372== by 0x408AA0C: lj_ir_kptr_ (lj_ir.c:326)
==24372== by 0x408E504: fold_kfold_add_kgc (lj_opt_fold.c:761)
==24372== by 0x4091B2C: lj_opt_fold (lj_opt_fold.c:2506)
==24372== by 0x40A6029: recff_cdata_index (lj_crecord.c:839)
==24372== by 0x40AE0BC: lj_ffrecord_func (lj_ffrecord.c:1254)
==24372== by 0x409F4CA: lj_record_ins (lj_record.c:2479)
==24372== by 0x40BB16A: trace_state (lj_trace.c:680)
==24372== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24372== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24372== by 0x407596F: lj_dispatch_call (lj_dispatch.c:488)
==24372== by 0x406904F: lj_vm_hotcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24372== by 0x407FA29: lua_resume (lj_api.c:1296)
==24372== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24372== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24372== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24372== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24372== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24372== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24372== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24372== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24372== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24372== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24372== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24372== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24372== by 0x8065F7E: main (nginx.c:382)
==24372==
{
<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:fold_kfold_add_kgc
fun:lj_opt_fold
fun:recff_cdata_index
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
}
stream/shdict.t TEST 16: set a number value (double) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 16: set a number value (double) - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: number
-value: 3.1415926
-flags: 78
'
stream/shdict.t TEST 16: set a number value (double) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 16: set a number value (double) - status code ok got: ''
expected: '200'
stream/shdict.t TEST 16: set a number value (double) - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: number
-value: 3.1415926
-flags: 78
'
stream/shdict.t TEST 25: get stale key - Can't connect to 127.0.0.1:1984: Connection refused ==24374== Invalid read of size 4
==24374== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24374== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24374== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24374== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24374== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24374== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24374== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24374== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24374== by 0x8065F7E: main (nginx.c:382)
==24374== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24374==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 25: get stale key - Can't connect to 127.0.0.1:1984: Connection refused ==24374==
==24374== Process terminating with default action of signal 11 (SIGSEGV)
==24374== Access not within mapped region at address 0x0
==24374== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24374== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24374== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24374== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24374== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24374== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24374== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24374== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24374== by 0x8065F7E: main (nginx.c:382)
==24374== If you believe this happened as a result of a stack
==24374== overflow in your program's main thread (unlikely but
==24374== possible), you can try to increase the size of the
==24374== main thread stack using the --main-stacksize= flag.
==24374== The main thread stack size used in this run was 8388608.

stream/shdict.t TEST 25: get stale key - status code ok got: ''
expected: '200'
stream/shdict.t TEST 25: get stale key - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'failed to get stale: nil key
'
stream/shdict.t TEST 25: get stale key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 25: get stale key - status code ok got: ''
expected: '200'
stream/shdict.t TEST 25: get stale key - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'failed to get stale: nil key
'
stream/shdict.t TEST 31: capacity - Can't connect to 127.0.0.1:1984: Connection refused ==24376== Invalid read of size 4
==24376== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24376== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24376== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24376== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24376== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24376== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24376== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24376== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24376== by 0x8065F7E: main (nginx.c:382)
==24376== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24376==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 31: capacity - Can't connect to 127.0.0.1:1984: Connection refused ==24376==
==24376== Process terminating with default action of signal 11 (SIGSEGV)
==24376== Access not within mapped region at address 0x0
==24376== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24376== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24376== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24376== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24376== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24376== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24376== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24376== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24376== by 0x8065F7E: main (nginx.c:382)
==24376== If you believe this happened as a result of a stack
==24376== overflow in your program's main thread (unlikely but
==24376== possible), you can try to increase the size of the
==24376== main thread stack using the --main-stacksize= flag.
==24376== The main thread stack size used in this run was 8388608.

stream/shdict.t TEST 31: capacity - status code ok got: ''
expected: '200'
stream/shdict.t TEST 31: capacity - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-capacity type: number
-capacity: 16384
'
stream/shdict.t TEST 31: capacity - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 31: capacity - status code ok got: ''
expected: '200'
stream/shdict.t TEST 31: capacity - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-capacity type: number
-capacity: 16384
'
stream/shdict.t TEST 2: get an nonexistent key - Can't connect to 127.0.0.1:1984: Connection refused ==24378== Invalid read of size 4
==24378== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24378== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24378== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24378== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24378== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24378== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24378== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24378== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24378== by 0x8065F7E: main (nginx.c:382)
==24378== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24378==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 2: get an nonexistent key - Can't connect to 127.0.0.1:1984: Connection refused ==24378==
==24378== Process terminating with default action of signal 11 (SIGSEGV)
==24378== Access not within mapped region at address 0x0
==24378== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24378== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24378== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24378== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24378== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24378== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24378== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24378== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24378== by 0x8065F7E: main (nginx.c:382)
==24378== If you believe this happened as a result of a stack
==24378== overflow in your program's main thread (unlikely but
==24378== possible), you can try to increase the size of the
==24378== main thread stack using the --main-stacksize= flag.
==24378== The main thread stack size used in this run was 8388608.
==24378== 2,048 bytes in 1 blocks are definitely lost in loss record 3,119 of 3,182
==24378== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24378== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24378== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24378== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24378== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24378== by 0x408A511: ir_nextk (lj_ir.c:175)
==24378== by 0x408A511: lj_ir_kint (lj_ir.c:206)
==24378== by 0x40A4F4A: crec_ct_tv (lj_crecord.c:644)
==24378== by 0x40A711A: crec_call_args (lj_crecord.c:1127)
==24378== by 0x40A711A: crec_call (lj_crecord.c:1231)
==24378== by 0x40A711A: recff_cdata_call (lj_crecord.c:1277)
==24378== by 0x40AE0BC: lj_ffrecord_func (lj_ffrecord.c:1254)
==24378== by 0x409F4CA: lj_record_ins (lj_record.c:2479)
==24378== by 0x40BB16A: trace_state (lj_trace.c:680)
==24378== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24378== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24378== by 0x407596F: lj_dispatch_call (lj_dispatch.c:488)
==24378== by 0x406904F: lj_vm_hotcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24378== by 0x407FA29: lua_resume (lj_api.c:1296)
==24378== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24378== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24378== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24378== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24378== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24378== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24378== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24378== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24378== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24378== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24378== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24378== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24378== by 0x8065F7E: main (nginx.c:382)
==24378==
{
<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
}
stream/shdict.t TEST 2: get an nonexistent key - status code ok got: ''
expected: '200'
stream/shdict.t TEST 2: get an nonexistent key - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: nil
-value: nil
-flags: nil
'
stream/shdict.t TEST 2: get an nonexistent key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 2: get an nonexistent key - status code ok got: ''
expected: '200'
stream/shdict.t TEST 2: get an nonexistent key - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: nil
-value: nil
-flags: nil
'
stream/shdict.t TEST 12: set a string value - Can't connect to 127.0.0.1:1984: Connection refused ==24380== Invalid read of size 4
==24380== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24380== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24380== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24380== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24380== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24380== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24380== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24380== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24380== by 0x8065F7E: main (nginx.c:382)
==24380== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24380==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 12: set a string value - Can't connect to 127.0.0.1:1984: Connection refused ==24380==
==24380== Process terminating with default action of signal 11 (SIGSEGV)
==24380== Access not within mapped region at address 0x0
==24380== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24380== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24380== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24380== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24380== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24380== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24380== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24380== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24380== by 0x8065F7E: main (nginx.c:382)
==24380== If you believe this happened as a result of a stack
==24380== overflow in your program's main thread (unlikely but
==24380== possible), you can try to increase the size of the
==24380== main thread stack using the --main-stacksize= flag.
==24380== The main thread stack size used in this run was 8388608.
==24380== 2,048 bytes in 1 blocks are definitely lost in loss record 3,123 of 3,186
==24380== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24380== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24380== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24380== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24380== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24380== by 0x408AA0C: ir_nextk (lj_ir.c:175)
==24380== by 0x408AA0C: lj_ir_kptr_ (lj_ir.c:326)
==24380== by 0x4099F4D: rec_mm_prep (lj_record.c:961)
==24380== by 0x409BAA4: lj_record_idx (lj_record.c:1419)
==24380== by 0x409F552: lj_record_ins (lj_record.c:2339)
==24380== by 0x40BB16A: trace_state (lj_trace.c:680)
==24380== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24380== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24380== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24380== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24380== by 0x407FA29: lua_resume (lj_api.c:1296)
==24380== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24380== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24380== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24380== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24380== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24380== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24380== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24380== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24380== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24380== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24380== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24380== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24380== by 0x8065F7E: main (nginx.c:382)
==24380==
{
<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
}
stream/shdict.t TEST 12: set a string value - status code ok got: ''
expected: '200'
stream/shdict.t TEST 12: set a string value - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-value type: string
-value: bar
-flags: 72
'
stream/shdict.t TEST 12: set a string value - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 12: set a string value - status code ok got: ''
expected: '200'
stream/shdict.t TEST 12: set a string value - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-value type: string
-value: bar
-flags: 72
'
stream/shdict.t TEST 36: free_space, full - Can't connect to 127.0.0.1:1984: Connection refused ==24382== Invalid read of size 4
==24382== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24382== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24382== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24382== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24382== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24382== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24382== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24382== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24382== by 0x8065F7E: main (nginx.c:382)
==24382== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24382==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 36: free_space, full - Can't connect to 127.0.0.1:1984: Connection refused ==24382==
==24382== Process terminating with default action of signal 11 (SIGSEGV)
==24382== Access not within mapped region at address 0x0
==24382== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24382== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24382== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24382== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24382== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24382== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24382== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24382== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24382== by 0x8065F7E: main (nginx.c:382)
==24382== If you believe this happened as a result of a stack
==24382== overflow in your program's main thread (unlikely but
==24382== possible), you can try to increase the size of the
==24382== main thread stack using the --main-stacksize= flag.
==24382== The main thread stack size used in this run was 8388608.
==24382== 2,048 bytes in 1 blocks are definitely lost in loss record 3,123 of 3,186
==24382== at 0x402C768: realloc (vg_replace_malloc.c:834)
==24382== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24382== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24382== by 0x408A2A5: lj_ir_growtop (lj_ir.c:77)
==24382== by 0x408F5A6: lj_ir_nextins (lj_iropt.h:34)
==24382== by 0x408F5A6: lj_opt_cse (lj_opt_fold.c:2549)
==24382== by 0x40A7386: crec_call_args (lj_crecord.c:1171)
==24382== by 0x40A7386: crec_call (lj_crecord.c:1231)
==24382== by 0x40A7386: recff_cdata_call (lj_crecord.c:1277)
==24382== by 0x40AE0BC: lj_ffrecord_func (lj_ffrecord.c:1254)
==24382== by 0x409F4CA: lj_record_ins (lj_record.c:2479)
==24382== by 0x40BB16A: trace_state (lj_trace.c:680)
==24382== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24382== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24382== by 0x407596F: lj_dispatch_call (lj_dispatch.c:488)
==24382== by 0x406904F: lj_vm_hotcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24382== by 0x407FA29: lua_resume (lj_api.c:1296)
==24382== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24382== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24382== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24382== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24382== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24382== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24382== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24382== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24382== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24382== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24382== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24382== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24382== by 0x8065F7E: main (nginx.c:382)
==24382==
{
<insert_a_suppression_name_here>
Memcheck:Leak
match-leak-kinds: definite
fun:realloc
fun:mem_alloc
fun:lj_mem_realloc
fun:lj_ir_growtop
fun:lj_ir_nextins
fun:lj_opt_cse
fun:crec_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
}
stream/shdict.t TEST 36: free_space, full - status code ok got: ''
expected: '200'
stream/shdict.t TEST 36: free_space, full - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-free_page_bytes type: number
-free_page_bytes: 0
'
stream/shdict.t TEST 36: free_space, full - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 36: free_space, full - status code ok got: ''
expected: '200'
stream/shdict.t TEST 36: free_space, full - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-free_page_bytes type: number
-free_page_bytes: 0
'
stream/shdict.t TEST 30: incr, init is not number - Can't connect to 127.0.0.1:1984: Connection refused ==24384== Invalid read of size 4
==24384== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24384== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24384== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24384== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24384== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24384== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24384== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24384== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24384== by 0x8065F7E: main (nginx.c:382)
==24384== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24384==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/shdict.t TEST 30: incr, init is not number - Can't connect to 127.0.0.1:1984: Connection refused ==24384==
==24384== Process terminating with default action of signal 11 (SIGSEGV)
==24384== Access not within mapped region at address 0x0
==24384== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24384== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24384== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24384== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24384== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24384== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24384== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24384== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24384== by 0x8065F7E: main (nginx.c:382)
==24384== If you believe this happened as a result of a stack
==24384== overflow in your program's main thread (unlikely but
==24384== possible), you can try to increase the size of the
==24384== main thread stack using the --main-stacksize= flag.
==24384== The main thread stack size used in this run was 8388608.

stream/shdict.t TEST 30: incr, init is not number - status code ok got: ''
expected: '200'
stream/shdict.t TEST 30: incr, init is not number - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/shdict.t TEST 30: incr, init is not number - status code ok got: ''
expected: '200'
stream/ssl.t TEST 9: read PEM cert chain but set DER cert chain - Can't connect to 127.0.0.1:1984: Connection refused ==24390== Invalid read of size 4
==24390== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24390== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24390== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24390== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24390== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24390== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24390== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24390== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24390== by 0x8065F7E: main (nginx.c:382)
==24390== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24390==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/ssl.t TEST 9: read PEM cert chain but set DER cert chain - Can't connect to 127.0.0.1:1984: Connection refused ==24390==
==24390== Process terminating with default action of signal 11 (SIGSEGV)
==24390== Access not within mapped region at address 0x0
==24390== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24390== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24390== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24390== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24390== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24390== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24390== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24390== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24390== by 0x8065F7E: main (nginx.c:382)
==24390== If you believe this happened as a result of a stack
==24390== overflow in your program's main thread (unlikely but
==24390== possible), you can try to increase the size of the
==24390== main thread stack using the --main-stacksize= flag.
==24390== The main thread stack size used in this run was 8388608.

stream/ssl.t TEST 9: read PEM cert chain but set DER cert chain - status code ok got: ''
expected: '200'
stream/ssl.t TEST 9: read PEM cert chain but set DER cert chain - 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
'
stream/ssl.t TEST 9: read PEM cert chain but set DER cert chain - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/ssl.t TEST 9: read PEM cert chain but set DER cert chain - status code ok got: ''
expected: '200'
stream/ssl.t TEST 9: read PEM cert chain but set DER cert chain - 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
'
stream/ssl.t TEST 9: read PEM cert chain but set DER cert chain - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1)
stream/ssl.t TEST 25: verify client but client provides no certificate - Can't connect to 127.0.0.1:1984: Connection refused ==24392== Invalid read of size 4
==24392== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24392== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24392== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24392== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24392== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24392== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24392== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24392== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24392== by 0x8065F7E: main (nginx.c:382)
==24392== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24392==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/ssl.t TEST 25: verify client but client provides no certificate - Can't connect to 127.0.0.1:1984: Connection refused ==24392==
==24392== Process terminating with default action of signal 11 (SIGSEGV)
==24392== Access not within mapped region at address 0x0
==24392== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24392== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24392== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24392== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24392== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24392== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24392== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24392== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24392== by 0x8065F7E: main (nginx.c:382)
==24392== If you believe this happened as a result of a stack
==24392== overflow in your program's main thread (unlikely but
==24392== possible), you can try to increase the size of the
==24392== main thread stack using the --main-stacksize= flag.
==24392== The main thread stack size used in this run was 8388608.

stream/ssl.t TEST 25: verify client but client provides no certificate - status code ok got: ''
expected: '200'
stream/ssl.t TEST 25: verify client but client provides no certificate - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'NONE
'
stream/ssl.t TEST 25: verify client but client provides no certificate - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/ssl.t TEST 25: verify client but client provides no certificate - status code ok got: ''
expected: '200'
stream/ssl.t TEST 25: verify client but client provides no certificate - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'NONE
'
stream/ssl.t TEST 25: verify client but client provides no certificate - pattern "client certificate subject: nil" should match a line in error.log (req 1)
stream/ssl.t TEST 13: tls version - TLSv1.2 - Can't connect to 127.0.0.1:1984: Connection refused ==24394== Invalid read of size 4
==24394== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24394== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24394== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24394== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24394== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24394== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24394== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24394== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24394== by 0x8065F7E: main (nginx.c:382)
==24394== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24394==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/ssl.t TEST 13: tls version - TLSv1.2 - Can't connect to 127.0.0.1:1984: Connection refused ==24394==
==24394== Process terminating with default action of signal 11 (SIGSEGV)
==24394== Access not within mapped region at address 0x0
==24394== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24394== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24394== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24394== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24394== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24394== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24394== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24394== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24394== by 0x8065F7E: main (nginx.c:382)
==24394== If you believe this happened as a result of a stack
==24394== overflow in your program's main thread (unlikely but
==24394== possible), you can try to increase the size of the
==24394== main thread stack using the --main-stacksize= flag.
==24394== The main thread stack size used in this run was 8388608.

stream/ssl.t TEST 13: tls version - TLSv1.2 - status code ok got: ''
expected: '200'
stream/ssl.t TEST 13: tls version - TLSv1.2 - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-ssl handshake: boolean
'
stream/ssl.t TEST 13: tls version - TLSv1.2 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/ssl.t TEST 13: tls version - TLSv1.2 - status code ok got: ''
expected: '200'
stream/ssl.t TEST 13: tls version - TLSv1.2 - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-ssl handshake: boolean
'
stream/ssl.t TEST 13: tls version - TLSv1.2 - pattern "got TLS1 version: TLSv1.2," should match a line in error.log (req 1)
stream/ssl.t TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - Can't connect to 127.0.0.1:1984: Connection refused ==24396== Invalid read of size 4
==24396== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24396== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24396== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24396== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24396== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24396== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24396== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24396== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24396== by 0x8065F7E: main (nginx.c:382)
==24396== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24396==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/ssl.t TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - Can't connect to 127.0.0.1:1984: Connection refused ==24396==
==24396== Process terminating with default action of signal 11 (SIGSEGV)
==24396== Access not within mapped region at address 0x0
==24396== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24396== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24396== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24396== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24396== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24396== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24396== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24396== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24396== by 0x8065F7E: main (nginx.c:382)
==24396== If you believe this happened as a result of a stack
==24396== overflow in your program's main thread (unlikely but
==24396== possible), you can try to increase the size of the
==24396== main thread stack using the --main-stacksize= flag.
==24396== The main thread stack size used in this run was 8388608.

stream/ssl.t TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - status code ok got: ''
expected: '200'
stream/ssl.t TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
'
stream/ssl.t TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/ssl.t TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - status code ok got: ''
expected: '200'
stream/ssl.t TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
'
stream/ssl.t TEST 17: parse PEM cert and key to cdata (bad cert 0 in the chain) - pattern "(?^:\[error\] .*? failed to parse pem cert: PEM_read_bio_X509_AUX\(\) failed)" should match a line in error.log (req 1)
stream/ssl.t TEST 2: set DER cert and private key - Can't connect to 127.0.0.1:1984: Connection refused ==24398== Invalid read of size 4
==24398== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24398== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24398== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24398== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24398== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24398== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24398== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24398== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24398== by 0x8065F7E: main (nginx.c:382)
==24398== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24398==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/ssl.t TEST 2: set DER cert and private key - Can't connect to 127.0.0.1:1984: Connection refused ==24398==
==24398== Process terminating with default action of signal 11 (SIGSEGV)
==24398== Access not within mapped region at address 0x0
==24398== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24398== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24398== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24398== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24398== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24398== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24398== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24398== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24398== by 0x8065F7E: main (nginx.c:382)
==24398== If you believe this happened as a result of a stack
==24398== overflow in your program's main thread (unlikely but
==24398== possible), you can try to increase the size of the
==24398== main thread stack using the --main-stacksize= flag.
==24398== The main thread stack size used in this run was 8388608.

stream/ssl.t TEST 2: set DER cert and private key - status code ok got: ''
expected: '200'
stream/ssl.t TEST 2: set DER cert and 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
'
stream/ssl.t TEST 2: set DER cert and private key - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/ssl.t TEST 2: set DER cert and private key - status code ok got: ''
expected: '200'
stream/ssl.t TEST 2: set DER cert and 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
'
stream/ssl.t TEST 2: set DER cert and private key - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1)
stream/ssl.t TEST 4: read SNI name via ssl.server_name() when no SNI name specified - Can't connect to 127.0.0.1:1984: Connection refused ==24400== Invalid read of size 4
==24400== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24400== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24400== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24400== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24400== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24400== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24400== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24400== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24400== by 0x8065F7E: main (nginx.c:382)
==24400== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24400==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/ssl.t TEST 4: read SNI name via ssl.server_name() when no SNI name specified - Can't connect to 127.0.0.1:1984: Connection refused ==24400==
==24400== Process terminating with default action of signal 11 (SIGSEGV)
==24400== Access not within mapped region at address 0x0
==24400== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24400== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24400== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24400== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24400== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24400== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24400== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24400== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24400== by 0x8065F7E: main (nginx.c:382)
==24400== If you believe this happened as a result of a stack
==24400== overflow in your program's main thread (unlikely but
==24400== possible), you can try to increase the size of the
==24400== main thread stack using the --main-stacksize= flag.
==24400== The main thread stack size used in this run was 8388608.

stream/ssl.t TEST 4: read SNI name via ssl.server_name() when no SNI name specified - status code ok got: ''
expected: '200'
stream/ssl.t TEST 4: read SNI name via ssl.server_name() when no SNI name specified - 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
'
stream/ssl.t TEST 4: read SNI name via ssl.server_name() when no SNI name specified - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/ssl.t TEST 4: read SNI name via ssl.server_name() when no SNI name specified - status code ok got: ''
expected: '200'
stream/ssl.t TEST 4: read SNI name via ssl.server_name() when no SNI name specified - 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
'
stream/ssl.t TEST 4: read SNI name via ssl.server_name() when no SNI name specified - pattern "read SNI name from Lua: nil, type: nil" should match a line in error.log (req 1)
stream/ssl.t TEST 24: verify client without CA certificates - Can't connect to 127.0.0.1:1984: Connection refused ==24402== Invalid read of size 4
==24402== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24402== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24402== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24402== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24402== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24402== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24402== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24402== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24402== by 0x8065F7E: main (nginx.c:382)
==24402== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24402==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/ssl.t TEST 24: verify client without CA certificates - Can't connect to 127.0.0.1:1984: Connection refused ==24402==
==24402== Process terminating with default action of signal 11 (SIGSEGV)
==24402== Access not within mapped region at address 0x0
==24402== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24402== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24402== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24402== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24402== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24402== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24402== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24402== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24402== by 0x8065F7E: main (nginx.c:382)
==24402== If you believe this happened as a result of a stack
==24402== overflow in your program's main thread (unlikely but
==24402== possible), you can try to increase the size of the
==24402== main thread stack using the --main-stacksize= flag.
==24402== The main thread stack size used in this run was 8388608.

stream/ssl.t TEST 24: verify client without CA certificates - status code ok got: ''
expected: '200'
stream/ssl.t TEST 24: verify client without CA certificates - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'FAILED:self signed certificate
'
stream/ssl.t TEST 24: verify client without CA certificates - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/ssl.t TEST 24: verify client without CA certificates - status code ok got: ''
expected: '200'
stream/ssl.t TEST 24: verify client without CA certificates - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'FAILED:self signed certificate
'
stream/ssl.t TEST 24: 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)
stream/ssl.t TEST 16: parse PEM cert and key to cdata - Can't connect to 127.0.0.1:1984: Connection refused ==24404== Invalid read of size 4
==24404== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24404== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24404== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24404== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24404== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24404== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24404== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24404== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24404== by 0x8065F7E: main (nginx.c:382)
==24404== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24404==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/ssl.t TEST 16: parse PEM cert and key to cdata - Can't connect to 127.0.0.1:1984: Connection refused ==24404==
==24404== Process terminating with default action of signal 11 (SIGSEGV)
==24404== Access not within mapped region at address 0x0
==24404== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24404== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24404== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24404== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24404== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24404== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24404== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24404== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24404== by 0x8065F7E: main (nginx.c:382)
==24404== If you believe this happened as a result of a stack
==24404== overflow in your program's main thread (unlikely but
==24404== possible), you can try to increase the size of the
==24404== main thread stack using the --main-stacksize= flag.
==24404== The main thread stack size used in this run was 8388608.

stream/ssl.t TEST 16: parse PEM cert and key to cdata - status code ok got: ''
expected: '200'
stream/ssl.t TEST 16: parse PEM cert and key to 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
'
stream/ssl.t TEST 16: parse PEM cert and key to cdata - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/ssl.t TEST 16: parse PEM cert and key to cdata - status code ok got: ''
expected: '200'
stream/ssl.t TEST 16: parse PEM cert and key to 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
'
stream/ssl.t TEST 16: parse PEM cert and key to cdata - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1)
stream/ssl.t TEST 8: set DER cert chain - Can't connect to 127.0.0.1:1984: Connection refused ==24406== Invalid read of size 4
==24406== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24406== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24406== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24406== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24406== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24406== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24406== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24406== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24406== by 0x8065F7E: main (nginx.c:382)
==24406== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24406==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/ssl.t TEST 8: set DER cert chain - Can't connect to 127.0.0.1:1984: Connection refused ==24406==
==24406== Process terminating with default action of signal 11 (SIGSEGV)
==24406== Access not within mapped region at address 0x0
==24406== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24406== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24406== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24406== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24406== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24406== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24406== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24406== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24406== by 0x8065F7E: main (nginx.c:382)
==24406== If you believe this happened as a result of a stack
==24406== overflow in your program's main thread (unlikely but
==24406== possible), you can try to increase the size of the
==24406== main thread stack using the --main-stacksize= flag.
==24406== The main thread stack size used in this run was 8388608.

stream/ssl.t TEST 8: set DER cert chain - status code ok got: ''
expected: '200'
stream/ssl.t TEST 8: set DER cert chain - 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
'
stream/ssl.t TEST 8: set DER cert chain - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/ssl.t TEST 8: set DER cert chain - status code ok got: ''
expected: '200'
stream/ssl.t TEST 8: set DER cert chain - 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
'
stream/ssl.t TEST 8: set DER cert chain - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1)
stream/ssl.t TEST 20: read client addr via ssl.raw_client_addr() - Can't connect to 127.0.0.1:1984: Connection refused ==24408== Invalid read of size 4
==24408== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24408== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24408== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24408== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24408== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24408== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24408== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24408== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24408== by 0x8065F7E: main (nginx.c:382)
==24408== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24408==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/ssl.t TEST 20: read client addr via ssl.raw_client_addr() - Can't connect to 127.0.0.1:1984: Connection refused ==24408==
==24408== Process terminating with default action of signal 11 (SIGSEGV)
==24408== Access not within mapped region at address 0x0
==24408== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24408== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24408== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24408== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24408== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24408== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24408== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24408== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24408== by 0x8065F7E: main (nginx.c:382)
==24408== If you believe this happened as a result of a stack
==24408== overflow in your program's main thread (unlikely but
==24408== possible), you can try to increase the size of the
==24408== main thread stack using the --main-stacksize= flag.
==24408== The main thread stack size used in this run was 8388608.

stream/ssl.t TEST 20: read client addr via ssl.raw_client_addr() - status code ok got: ''
expected: '200'
stream/ssl.t TEST 20: read client addr via ssl.raw_client_addr() - 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
'
stream/ssl.t TEST 20: read client addr via ssl.raw_client_addr() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/ssl.t TEST 20: read client addr via ssl.raw_client_addr() - status code ok got: ''
expected: '200'
stream/ssl.t TEST 20: read client addr via ssl.raw_client_addr() - 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
'
stream/ssl.t TEST 20: read client addr via ssl.raw_client_addr() - pattern "client ip: 127.0.0.1" should match a line in error.log (req 1)
stream/ssl.t TEST 23: verify client with CA certificates - Can't connect to 127.0.0.1:1984: Connection refused ==24410== Invalid read of size 4
==24410== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24410== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24410== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24410== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24410== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24410== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24410== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24410== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24410== by 0x8065F7E: main (nginx.c:382)
==24410== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24410==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/ssl.t TEST 23: verify client with CA certificates - Can't connect to 127.0.0.1:1984: Connection refused ==24410==
==24410== Process terminating with default action of signal 11 (SIGSEGV)
==24410== Access not within mapped region at address 0x0
==24410== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24410== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24410== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24410== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24410== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24410== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24410== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24410== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24410== by 0x8065F7E: main (nginx.c:382)
==24410== If you believe this happened as a result of a stack
==24410== overflow in your program's main thread (unlikely but
==24410== possible), you can try to increase the size of the
==24410== main thread stack using the --main-stacksize= flag.
==24410== The main thread stack size used in this run was 8388608.

stream/ssl.t TEST 23: verify client with CA certificates - status code ok got: ''
expected: '200'
stream/ssl.t TEST 23: verify client with CA certificates - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'SUCCESS
'
stream/ssl.t TEST 23: verify client with CA certificates - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/ssl.t TEST 23: verify client with CA certificates - status code ok got: ''
expected: '200'
stream/ssl.t TEST 23: verify client with CA certificates - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'SUCCESS
'
stream/ssl.t TEST 23: 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)
stream/ssl.t TEST 1: clear certs - Can't connect to 127.0.0.1:1984: Connection refused ==24412== Invalid read of size 4
==24412== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24412== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24412== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24412== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24412== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24412== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24412== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24412== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24412== by 0x8065F7E: main (nginx.c:382)
==24412== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24412==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/ssl.t TEST 1: clear certs - Can't connect to 127.0.0.1:1984: Connection refused ==24412==
==24412== Process terminating with default action of signal 11 (SIGSEGV)
==24412== Access not within mapped region at address 0x0
==24412== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24412== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24412== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24412== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24412== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24412== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24412== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24412== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24412== by 0x8065F7E: main (nginx.c:382)
==24412== If you believe this happened as a result of a stack
==24412== overflow in your program's main thread (unlikely but
==24412== possible), you can try to increase the size of the
==24412== main thread stack using the --main-stacksize= flag.
==24412== The main thread stack size used in this run was 8388608.

stream/ssl.t TEST 1: clear certs - status code ok got: ''
expected: '200'
stream/ssl.t TEST 1: clear certs - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
'
stream/ssl.t TEST 1: clear certs - pattern "sslv3 alert handshake failure" should match a line in error.log (req 0)
stream/ssl.t TEST 1: clear certs - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/ssl.t TEST 1: clear certs - status code ok got: ''
expected: '200'
stream/ssl.t TEST 1: clear certs - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
'
stream/ssl.t TEST 1: clear certs - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1)
stream/ssl.t TEST 1: clear certs - pattern "sslv3 alert handshake failure" should match a line in error.log (req 1)
stream/ssl.t TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - Can't connect to 127.0.0.1:1984: Connection refused ==24414== Invalid read of size 4
==24414== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24414== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24414== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24414== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24414== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24414== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24414== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24414== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24414== by 0x8065F7E: main (nginx.c:382)
==24414== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24414==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/ssl.t TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - Can't connect to 127.0.0.1:1984: Connection refused ==24414==
==24414== Process terminating with default action of signal 11 (SIGSEGV)
==24414== Access not within mapped region at address 0x0
==24414== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24414== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24414== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24414== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24414== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24414== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24414== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24414== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24414== by 0x8065F7E: main (nginx.c:382)
==24414== If you believe this happened as a result of a stack
==24414== overflow in your program's main thread (unlikely but
==24414== possible), you can try to increase the size of the
==24414== main thread stack using the --main-stacksize= flag.
==24414== The main thread stack size used in this run was 8388608.

stream/ssl.t TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - status code ok got: ''
expected: '200'
stream/ssl.t TEST 5: read raw server addr via ssl.raw_server_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
'
stream/ssl.t TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/ssl.t TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - status code ok got: ''
expected: '200'
stream/ssl.t TEST 5: read raw server addr via ssl.raw_server_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
'
stream/ssl.t TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1)
stream/ssl.t TEST 5: read raw server addr via ssl.raw_server_addr() (unix domain socket) - pattern "(?^:Using unix socket file .*?nginx\.sock)" should match a line in error.log (req 1)
stream/ssl.t TEST 3: read SNI name via ssl.server_name() - Can't connect to 127.0.0.1:1984: Connection refused ==24416== Invalid read of size 4
==24416== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24416== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24416== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24416== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24416== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24416== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24416== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24416== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24416== by 0x8065F7E: main (nginx.c:382)
==24416== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24416==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/ssl.t TEST 3: read SNI name via ssl.server_name() - Can't connect to 127.0.0.1:1984: Connection refused ==24416==
==24416== Process terminating with default action of signal 11 (SIGSEGV)
==24416== Access not within mapped region at address 0x0
==24416== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24416== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24416== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24416== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24416== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24416== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24416== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24416== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24416== by 0x8065F7E: main (nginx.c:382)
==24416== If you believe this happened as a result of a stack
==24416== overflow in your program's main thread (unlikely but
==24416== possible), you can try to increase the size of the
==24416== main thread stack using the --main-stacksize= flag.
==24416== The main thread stack size used in this run was 8388608.

stream/ssl.t TEST 3: read SNI name via ssl.server_name() - status code ok got: ''
expected: '200'
stream/ssl.t TEST 3: read SNI name via ssl.server_name() - 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
'
stream/ssl.t TEST 3: read SNI name via ssl.server_name() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/ssl.t TEST 3: read SNI name via ssl.server_name() - status code ok got: ''
expected: '200'
stream/ssl.t TEST 3: read SNI name via ssl.server_name() - 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
'
stream/ssl.t TEST 3: read SNI name via ssl.server_name() - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1)
stream/ssl.t TEST 3: read SNI name via ssl.server_name() - pattern "read SNI name from Lua: test.com" should match a line in error.log (req 1)
stream/ssl.t TEST 21: yield during doing handshake with client which uses low version OpenSSL - Can't connect to 127.0.0.1:1984: Connection refused ==24418== Invalid read of size 4
==24418== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24418== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24418== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24418== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24418== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24418== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24418== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24418== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24418== by 0x8065F7E: main (nginx.c:382)
==24418== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24418==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/ssl.t TEST 21: yield during doing handshake with client which uses low version OpenSSL - Can't connect to 127.0.0.1:1984: Connection refused ==24418==
==24418== Process terminating with default action of signal 11 (SIGSEGV)
==24418== Access not within mapped region at address 0x0
==24418== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24418== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24418== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24418== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24418== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24418== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24418== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24418== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24418== by 0x8065F7E: main (nginx.c:382)
==24418== If you believe this happened as a result of a stack
==24418== overflow in your program's main thread (unlikely but
==24418== possible), you can try to increase the size of the
==24418== main thread stack using the --main-stacksize= flag.
==24418== The main thread stack size used in this run was 8388608.

stream/ssl.t TEST 21: yield during doing handshake with client which uses low version OpenSSL - status code ok got: ''
expected: '200'
stream/ssl.t TEST 21: yield during doing handshake with client which uses low version OpenSSL - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'ok
'
stream/ssl.t TEST 21: yield during doing handshake with client which uses low version OpenSSL - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/ssl.t TEST 21: yield during doing handshake with client which uses low version OpenSSL - status code ok got: ''
expected: '200'
stream/ssl.t TEST 21: yield during doing handshake with client which uses low version OpenSSL - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'ok
'
stream/ssl.t TEST 21: yield during doing handshake with client which uses low version OpenSSL - pattern "(?^:content_by_lua\(nginx\.conf:\d+\):\d+: CONNECTED)" should match a line in error.log (req 1)
stream/ssl.t TEST 21: yield during doing handshake with client which uses low version OpenSSL - pattern "(?^:subject=/?C(?<eq>\s?=\s?)US(?<sep>/|,\s)ST\k<eq>California\k<sep>L\k<eq>San Francisco\k<sep>O\k<eq>OpenResty\k<sep>OU\k<eq>OpenResty\k<sep>CN\k<eq>test\.com\k<sep>emailAddress\k<eq>agentzh\@gmail\.com)" should match a line in error.log (req 1)
stream/ssl.t TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - Can't connect to 127.0.0.1:1984: Connection refused ==24426== Invalid read of size 4
==24426== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24426== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24426== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24426== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24426== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24426== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24426== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24426== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24426== by 0x8065F7E: main (nginx.c:382)
==24426== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24426==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/ssl.t TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - Can't connect to 127.0.0.1:1984: Connection refused ==24426==
==24426== Process terminating with default action of signal 11 (SIGSEGV)
==24426== Access not within mapped region at address 0x0
==24426== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24426== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24426== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24426== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24426== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24426== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24426== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24426== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24426== by 0x8065F7E: main (nginx.c:382)
==24426== If you believe this happened as a result of a stack
==24426== overflow in your program's main thread (unlikely but
==24426== possible), you can try to increase the size of the
==24426== main thread stack using the --main-stacksize= flag.
==24426== The main thread stack size used in this run was 8388608.

stream/ssl.t TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - status code ok got: ''
expected: '200'
stream/ssl.t TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - 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
'
stream/ssl.t TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/ssl.t TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - status code ok got: ''
expected: '200'
stream/ssl.t TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - 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
'
stream/ssl.t TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1)
stream/ssl.t TEST 7: read raw server addr via ssl.raw_server_addr() (IPv6) - pattern "Using IPv6 address: 0.0.0.1" should match a line in error.log (req 1)
stream/ssl.t TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - Can't connect to 127.0.0.1:1984: Connection refused ==24428== Invalid read of size 4
==24428== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24428== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24428== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24428== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24428== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24428== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24428== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24428== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24428== by 0x8065F7E: main (nginx.c:382)
==24428== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24428==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/ssl.t TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - Can't connect to 127.0.0.1:1984: Connection refused ==24428==
==24428== Process terminating with default action of signal 11 (SIGSEGV)
==24428== Access not within mapped region at address 0x0
==24428== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24428== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24428== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24428== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24428== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24428== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24428== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24428== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24428== by 0x8065F7E: main (nginx.c:382)
==24428== If you believe this happened as a result of a stack
==24428== overflow in your program's main thread (unlikely but
==24428== possible), you can try to increase the size of the
==24428== main thread stack using the --main-stacksize= flag.
==24428== The main thread stack size used in this run was 8388608.

stream/ssl.t TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - status code ok got: ''
expected: '200'
stream/ssl.t TEST 6: read raw server addr via ssl.raw_server_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
'
stream/ssl.t TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/ssl.t TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - status code ok got: ''
expected: '200'
stream/ssl.t TEST 6: read raw server addr via ssl.raw_server_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
'
stream/ssl.t TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1)
stream/ssl.t TEST 6: read raw server addr via ssl.raw_server_addr() (IPv4) - pattern "Using IPv4 address: 127.0.0.1" should match a line in error.log (req 1)
stream/ssl.t TEST 19: parse PEM cert and key to cdata (bad priv key) - Can't connect to 127.0.0.1:1984: Connection refused ==24430== Invalid read of size 4
==24430== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24430== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24430== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24430== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24430== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24430== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24430== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24430== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24430== by 0x8065F7E: main (nginx.c:382)
==24430== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24430==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/ssl.t TEST 19: parse PEM cert and key to cdata (bad priv key) - Can't connect to 127.0.0.1:1984: Connection refused ==24430==
==24430== Process terminating with default action of signal 11 (SIGSEGV)
==24430== Access not within mapped region at address 0x0
==24430== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24430== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24430== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24430== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24430== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24430== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24430== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24430== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24430== by 0x8065F7E: main (nginx.c:382)
==24430== If you believe this happened as a result of a stack
==24430== overflow in your program's main thread (unlikely but
==24430== possible), you can try to increase the size of the
==24430== main thread stack using the --main-stacksize= flag.
==24430== The main thread stack size used in this run was 8388608.

stream/ssl.t TEST 19: parse PEM cert and key to cdata (bad priv key) - status code ok got: ''
expected: '200'
stream/ssl.t TEST 19: parse PEM cert and key to cdata (bad priv key) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
'
stream/ssl.t TEST 19: parse PEM cert and key to cdata (bad priv key) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/ssl.t TEST 19: parse PEM cert and key to cdata (bad priv key) - status code ok got: ''
expected: '200'
stream/ssl.t TEST 19: parse PEM cert and key to cdata (bad priv key) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
'
stream/ssl.t TEST 19: parse PEM cert and key to cdata (bad priv key) - pattern "(?^:\[error\] .*? failed to parse pem key: PEM_read_bio_PrivateKey\(\) failed)" should match a line in error.log (req 1)
stream/ssl.t TEST 18: parse PEM cert and key to cdata (bad cert 2 in the chain) - Can't connect to 127.0.0.1:1984: Connection refused ==24432== Invalid read of size 4
==24432== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24432== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24432== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24432== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24432== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24432== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24432== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24432== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24432== by 0x8065F7E: main (nginx.c:382)
==24432== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24432==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/ssl.t TEST 18: parse PEM cert and key to cdata (bad cert 2 in the chain) - Can't connect to 127.0.0.1:1984: Connection refused ==24432==
==24432== Process terminating with default action of signal 11 (SIGSEGV)
==24432== Access not within mapped region at address 0x0
==24432== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24432== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24432== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24432== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24432== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24432== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24432== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24432== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24432== by 0x8065F7E: main (nginx.c:382)
==24432== If you believe this happened as a result of a stack
==24432== overflow in your program's main thread (unlikely but
==24432== possible), you can try to increase the size of the
==24432== main thread stack using the --main-stacksize= flag.
==24432== The main thread stack size used in this run was 8388608.

stream/ssl.t TEST 18: parse PEM cert and key to cdata (bad cert 2 in the chain) - status code ok got: ''
expected: '200'
stream/ssl.t TEST 18: parse PEM cert and key to cdata (bad cert 2 in the chain) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
'
stream/ssl.t TEST 18: parse PEM cert and key to cdata (bad cert 2 in the chain) - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/ssl.t TEST 18: parse PEM cert and key to cdata (bad cert 2 in the chain) - status code ok got: ''
expected: '200'
stream/ssl.t TEST 18: parse PEM cert and key to cdata (bad cert 2 in the chain) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-failed to do SSL handshake: handshake failed
'
stream/ssl.t TEST 18: parse PEM cert and key to cdata (bad cert 2 in the chain) - pattern "(?^:\[error\] .*? failed to parse pem cert: PEM_read_bio_X509\(\) failed)" should match a line in error.log (req 1)
stream/ssl.t TEST 22: tls version - TLSv1.3 - Can't connect to 127.0.0.1:1984: Connection refused ==24434== Invalid read of size 4
==24434== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24434== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24434== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24434== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24434== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24434== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24434== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24434== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24434== by 0x8065F7E: main (nginx.c:382)
==24434== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24434==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/ssl.t TEST 22: tls version - TLSv1.3 - Can't connect to 127.0.0.1:1984: Connection refused ==24434==
==24434== Process terminating with default action of signal 11 (SIGSEGV)
==24434== Access not within mapped region at address 0x0
==24434== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24434== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24434== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24434== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24434== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24434== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24434== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24434== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24434== by 0x8065F7E: main (nginx.c:382)
==24434== If you believe this happened as a result of a stack
==24434== overflow in your program's main thread (unlikely but
==24434== possible), you can try to increase the size of the
==24434== main thread stack using the --main-stacksize= flag.
==24434== The main thread stack size used in this run was 8388608.

stream/ssl.t TEST 22: tls version - TLSv1.3 - status code ok got: ''
expected: '200'
stream/ssl.t TEST 22: tls version - TLSv1.3 - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-ssl handshake: boolean
'
stream/ssl.t TEST 22: tls version - TLSv1.3 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/ssl.t TEST 22: tls version - TLSv1.3 - status code ok got: ''
expected: '200'
stream/ssl.t TEST 22: tls version - TLSv1.3 - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-ssl handshake: boolean
'
stream/ssl.t TEST 22: tls version - TLSv1.3 - pattern "got TLS1 version: TLSv1.3," should match a line in error.log (req 1)
stream/ssl.t TEST 10: tls version - SSLv3 - Can't connect to 127.0.0.1:1984: Connection refused ==24436== Invalid read of size 4
==24436== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24436== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24436== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24436== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24436== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24436== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24436== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24436== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24436== by 0x8065F7E: main (nginx.c:382)
==24436== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24436==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/ssl.t TEST 10: tls version - SSLv3 - Can't connect to 127.0.0.1:1984: Connection refused ==24436==
==24436== Process terminating with default action of signal 11 (SIGSEGV)
==24436== Access not within mapped region at address 0x0
==24436== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24436== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24436== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24436== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24436== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24436== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24436== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24436== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24436== by 0x8065F7E: main (nginx.c:382)
==24436== If you believe this happened as a result of a stack
==24436== overflow in your program's main thread (unlikely but
==24436== possible), you can try to increase the size of the
==24436== main thread stack using the --main-stacksize= flag.
==24436== The main thread stack size used in this run was 8388608.

stream/ssl.t TEST 10: tls version - SSLv3 - status code ok got: ''
expected: '200'
stream/ssl.t TEST 10: tls version - SSLv3 - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-ssl handshake: boolean
'
stream/ssl.t TEST 10: tls version - SSLv3 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/ssl.t TEST 10: tls version - SSLv3 - status code ok got: ''
expected: '200'
stream/ssl.t TEST 10: tls version - SSLv3 - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-ssl handshake: boolean
'
stream/ssl.t TEST 10: tls version - SSLv3 - pattern "got TLS1 version: SSLv3," should match a line in error.log (req 1)
stream/ssl.t TEST 12: tls version - TLSv1.1 - Can't connect to 127.0.0.1:1984: Connection refused ==24438== Invalid read of size 4
==24438== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24438== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24438== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24438== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24438== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24438== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24438== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24438== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24438== by 0x8065F7E: main (nginx.c:382)
==24438== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24438==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/ssl.t TEST 12: tls version - TLSv1.1 - Can't connect to 127.0.0.1:1984: Connection refused ==24438==
==24438== Process terminating with default action of signal 11 (SIGSEGV)
==24438== Access not within mapped region at address 0x0
==24438== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24438== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24438== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24438== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24438== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24438== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24438== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24438== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24438== by 0x8065F7E: main (nginx.c:382)
==24438== If you believe this happened as a result of a stack
==24438== overflow in your program's main thread (unlikely but
==24438== possible), you can try to increase the size of the
==24438== main thread stack using the --main-stacksize= flag.
==24438== The main thread stack size used in this run was 8388608.

stream/ssl.t TEST 12: tls version - TLSv1.1 - status code ok got: ''
expected: '200'
stream/ssl.t TEST 12: tls version - TLSv1.1 - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-ssl handshake: boolean
'
stream/ssl.t TEST 12: tls version - TLSv1.1 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/ssl.t TEST 12: tls version - TLSv1.1 - status code ok got: ''
expected: '200'
stream/ssl.t TEST 12: tls version - TLSv1.1 - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-ssl handshake: boolean
'
stream/ssl.t TEST 12: tls version - TLSv1.1 - pattern "got TLS1 version: TLSv1.1," should match a line in error.log (req 1)
stream/ssl.t TEST 14: ngx.semaphore in ssl_certificate_by_lua* - Can't connect to 127.0.0.1:1984: Connection refused ==24440== Invalid read of size 4
==24440== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24440== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24440== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24440== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24440== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24440== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24440== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24440== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24440== by 0x8065F7E: main (nginx.c:382)
==24440== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24440==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/ssl.t TEST 14: ngx.semaphore in ssl_certificate_by_lua* - Can't connect to 127.0.0.1:1984: Connection refused ==24440==
==24440== Process terminating with default action of signal 11 (SIGSEGV)
==24440== Access not within mapped region at address 0x0
==24440== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24440== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24440== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24440== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24440== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24440== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24440== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24440== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24440== by 0x8065F7E: main (nginx.c:382)
==24440== If you believe this happened as a result of a stack
==24440== overflow in your program's main thread (unlikely but
==24440== possible), you can try to increase the size of the
==24440== main thread stack using the --main-stacksize= flag.
==24440== The main thread stack size used in this run was 8388608.

stream/ssl.t TEST 14: ngx.semaphore in ssl_certificate_by_lua* - status code ok got: ''
expected: '200'
stream/ssl.t TEST 14: ngx.semaphore in ssl_certificate_by_lua* - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-ssl handshake: boolean
'
stream/ssl.t TEST 14: ngx.semaphore in ssl_certificate_by_lua* - grep_error_log_out (req 0) @@ -1,4 +1,3 @@
stream lua semaphore new
stream lua semaphore wait
stream lua semaphore wait yielding
-stream lua semaphore post
'
stream/ssl.t TEST 14: ngx.semaphore in ssl_certificate_by_lua* - pattern "ssl cert by lua done" should match a line in error.log (req 0)
stream/ssl.t TEST 14: ngx.semaphore in ssl_certificate_by_lua* - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/ssl.t TEST 14: ngx.semaphore in ssl_certificate_by_lua* - status code ok got: ''
expected: '200'
stream/ssl.t TEST 14: ngx.semaphore in ssl_certificate_by_lua* - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-ssl handshake: boolean
'
stream/ssl.t TEST 14: ngx.semaphore in ssl_certificate_by_lua* - grep_error_log_out (req 1) @@ -1,4 +0,0 @@
-stream lua semaphore new
-stream lua semaphore wait
-stream lua semaphore wait yielding
-stream lua semaphore post
'
stream/ssl.t TEST 14: ngx.semaphore in ssl_certificate_by_lua* - pattern "ssl cert by lua done" should match a line in error.log (req 1)
stream/ssl.t TEST 15: read PEM key chain but set DER key chain - Can't connect to 127.0.0.1:1984: Connection refused ==24442== Invalid read of size 4
==24442== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24442== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24442== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24442== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24442== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24442== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24442== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24442== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24442== by 0x8065F7E: main (nginx.c:382)
==24442== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24442==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/ssl.t TEST 15: read PEM key chain but set DER key chain - Can't connect to 127.0.0.1:1984: Connection refused ==24442==
==24442== Process terminating with default action of signal 11 (SIGSEGV)
==24442== Access not within mapped region at address 0x0
==24442== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24442== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24442== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24442== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24442== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24442== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24442== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24442== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24442== by 0x8065F7E: main (nginx.c:382)
==24442== If you believe this happened as a result of a stack
==24442== overflow in your program's main thread (unlikely but
==24442== possible), you can try to increase the size of the
==24442== main thread stack using the --main-stacksize= flag.
==24442== The main thread stack size used in this run was 8388608.

stream/ssl.t TEST 15: read PEM key chain but set DER key chain - status code ok got: ''
expected: '200'
stream/ssl.t TEST 15: read PEM key chain but set DER key chain - 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
'
stream/ssl.t TEST 15: read PEM key chain but set DER key chain - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/ssl.t TEST 15: read PEM key chain but set DER key chain - status code ok got: ''
expected: '200'
stream/ssl.t TEST 15: read PEM key chain but set DER key chain - 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
'
stream/ssl.t TEST 15: read PEM key chain but set DER key chain - pattern "lua ssl server name: "test.com"" should match a line in error.log (req 1)
stream/ssl.t TEST 11: tls version - TLSv1 - Can't connect to 127.0.0.1:1984: Connection refused ==24444== Invalid read of size 4
==24444== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24444== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24444== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24444== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24444== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24444== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24444== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24444== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24444== by 0x8065F7E: main (nginx.c:382)
==24444== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24444==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/ssl.t TEST 11: tls version - TLSv1 - Can't connect to 127.0.0.1:1984: Connection refused ==24444==
==24444== Process terminating with default action of signal 11 (SIGSEGV)
==24444== Access not within mapped region at address 0x0
==24444== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24444== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24444== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24444== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24444== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24444== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24444== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24444== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24444== by 0x8065F7E: main (nginx.c:382)
==24444== If you believe this happened as a result of a stack
==24444== overflow in your program's main thread (unlikely but
==24444== possible), you can try to increase the size of the
==24444== main thread stack using the --main-stacksize= flag.
==24444== The main thread stack size used in this run was 8388608.

stream/ssl.t TEST 11: tls version - TLSv1 - status code ok got: ''
expected: '200'
stream/ssl.t TEST 11: tls version - TLSv1 - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-connected: 1
-ssl handshake: boolean
'
stream/ssl.t TEST 11: tls version - TLSv1 - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/ssl.t TEST 11: tls version - TLSv1 - status code ok got: ''
expected: '200'
stream/ssl.t TEST 11: tls version - TLSv1 - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-connected: 1
-ssl handshake: boolean
'
stream/ssl.t TEST 11: tls version - TLSv1 - pattern "got TLS1 version: TLSv1," should match a line in error.log (req 1)
stream/time.t TEST 1: ngx.now() - Can't connect to 127.0.0.1:1984: Connection refused ==24450== Invalid read of size 4
==24450== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24450== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24450== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24450== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24450== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24450== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24450== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24450== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24450== by 0x8065F7E: main (nginx.c:382)
==24450== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24450==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/time.t TEST 1: ngx.now() - Can't connect to 127.0.0.1:1984: Connection refused ==24450==
==24450== Process terminating with default action of signal 11 (SIGSEGV)
==24450== Access not within mapped region at address 0x0
==24450== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24450== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24450== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24450== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24450== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24450== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24450== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24450== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24450== by 0x8065F7E: main (nginx.c:382)
==24450== If you believe this happened as a result of a stack
==24450== overflow in your program's main thread (unlikely but
==24450== possible), you can try to increase the size of the
==24450== main thread stack using the --main-stacksize= flag.
==24450== The main thread stack size used in this run was 8388608.
==24450== 512 bytes in 1 blocks are definitely lost in loss record 2,922 of 3,143
==24450== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24450== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24450== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24450== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24450== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24450== by 0x408A8C6: ir_nextk (lj_ir.c:175)
==24450== by 0x408A8C6: lj_ir_kgc (lj_ir.c:286)
==24450== by 0x409ED21: lj_record_ins (lj_record.c:2110)
==24450== by 0x40BB16A: trace_state (lj_trace.c:680)
==24450== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24450== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24450== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24450== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24450== by 0x407FA29: lua_resume (lj_api.c:1296)
==24450== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24450== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24450== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24450== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24450== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24450== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24450== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24450== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24450== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24450== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24450== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24450== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24450== by 0x8065F7E: main (nginx.c:382)
==24450==
{
<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
}
stream/time.t TEST 1: ngx.now() - status code ok got: ''
expected: '200'
stream/time.t TEST 1: ngx.now() - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-true
->= 0.099: true
-< 0.11: true
'
stream/time.t TEST 1: ngx.now() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/time.t TEST 1: ngx.now() - status code ok got: ''
expected: '200'
stream/time.t TEST 1: ngx.now() - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +0,0 @@
-true
->= 0.099: true
-< 0.11: true
'
stream/time.t TEST 3: ngx.update_time() - Can't connect to 127.0.0.1:1984: Connection refused ==24452== Invalid read of size 4
==24452== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24452== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24452== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24452== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24452== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24452== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24452== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24452== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24452== by 0x8065F7E: main (nginx.c:382)
==24452== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24452==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/time.t TEST 3: ngx.update_time() - Can't connect to 127.0.0.1:1984: Connection refused ==24452==
==24452== Process terminating with default action of signal 11 (SIGSEGV)
==24452== Access not within mapped region at address 0x0
==24452== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24452== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24452== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24452== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24452== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24452== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24452== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24452== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24452== by 0x8065F7E: main (nginx.c:382)
==24452== If you believe this happened as a result of a stack
==24452== overflow in your program's main thread (unlikely but
==24452== possible), you can try to increase the size of the
==24452== main thread stack using the --main-stacksize= flag.
==24452== The main thread stack size used in this run was 8388608.
==24452== 512 bytes in 1 blocks are definitely lost in loss record 2,922 of 3,141
==24452== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24452== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24452== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24452== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24452== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24452== by 0x408A8C6: ir_nextk (lj_ir.c:175)
==24452== by 0x408A8C6: lj_ir_kgc (lj_ir.c:286)
==24452== by 0x409ED21: lj_record_ins (lj_record.c:2110)
==24452== by 0x40BB16A: trace_state (lj_trace.c:680)
==24452== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24452== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24452== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24452== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24452== by 0x407FA29: lua_resume (lj_api.c:1296)
==24452== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24452== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24452== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24452== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24452== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24452== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24452== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24452== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24452== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24452== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24452== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24452== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24452== by 0x8065F7E: main (nginx.c:382)
==24452==
{
<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
}
stream/time.t TEST 3: ngx.update_time() - status code ok got: ''
expected: '200'
stream/time.t TEST 3: ngx.update_time() - response_body - response is expected (repeated req 0, req 0) got: ''
expected: 'true
'
stream/time.t TEST 3: ngx.update_time() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/time.t TEST 3: ngx.update_time() - status code ok got: ''
expected: '200'
stream/time.t TEST 3: ngx.update_time() - response_body - response is expected (repeated req 1, req 0) got: ''
expected: 'true
'
stream/time.t TEST 2: ngx.time() - Can't connect to 127.0.0.1:1984: Connection refused ==24454== Invalid read of size 4
==24454== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24454== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24454== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24454== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24454== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24454== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24454== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24454== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24454== by 0x8065F7E: main (nginx.c:382)
==24454== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24454==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/time.t TEST 2: ngx.time() - Can't connect to 127.0.0.1:1984: Connection refused ==24454==
==24454== Process terminating with default action of signal 11 (SIGSEGV)
==24454== Access not within mapped region at address 0x0
==24454== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24454== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24454== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24454== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24454== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24454== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24454== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24454== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24454== by 0x8065F7E: main (nginx.c:382)
==24454== If you believe this happened as a result of a stack
==24454== overflow in your program's main thread (unlikely but
==24454== possible), you can try to increase the size of the
==24454== main thread stack using the --main-stacksize= flag.
==24454== The main thread stack size used in this run was 8388608.
==24454== 512 bytes in 1 blocks are definitely lost in loss record 2,914 of 3,132
==24454== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24454== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24454== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24454== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24454== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24454== by 0x408A8C6: ir_nextk (lj_ir.c:175)
==24454== by 0x408A8C6: lj_ir_kgc (lj_ir.c:286)
==24454== by 0x409ED21: lj_record_ins (lj_record.c:2110)
==24454== by 0x40BB16A: trace_state (lj_trace.c:680)
==24454== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24454== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24454== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24454== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24454== by 0x407FA29: lua_resume (lj_api.c:1296)
==24454== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24454== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24454== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24454== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24454== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24454== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24454== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24454== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24454== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24454== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24454== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24454== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24454== by 0x8065F7E: main (nginx.c:382)
==24454==
{
<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
}
stream/time.t TEST 2: ngx.time() - status code ok got: ''
expected: '200'
stream/time.t TEST 2: ngx.time() - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-true
-true
'
stream/time.t TEST 2: ngx.time() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/time.t TEST 2: ngx.time() - status code ok got: ''
expected: '200'
stream/time.t TEST 2: ngx.time() - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-true
-true
'
stream/time.t TEST 4: ngx.today() - Can't connect to 127.0.0.1:1984: Connection refused ==24456== Invalid read of size 4
==24456== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24456== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24456== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24456== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24456== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24456== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24456== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24456== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24456== by 0x8065F7E: main (nginx.c:382)
==24456== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24456==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/time.t TEST 4: ngx.today() - Can't connect to 127.0.0.1:1984: Connection refused ==24456==
==24456== Process terminating with default action of signal 11 (SIGSEGV)
==24456== Access not within mapped region at address 0x0
==24456== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24456== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24456== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24456== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24456== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24456== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24456== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24456== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24456== by 0x8065F7E: main (nginx.c:382)
==24456== If you believe this happened as a result of a stack
==24456== overflow in your program's main thread (unlikely but
==24456== possible), you can try to increase the size of the
==24456== main thread stack using the --main-stacksize= flag.
==24456== The main thread stack size used in this run was 8388608.
==24456== 512 bytes in 1 blocks are definitely lost in loss record 2,906 of 3,125
==24456== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24456== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24456== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24456== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24456== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24456== by 0x408A8C6: ir_nextk (lj_ir.c:175)
==24456== by 0x408A8C6: lj_ir_kgc (lj_ir.c:286)
==24456== by 0x409ED21: lj_record_ins (lj_record.c:2110)
==24456== by 0x40BB16A: trace_state (lj_trace.c:680)
==24456== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24456== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24456== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24456== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24456== by 0x407FA29: lua_resume (lj_api.c:1296)
==24456== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24456== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24456== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24456== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24456== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24456== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24456== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24456== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24456== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24456== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24456== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24456== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24456== by 0x8065F7E: main (nginx.c:382)
==24456==
{
<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
}
stream/time.t TEST 4: ngx.today() - status code ok got: ''
expected: '200'
stream/time.t TEST 4: ngx.today() - response_body_like - response is expected () ''
doesn't match '(?^s:^\d{4}-\d{2}-\d{2})'
stream/time.t TEST 4: ngx.today() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/time.t TEST 4: ngx.today() - status code ok got: ''
expected: '200'
stream/time.t TEST 4: ngx.today() - response_body_like - response is expected () ''
doesn't match '(?^s:^\d{4}-\d{2}-\d{2})'
stream/time.t TEST 6: ngx.utctime() - Can't connect to 127.0.0.1:1984: Connection refused ==24458== Invalid read of size 4
==24458== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24458== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24458== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24458== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24458== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24458== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24458== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24458== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24458== by 0x8065F7E: main (nginx.c:382)
==24458== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24458==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/time.t TEST 6: ngx.utctime() - Can't connect to 127.0.0.1:1984: Connection refused ==24458==
==24458== Process terminating with default action of signal 11 (SIGSEGV)
==24458== Access not within mapped region at address 0x0
==24458== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24458== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24458== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24458== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24458== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24458== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24458== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24458== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24458== by 0x8065F7E: main (nginx.c:382)
==24458== If you believe this happened as a result of a stack
==24458== overflow in your program's main thread (unlikely but
==24458== possible), you can try to increase the size of the
==24458== main thread stack using the --main-stacksize= flag.
==24458== The main thread stack size used in this run was 8388608.
==24458== 512 bytes in 1 blocks are definitely lost in loss record 2,907 of 3,126
==24458== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24458== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24458== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24458== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24458== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24458== by 0x408A8C6: ir_nextk (lj_ir.c:175)
==24458== by 0x408A8C6: lj_ir_kgc (lj_ir.c:286)
==24458== by 0x409ED21: lj_record_ins (lj_record.c:2110)
==24458== by 0x40BB16A: trace_state (lj_trace.c:680)
==24458== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24458== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24458== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24458== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24458== by 0x407FA29: lua_resume (lj_api.c:1296)
==24458== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24458== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24458== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24458== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24458== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24458== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24458== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24458== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24458== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24458== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24458== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24458== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24458== by 0x8065F7E: main (nginx.c:382)
==24458==
{
<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
}
stream/time.t TEST 6: ngx.utctime() - status code ok got: ''
expected: '200'
stream/time.t TEST 6: ngx.utctime() - response_body_like - response is expected () ''
doesn't match '(?^s:^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$)'
stream/time.t TEST 6: ngx.utctime() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/time.t TEST 6: ngx.utctime() - status code ok got: ''
expected: '200'
stream/time.t TEST 6: ngx.utctime() - response_body_like - response is expected () ''
doesn't match '(?^s:^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$)'
stream/time.t TEST 5: ngx.localtime() - Can't connect to 127.0.0.1:1984: Connection refused ==24467== Invalid read of size 4
==24467== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24467== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24467== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24467== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24467== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24467== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24467== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24467== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24467== by 0x8065F7E: main (nginx.c:382)
==24467== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24467==
{
<insert_a_suppression_name_here>
Memcheck:Addr4
fun:ngx_vslprintf
fun:ngx_log_error_core
fun:ngx_http_lua_socket_tcp_read
fun:ngx_http_lua_socket_read_handler
fun:ngx_http_lua_socket_tcp_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
stream/time.t TEST 5: ngx.localtime() - Can't connect to 127.0.0.1:1984: Connection refused ==24467==
==24467== Process terminating with default action of signal 11 (SIGSEGV)
==24467== Access not within mapped region at address 0x0
==24467== at 0x806AB78: ngx_vslprintf (ngx_string.c:253)
==24467== by 0x80668F6: ngx_log_error_core (ngx_log.c:137)
==24467== by 0x8152B02: ngx_http_lua_socket_tcp_read (ngx_http_lua_socket_tcp.c:2629)
==24467== by 0x8152FDB: ngx_http_lua_socket_read_handler (ngx_http_lua_socket_tcp.c:3300)
==24467== by 0x814B627: ngx_http_lua_socket_tcp_handler (ngx_http_lua_socket_tcp.c:3251)
==24467== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24467== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24467== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24467== by 0x8065F7E: main (nginx.c:382)
==24467== If you believe this happened as a result of a stack
==24467== overflow in your program's main thread (unlikely but
==24467== possible), you can try to increase the size of the
==24467== main thread stack using the --main-stacksize= flag.
==24467== The main thread stack size used in this run was 8388608.
==24467== 512 bytes in 1 blocks are definitely lost in loss record 2,898 of 3,115
==24467== at 0x402A4F5: malloc (vg_replace_malloc.c:306)
==24467== by 0x402C6F9: realloc (vg_replace_malloc.c:834)
==24467== by 0x40CC146: mem_alloc (lib_aux.c:335)
==24467== by 0x406BA76: lj_mem_realloc (lj_gc.c:859)
==24467== by 0x4065625: lj_ir_growbot (lj_ir.c:105)
==24467== by 0x408A8C6: ir_nextk (lj_ir.c:175)
==24467== by 0x408A8C6: lj_ir_kgc (lj_ir.c:286)
==24467== by 0x409ED21: lj_record_ins (lj_record.c:2110)
==24467== by 0x40BB16A: trace_state (lj_trace.c:680)
==24467== by 0x40678A7: lj_vm_cpcall (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24467== by 0x40BC0CC: lj_trace_ins (lj_trace.c:739)
==24467== by 0x40756E6: lj_dispatch_ins (lj_dispatch.c:417)
==24467== by 0x4068FD9: lj_vm_inshook (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==24467== by 0x407FA29: lua_resume (lj_api.c:1296)
==24467== by 0x81877DC: ngx_stream_lua_run_thread (ngx_stream_lua_util.c:835)
==24467== by 0x81853E5: ngx_stream_lua_content_by_chunk (ngx_stream_lua_contentby.c:120)
==24467== by 0x81855B6: ngx_stream_lua_content_handler_inline (ngx_stream_lua_contentby.c:276)
==24467== by 0x818515A: ngx_stream_lua_content_handler (ngx_stream_lua_contentby.c:202)
==24467== by 0x810EC5E: ngx_stream_core_content_phase (ngx_stream_core_module.c:335)
==24467== by 0x810E8A1: ngx_stream_core_run_phases (ngx_stream_core_module.c:153)
==24467== by 0x810D197: ngx_stream_session_handler (ngx_stream_handler.c:292)
==24467== by 0x810D761: ngx_stream_init_connection (ngx_stream_handler.c:201)
==24467== by 0x8086560: ngx_event_accept (ngx_event_accept.c:320)
==24467== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==24467== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==24467== by 0x808F8C1: ngx_single_process_cycle (ngx_process_cycle.c:323)
==24467== by 0x8065F7E: main (nginx.c:382)
==24467==
{
<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
}
stream/time.t TEST 5: ngx.localtime() - status code ok got: ''
expected: '200'
stream/time.t TEST 5: ngx.localtime() - response_body_like - response is expected () ''
doesn't match '(?^s:^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$)'
stream/time.t TEST 5: ngx.localtime() - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
stream/time.t TEST 5: ngx.localtime() - status code ok got: ''
expected: '200'
stream/time.t TEST 5: ngx.localtime() - response_body_like - response is expected () ''
doesn't match '(?^s:^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$)'
time.t TEST 7: ngx.cookie_time() - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
Thu, 18-Nov-10 11:27:35 GMT
-Sun, 18-Sep-2039 23:06:40 GMT
+Thu, 01-Jan-70 00:00:00 GMT
'
time.t TEST 7: ngx.cookie_time() - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
Thu, 18-Nov-10 11:27:35 GMT
-Sun, 18-Sep-2039 23:06:40 GMT
+Thu, 01-Jan-70 00:00:00 GMT
'

Expected Failures

File Name Details
errlog-raw-log.t nginx: [error] hello world from init_by_lua
errlog.t nginx: [emerg] invalid number of arguments in "lua_capture_error_log" directive in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:25
errlog.t nginx: [emerg] invalid capture error log size "3k", minimum size is 4096 in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:25
process-type-hup.t TEST 1: sanity - pattern "init_worker_by_lua:6: process type: privileged" should match a line in error.log (req 1) Looks like you failed 1 test of 8.
re-opt.t TEST 1: default jit_stack_size too small - response_body - response is expected (repeated req 0, req 0) got: 'from: 1
to: 1563
'
expected: 'error: pcre_exec() failed: -27
'
re-opt.t TEST 1: default jit_stack_size too small - response_body - response is expected (repeated req 1, req 0) got: 'from: 1
to: 1563
'
expected: 'error: pcre_exec() failed: -27
'
re-sub.t ERROR: client socket timed out - TEST 5: replace template + submatches (exceeding buffers) '
re-sub.t TEST 5: replace template + submatches (exceeding buffers) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +0,0 @@
-s: [bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[b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c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd
-n: 2048
'
re-sub.t ERROR: client socket timed out - TEST 5: replace template + submatches (exceeding buffers) '
re-sub.t TEST 5: replace template + submatches (exceeding buffers) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +0,0 @@
-s: [bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]b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bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd[bc(c)]bd
-n: 2048
'
request.t TEST 7: ngx.req.start_time() - response_body - response is expected (repeated req 0, req 0) got: "true\x{0a}>= 0.099: true\x{0a}< 0.11: false\x{0a}"
length: 34
expected: "true\x{0a}>= 0.099: true\x{0a}< 0.11: true\x{0a}"
length: 33
strings begin to differ at char 29 (line 3 column 9)
request.t TEST 7: ngx.req.start_time() - response_body - response is expected (repeated req 1, req 0) got: "true\x{0a}>= 0.099: true\x{0a}< 0.11: false\x{0a}"
length: 34
expected: "true\x{0a}>= 0.099: true\x{0a}< 0.11: true\x{0a}"
length: 33
strings begin to differ at char 29 (line 3 column 9)
shared.t TEST 4: shared.ttl returns key ttl for non-default (positive) ttl - response_body_like - response is expected (0.2 sleep for 0.1s... -0.081) '0.2
sleep for 0.1s...
-0.081
'
doesn't match '(?^s:\A0.2
sleep for 0.1s...
0.\d*
\z)'
stream/errlog-raw-log.t nginx: [error] hello world from init_by_lua
stream/errlog.t nginx: [emerg] invalid number of arguments in "lua_capture_error_log" directive in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:17
stream/errlog.t nginx: [emerg] invalid capture error log size "3k", minimum size is 4096 in /home/ec2-user/git/lua-resty-core/t/servroot/conf/nginx.conf:17
time.t TEST 1: ngx.now() - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +1,3 @@
true
>= 0.099: true
-< 0.11: true
+< 0.11: false
'
time.t TEST 1: ngx.now() - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +1,3 @@
true
>= 0.099: true
-< 0.11: true
+< 0.11: false
'

Warnings

Go back to the index page.