(This page was automatically generated by the tools in the opsboy project on 15:46:44 27-May-2022 GMT.)

Detailed Test Report for ngx_lua in linux i386 (hv)

Summary

Commit Testing Time Unexpected
Failures
Expected
Failures
Files Tests Elapsed Time
98f482bf 2020-10-29 15:50:15 GMT 27 121 207 21503 10684 sec

LuaJIT

LuaJIT 2.1.0-beta3, commit 29a66f77

Compilation Errors

Unexpected Failures

File Name Details
016-resp-header.t TEST 94: fix negative content-length number(#1791) ==27628== Use of uninitialised value of size 4
==27628== at 0x406DAD5: lj_str_new (lj_str.c:347)
==27628== by 0x4078241: lj_buf_str (lj_buf.h:100)
==27628== by 0x4078241: lj_strfmt_pushvf (lj_strfmt.c:456)
==27628== by 0x407C67A: lua_pushfstring (lj_api.c:684)
==27628== by 0x81346BB: ngx_http_lua_ngx_resp_get_headers (ngx_http_lua_headers.c:499)
==27628== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27628== by 0x407F4A7: lua_pcall (lj_api.c:1169)
==27628== by 0x8147B89: ngx_http_lua_header_filter_by_chunk (ngx_http_lua_headerfilterby.c:101)
==27628== by 0x8147D0D: ngx_http_lua_header_filter_inline (ngx_http_lua_headerfilterby.c:181)
==27628== by 0x8147AB8: ngx_http_lua_header_filter (ngx_http_lua_headerfilterby.c:276)
==27628== by 0x80D86AB: ngx_http_not_modified_header_filter (ngx_http_not_modified_filter_module.c:61)
==27628== by 0x80A4BA9: ngx_http_send_header (ngx_http_core_module.c:1841)
==27628== by 0x80BD375: ngx_http_upstream_send_response (ngx_http_upstream.c:2920)
==27628== by 0x80BD375: ngx_http_upstream_process_header (ngx_http_upstream.c:2446)
==27628== by 0x80BAA1C: ngx_http_upstream_handler (ngx_http_upstream.c:1290)
==27628== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27628== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==27628== by 0x808E51C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27628== by 0x808CAA4: ngx_spawn_process (ngx_process.c:199)
==27628== by 0x808D632: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27628== by 0x808F66B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27628== by 0x8065F8B: main (nginx.c:385)
==27628==
{
<insert_a_suppression_name_here>
Memcheck:Value4
fun:lj_str_new
fun:lj_buf_str
fun:lj_strfmt_pushvf
fun:lua_pushfstring
fun:ngx_http_lua_ngx_resp_get_headers
fun:lj_BC_FUNCC
fun:lua_pcall
fun:ngx_http_lua_header_filter_by_chunk
fun:ngx_http_lua_header_filter_inline
fun:ngx_http_lua_header_filter
fun:ngx_http_not_modified_header_filter
fun:ngx_http_send_header
fun:ngx_http_upstream_send_response
fun:ngx_http_upstream_process_header
fun:ngx_http_upstream_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
016-resp-header.t TEST 94: fix negative content-length number(#1791) ==27628== Use of uninitialised value of size 4
==27628== at 0x406DC12: lj_str_alloc (lj_str.c:328)
==27628== by 0x406DC12: lj_str_new (lj_str.c:374)
==27628== by 0x4078241: lj_buf_str (lj_buf.h:100)
==27628== by 0x4078241: lj_strfmt_pushvf (lj_strfmt.c:456)
==27628== by 0x407C67A: lua_pushfstring (lj_api.c:684)
==27628== by 0x81346BB: ngx_http_lua_ngx_resp_get_headers (ngx_http_lua_headers.c:499)
==27628== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27628== by 0x407F4A7: lua_pcall (lj_api.c:1169)
==27628== by 0x8147B89: ngx_http_lua_header_filter_by_chunk (ngx_http_lua_headerfilterby.c:101)
==27628== by 0x8147D0D: ngx_http_lua_header_filter_inline (ngx_http_lua_headerfilterby.c:181)
==27628== by 0x8147AB8: ngx_http_lua_header_filter (ngx_http_lua_headerfilterby.c:276)
==27628== by 0x80D86AB: ngx_http_not_modified_header_filter (ngx_http_not_modified_filter_module.c:61)
==27628== by 0x80A4BA9: ngx_http_send_header (ngx_http_core_module.c:1841)
==27628== by 0x80BD375: ngx_http_upstream_send_response (ngx_http_upstream.c:2920)
==27628== by 0x80BD375: ngx_http_upstream_process_header (ngx_http_upstream.c:2446)
==27628== by 0x80BAA1C: ngx_http_upstream_handler (ngx_http_upstream.c:1290)
==27628== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27628== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==27628== by 0x808E51C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27628== by 0x808CAA4: ngx_spawn_process (ngx_process.c:199)
==27628== by 0x808D632: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27628== by 0x808F66B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27628== by 0x8065F8B: main (nginx.c:385)
==27628==
{
<insert_a_suppression_name_here>
Memcheck:Value4
fun:lj_str_alloc
fun:lj_str_new
fun:lj_buf_str
fun:lj_strfmt_pushvf
fun:lua_pushfstring
fun:ngx_http_lua_ngx_resp_get_headers
fun:lj_BC_FUNCC
fun:lua_pcall
fun:ngx_http_lua_header_filter_by_chunk
fun:ngx_http_lua_header_filter_inline
fun:ngx_http_lua_header_filter
fun:ngx_http_not_modified_header_filter
fun:ngx_http_send_header
fun:ngx_http_upstream_send_response
fun:ngx_http_upstream_process_header
fun:ngx_http_upstream_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
016-resp-header.t TEST 94: fix negative content-length number(#1791) ==27628== Syscall param write(buf) points to uninitialised byte(s)
==27628== at 0x4051A83: __write_nocancel (in /lib/libpthread-2.17.so)
==27628== by 0x80669FC: ngx_write_fd (ngx_files.h:147)
==27628== by 0x80669FC: ngx_log_error_core (ngx_log.c:195)
==27628== by 0x812D7F7: log_wrapper (ngx_http_lua_log.c:273)
==27628== by 0x812D84A: ngx_http_lua_print (ngx_http_lua_log.c:86)
==27628== by 0x4067583: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==27628== by 0x407F4A7: lua_pcall (lj_api.c:1169)
==27628== by 0x8147B89: ngx_http_lua_header_filter_by_chunk (ngx_http_lua_headerfilterby.c:101)
==27628== by 0x8147D0D: ngx_http_lua_header_filter_inline (ngx_http_lua_headerfilterby.c:181)
==27628== by 0x8147AB8: ngx_http_lua_header_filter (ngx_http_lua_headerfilterby.c:276)
==27628== by 0x80D86AB: ngx_http_not_modified_header_filter (ngx_http_not_modified_filter_module.c:61)
==27628== by 0x80A4BA9: ngx_http_send_header (ngx_http_core_module.c:1841)
==27628== by 0x80BD375: ngx_http_upstream_send_response (ngx_http_upstream.c:2920)
==27628== by 0x80BD375: ngx_http_upstream_process_header (ngx_http_upstream.c:2446)
==27628== by 0x80BAA1C: ngx_http_upstream_handler (ngx_http_upstream.c:1290)
==27628== by 0x8090997: ngx_epoll_process_events (ngx_epoll_module.c:901)
==27628== by 0x8085341: ngx_process_events_and_timers (ngx_event.c:257)
==27628== by 0x808E51C: ngx_worker_process_cycle (ngx_process_cycle.c:811)
==27628== by 0x808CAA4: ngx_spawn_process (ngx_process.c:199)
==27628== by 0x808D632: ngx_start_worker_processes (ngx_process_cycle.c:387)
==27628== by 0x808F66B: ngx_master_process_cycle (ngx_process_cycle.c:241)
==27628== by 0x8065F8B: main (nginx.c:385)
==27628== Address 0xbeb92bf6 is on thread 1's stack
==27628== in frame #1, created by ngx_log_error_core (ngx_files.h:106)
==27628==
{
<insert_a_suppression_name_here>
Memcheck:Param
write(buf)
fun:__write_nocancel
fun:ngx_write_fd
fun:ngx_log_error_core
fun:log_wrapper
fun:ngx_http_lua_print
fun:lj_BC_FUNCC
fun:lua_pcall
fun:ngx_http_lua_header_filter_by_chunk
fun:ngx_http_lua_header_filter_inline
fun:ngx_http_lua_header_filter
fun:ngx_http_not_modified_header_filter
fun:ngx_http_send_header
fun:ngx_http_upstream_send_response
fun:ngx_http_upstream_process_header
fun:ngx_http_upstream_handler
fun:ngx_epoll_process_events
fun:ngx_process_events_and_timers
fun:ngx_worker_process_cycle
fun:ngx_spawn_process
fun:ngx_start_worker_processes
fun:ngx_master_process_cycle
fun:main
}
106-timer.t # Looks like you planned 704 tests but ran 698.
109-timer-hup.t TEST 5: HUP reload should abort pending timers - grep_error_log_out (req 0) got: ''
expected: 'lua found 100 pending timers
'
109-timer-hup.t TEST 5: HUP reload should abort pending timers - grep_error_log_out (req 1) got: 'lua found 200 pending timers
'
expected: 'lua found 100 pending timers
'
124-init-worker.t TEST 20: destroy Lua VM in cache processes (without privileged agent or shdict) - grep_error_log_out (req 0) 'lua close the global Lua VM 04C47058 in the cache helper process 2084
lua close the global Lua VM 04C47058
lua close the global Lua VM 04A893C0
lua close the global Lua VM 04C47058 in the cache helper process 2086
lua close the global Lua VM 04C47058
'
doesn't match '(?^:\A(?:lua close the global Lua VM ([0-9A-F]+) in the cache helper process \d+
lua close the global Lua VM \1
lua close the global Lua VM \1 in the cache helper process \d+
lua close the global Lua VM \1
|lua close the global Lua VM ([0-9A-F]+) in the cache helper process \d+
lua close the global Lua VM \2 in the cache helper process \d+
lua close the global Lua VM \2
lua close the global Lua VM \2
|lua close the global Lua VM ([0-9A-F]+)
lua close the global Lua VM \3 in the cache helper process \d+
lua close the global Lua VM \3
lua close the global Lua VM \3 in the cache helper process \d+
|lua close the global Lua VM ([0-9A-F]+)
lua close the global Lua VM \4 in the cache helper process \d+
lua close the global Lua VM \4 in the cache helper process \d+
lua close the global Lua VM \4
)(?:lua close the global Lua VM [0-9A-F]+
)*\z)'
145-shdict-list.t TEST 15: list removed: expired '
145-shdict-list.t TEST 15: list removed: expired - status code ok got: ''
expected: '200'
145-shdict-list.t TEST 16: list removed: forcibly '
145-shdict-list.t TEST 16: list removed: forcibly - status code ok got: ''
expected: '200'
147-tcp-socket-timeouts.t TEST 1: sanity - response_body_like - response is expected (failed to send request: timeout) 'failed to send request: timeout
'
doesn't match '(?^s:received: foo
)'
147-tcp-socket-timeouts.t TEST 1: sanity - pattern "[error]" should not match any line in error.log but matches line "2020/10/29 18:50:03 [error] 8370\#0: *122 lua tcp socket write timed out, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2020/10/29 18:50:03 [debug] 8370\#0: *122 lua tcp socket handle write error
2020/10/29 18:50:03 [debug] 8370\#0: *122 lua tcp socket waking up the current request
2020/10/29 18:50:03 [debug] 8370\#0: *122 lua tcp operation done, resuming lua thread
2020/10/29 18:50:03 [debug] 8370\#0: *122 lua tcp socket calling prepare retvals handler 0814E0D2, u:0599BBF0
2020/10/29 18:50:03 [debug] 8370\#0: *122 lua tcp socket send return value handler
2020/10/29 18:50:03 [debug] 8370\#0: *122 poll del event: fd:4 ev:4
2020/10/29 18:50:03 [debug] 8370\#0: *122 poll del index: 4
2020/10/29 18:50:03 [debug] 8370\#0: *122 delete posted event 0596E2D8
2020/10/29 18:50:03 [debug] 8370\#0: *122 lua run thread, top:9 c:1
'
147-tcp-socket-timeouts.t TEST 7: different timeout with duplex socket (settimeouts) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1 @@
-received: ok
+failed to send request: timeout
-failed to receive a line: closed []
'
147-tcp-socket-timeouts.t TEST 7: different timeout with duplex socket (settimeouts) - pattern "[error]" should not match any line in error.log but matches line "2020/10/29 18:50:40 [error] 8426\#0: *176 lua tcp socket write timed out, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2020/10/29 18:50:40 [debug] 8426\#0: *176 lua tcp socket handle write error
2020/10/29 18:50:40 [debug] 8426\#0: *176 lua tcp socket waking up the current request
2020/10/29 18:50:40 [debug] 8426\#0: *176 lua tcp operation done, resuming lua thread
2020/10/29 18:50:40 [debug] 8426\#0: *176 lua tcp socket calling prepare retvals handler 0814E0D2, u:05ED54D8
2020/10/29 18:50:40 [debug] 8426\#0: *176 lua tcp socket send return value handler
2020/10/29 18:50:40 [debug] 8426\#0: *176 poll del event: fd:4 ev:4
2020/10/29 18:50:40 [debug] 8426\#0: *176 poll del index: 4
2020/10/29 18:50:40 [debug] 8426\#0: *176 delete posted event 05EBEB58
2020/10/29 18:50:40 [debug] 8426\#0: *176 lua run thread, top:9 c:1
'
147-tcp-socket-timeouts.t TEST 2: read timeout - response_body_like - response is expected (failed to send request: timeout) 'failed to send request: timeout
'
doesn't match '(?^s:failed to receive a line: timeout \[\]
)'
147-tcp-socket-timeouts.t TEST 2: read timeout - pattern "lua tcp socket read timed out" should match a line in error.log (req 0)
147-tcp-socket-timeouts.t TEST 6: different timeout with duplex socket (settimeout) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1 @@
-received: ok
+failed to send request: timeout
-failed to receive a line: closed []
'
147-tcp-socket-timeouts.t TEST 6: different timeout with duplex socket (settimeout) - pattern "lua tcp socket read timed out" should match a line in error.log (req 0)
147-tcp-socket-timeouts.t TEST 6: different timeout with duplex socket (settimeout) - pattern "failed to receive data: timeout" should match a line in error.log (req 0)
147-tcp-socket-timeouts.t TEST 6: different timeout with duplex socket (settimeout) - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1 @@
-received: ok
+failed to send request: timeout
-failed to receive a line: closed []
'
147-tcp-socket-timeouts.t TEST 6: different timeout with duplex socket (settimeout) - pattern "lua tcp socket read timed out" should match a line in error.log (req 1)
147-tcp-socket-timeouts.t TEST 6: different timeout with duplex socket (settimeout) - pattern "failed to receive data: timeout" should match a line in error.log (req 1)
151-initby-hup.t TEST 5: error in init after HUP, not reloaded but foo have changed. - response_body - response is expected (repeated req 0, req 0) got: "hello, FOO\x{0a}"
length: 11
expected: "foo have changed\x{0a}"
length: 17
strings begin to differ at char 1 (line 1 column 1)
157-socket-keepalive-hup.t TEST 1: exiting - pattern "timer prematurely expired: true" should match a line in error.log (req 0)
157-socket-keepalive-hup.t TEST 1: exiting - pattern "setkeepalive successfully" should match a line in error.log (req 0)
157-socket-keepalive-hup.t TEST 1: exiting - pattern "lua tcp socket set keepalive while process exiting, closing connection" should match a line in error.log (req 0)

Expected Failures

File Name Details
023-rewrite/socket-keepalive.t TEST 11: sanity (uds) - pattern "lua tcp socket keepalive: free connection pool for " should not match any line in error.log but matches line "2020/10/29 16:35:15 [debug] 6355\#0: lua tcp socket keepalive: free connection pool for \"127.0.0.1:1984\"" (req 0) 2020/10/29 16:35:15 [debug] 6355\#0: *273 http keepalive handler
2020/10/29 16:35:15 [debug] 6355\#0: *273 close http connection: 6
2020/10/29 16:35:15 [debug] 6355\#0: *273 event timer del: 6: 2803222
2020/10/29 16:35:15 [debug] 6355\#0: *273 reusable connection: 0
2020/10/29 16:35:15 [debug] 6355\#0: *273 free: 04D1EAF8, unused: 0
2020/10/29 16:35:15 [debug] 6355\#0: *273 free: 04D1EA58, unused: 0
2020/10/29 16:35:15 [debug] 6355\#0: *273 free: 04D1E9E0, unused: 0
2020/10/29 16:35:15 [debug] 6355\#0: *273 free: 04D1E958, unused: 0
2020/10/29 16:35:15 [debug] 6355\#0: *273 free: 04D1E8E0, unused: 0
'
043-shdict.t TEST 47: flush_expires an empty dict - response_body - response is expected (repeated req 0, req 0) got: '2
'
expected: '0
'
043-shdict.t TEST 54: list keys in an empty shdict with a limit - response_body - response is expected (repeated req 0, req 0) got: '2
'
expected: '0
'
043-shdict.t TEST 28: add key (key not exists) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
-add: true nil false
+add: false exists false
-foo = 10502
+foo = hello
'
043-shdict.t TEST 36: incr key (key not exists) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
-incr: nil not found
+incr: 10504 nil
-foo = nil
+foo = 10504
'
043-shdict.t TEST 12: get non-existent keys - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
-nil
+10504
-nil
+10504
'
043-shdict.t TEST 48: flush_expires a dict without expired items - response_body - response is expected (repeated req 0, req 0) got: '2
'
expected: '0
'
043-shdict.t TEST 57: list all keys in a shdict with more than 1024 keys with 0 limit set - response_body - response is expected (repeated req 0, req 0) got: '2050
'
expected: '2048
'
043-shdict.t TEST 51: list all keys in a shdict with expires - response_body - response is expected (repeated req 0, req 0) got: '1024
'
expected: '2
'
043-shdict.t TEST 53: list keys in an empty shdict - response_body - response is expected (repeated req 0, req 0) got: '1024
'
expected: '0
'
043-shdict.t nginx: [emerg] lua_shared_dict "dogs" is already defined as "dogs" in /home/ec2-user/git/lua-nginx-module/t/servroot/conf/nginx.conf:26
043-shdict.t TEST 32: replace key (key not exists) - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
-replace: false not found false
+replace: true nil false
-foo = nil
+foo = 10502
'
043-shdict.t TEST 52: list keys in a shdict with limit larger than number of keys - response_body - response is expected (repeated req 0, req 0) got: '3
'
expected: '2
'
043-shdict.t TEST 49: list all keys in a shdict - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +1,4 @@
-2
+3
bah
bar
+foo
'
056-flush.t TEST 1: flush wait - content - pattern "lua reuse free buf chain, but reallocate memory because 5 >= 0" should match a line in error.log (req 0)
056-flush.t TEST 1: flush wait - content - pattern "lua reuse free buf chain, but reallocate memory because 5 >= 0" should match a line in error.log (req 1)
065-tcp-socket-timeout.t TEST 17: re-connect after timed out - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
1: failed to connect: timeout
-2: connected: 1
+2: failed to connect: timeout
'
068-socket-keepalive.t TEST 12: sanity (uds) - pattern "lua tcp socket keepalive: free connection pool for " should not match any line in error.log but matches line "2020/10/29 17:53:38 [debug] 14219\#0: lua tcp socket keepalive: free connection pool for \"127.0.0.1:1984\"" (req 0) 2020/10/29 17:53:38 [debug] 14219\#0: *280 http keepalive handler
2020/10/29 17:53:38 [debug] 14219\#0: *280 close http connection: 8
2020/10/29 17:53:38 [debug] 14219\#0: *280 event timer del: 8: 7505763
2020/10/29 17:53:38 [debug] 14219\#0: *280 reusable connection: 0
2020/10/29 17:53:38 [debug] 14219\#0: *280 free: 04FEDEC8, unused: 0
2020/10/29 17:53:38 [debug] 14219\#0: *280 free: 04FEDE28, unused: 0
2020/10/29 17:53:38 [debug] 14219\#0: *280 free: 04FEDDB0, unused: 0
2020/10/29 17:53:38 [debug] 14219\#0: *280 free: 04FEDD28, unused: 0
2020/10/29 17:53:38 [debug] 14219\#0: *280 free: 04FEDCB0, unused: 0
'
068-socket-keepalive.t TEST 16: custom pools (same pool for different host:port) - tcp - pattern "lua tcp socket keepalive: free connection pool for " should not match any line in error.log but matches line "2020/10/29 17:53:50 [debug] 14347\#0: lua tcp socket keepalive: free connection pool for \"A\"" (req 0) 2020/10/29 17:53:50 [debug] 14347\#0: lua tcp socket keepalive close handler: fd:8
2020/10/29 17:53:50 [debug] 14347\#0: event timer del: 8: 7511324
2020/10/29 17:53:50 [debug] 14347\#0: reusable connection: 0
2020/10/29 17:53:49 [debug] 14379\#0: setproctitle: "nginx: worker process"
2020/10/29 17:53:50 [debug] 14347\#0: lua tcp socket keepalive: free connection pool for "B"
2020/10/29 17:53:49 [debug] 14379\#0: worker cycle
2020/10/29 17:53:50 [notice] 14347\#0: exiting
2020/10/29 17:53:50 [debug] 14347\#0: flush files
2020/10/29 17:53:49 [debug] 14379\#0: epoll timer: -1
'
068-socket-keepalive.t TEST 16: custom pools (same pool for different host:port) - tcp - pattern "lua tcp socket keepalive: free connection pool for " should not match any line in error.log but matches line "2020/10/29 17:53:50 [debug] 14347\#0: lua tcp socket keepalive: free connection pool for \"B\"" (req 0) 2020/10/29 17:53:49 [debug] 14379\#0: worker cycle
2020/10/29 17:53:50 [notice] 14347\#0: exiting
2020/10/29 17:53:50 [debug] 14347\#0: flush files
2020/10/29 17:53:49 [debug] 14379\#0: epoll timer: -1
2020/10/29 17:53:50 [debug] 14347\#0: run cleanup: 054CC000
2020/10/29 17:53:50 [debug] 14347\#0: run cleanup: 051E9478
2020/10/29 17:53:50 [debug] 14347\#0: lua decrementing the reference count for Lua VM: 1
2020/10/29 17:53:50 [debug] 14347\#0: lua close the global Lua VM 057AE8A0
2020/10/29 17:53:50 [debug] 14347\#0: run cleanup: 051E9400
'
068-socket-keepalive.t TEST 17: custom pools (different pool for the same host:port) - unix - pattern "lua tcp socket keepalive: free connection pool for " should not match any line in error.log but matches line "2020/10/29 17:53:53 [debug] 14379\#0: lua tcp socket keepalive: free connection pool for \"foo\"" (req 0) 2020/10/29 17:53:53 [notice] 14379\#0: exiting
2020/10/29 17:53:53 [debug] 14379\#0: flush files
2020/10/29 17:53:53 [debug] 14379\#0: run cleanup: 05CA2420
2020/10/29 17:53:53 [debug] 14379\#0: run cleanup: 05A65600
2020/10/29 17:53:53 [debug] 14379\#0: lua decrementing the reference count for Lua VM: 1
2020/10/29 17:53:53 [debug] 14379\#0: lua close the global Lua VM 05A508F0
2020/10/29 17:53:53 [debug] 14379\#0: run cleanup: 05A65588
2020/10/29 17:53:53 [debug] 14379\#0: run cleanup: 05A65510
2020/10/29 17:53:53 [debug] 14379\#0: run cleanup: 05564AD0
'
068-socket-keepalive.t TEST 18: custom pools (same pool for the same path) - unix - pattern "lua tcp socket keepalive: free connection pool for " should not match any line in error.log but matches line "2020/10/29 17:53:56 [debug] 14411\#0: lua tcp socket keepalive: free connection pool for \"A\"" (req 0) 2020/10/29 17:53:56 [debug] 14411\#0: lua tcp socket keepalive close handler: fd:8
2020/10/29 17:53:56 [debug] 14411\#0: event timer del: 8: 7517308
2020/10/29 17:53:56 [debug] 14411\#0: reusable connection: 0
2020/10/29 17:53:56 [debug] 14411\#0: lua tcp socket keepalive: free connection pool for "B"
2020/10/29 17:53:56 [debug] 14411\#0: worker cycle
2020/10/29 17:53:56 [debug] 14411\#0: epoll timer: 58752
2020/10/29 17:53:56 [debug] 14411\#0: epoll: fd:3 ev:2011 d:059C58C1
2020/10/29 17:53:56 [debug] 14411\#0: epoll_wait() error on fd:3 ev:2011
2020/10/29 17:53:56 [debug] 14411\#0: *448 http wait request handler
'
068-socket-keepalive.t TEST 18: custom pools (same pool for the same path) - unix - pattern "lua tcp socket keepalive: free connection pool for " should not match any line in error.log but matches line "2020/10/29 17:53:56 [debug] 14411\#0: lua tcp socket keepalive: free connection pool for \"B\"" (req 0) 2020/10/29 17:53:56 [debug] 14411\#0: worker cycle
2020/10/29 17:53:56 [debug] 14411\#0: epoll timer: 58752
2020/10/29 17:53:56 [debug] 14411\#0: epoll: fd:3 ev:2011 d:059C58C1
2020/10/29 17:53:56 [debug] 14411\#0: epoll_wait() error on fd:3 ev:2011
2020/10/29 17:53:56 [debug] 14411\#0: *448 http wait request handler
2020/10/29 17:53:56 [debug] 14411\#0: *448 malloc: 05D7D7E8:52
2020/10/29 17:53:56 [debug] 14411\#0: *448 malloc: 05D7D850:8
2020/10/29 17:53:56 [debug] 14411\#0: *448 malloc: 05FC0978:1024
2020/10/29 17:53:56 [debug] 14411\#0: *448 malloc: 05D7C068:8
'
068-socket-keepalive.t TEST 19: numeric pool option value - pattern "lua tcp socket keepalive: free connection pool for " should not match any line in error.log but matches line "2020/10/29 17:53:59 [debug] 14443\#0: lua tcp socket keepalive: free connection pool for \"A\"" (req 0) 2020/10/29 17:53:59 [debug] 14443\#0: worker cycle
2020/10/29 17:53:59 [debug] 14443\#0: epoll timer: 58808
2020/10/29 17:53:59 [debug] 14443\#0: epoll: fd:3 ev:2011 d:059C7959
2020/10/29 17:53:59 [debug] 14443\#0: epoll_wait() error on fd:3 ev:2011
2020/10/29 17:53:59 [debug] 14443\#0: *477 http wait request handler
2020/10/29 17:53:59 [debug] 14443\#0: *477 malloc: 04B9EF98:52
2020/10/29 17:53:59 [debug] 14443\#0: *477 malloc: 05FFB028:8
2020/10/29 17:53:59 [debug] 14443\#0: *477 malloc: 05FFA318:1024
2020/10/29 17:53:59 [debug] 14443\#0: *477 malloc: 05FFD060:8
'
068-socket-keepalive.t TEST 28: conn queuing: connect() can specify 'pool_size' for unix domain socket - pattern "lua tcp socket keepalive: free connection pool for " should not match any line in error.log but matches line "2020/10/29 17:54:27 [debug] 14728\#0: lua tcp socket keepalive: free connection pool for \"127.0.0.1:11211\"" (req 0) 2020/10/29 17:54:27 [notice] 14728\#0: exiting
2020/10/29 17:54:27 [debug] 14728\#0: flush files
2020/10/29 17:54:27 [debug] 14728\#0: run cleanup: 05A0D688
2020/10/29 17:54:27 [debug] 14728\#0: run cleanup: 0556A7F8
2020/10/29 17:54:27 [debug] 14728\#0: lua decrementing the reference count for Lua VM: 1
2020/10/29 17:54:27 [debug] 14728\#0: lua close the global Lua VM 05A508F0
2020/10/29 17:54:27 [debug] 14728\#0: run cleanup: 0556A780
2020/10/29 17:54:27 [debug] 14728\#0: run cleanup: 054B1B70
2020/10/29 17:54:27 [debug] 14728\#0: run cleanup: 060026A8
'
068-socket-keepalive.t TEST 29: conn queuing: connect() can specify 'pool_size' for custom pool - pattern "lua tcp socket keepalive: free connection pool for " should not match any line in error.log but matches line "2020/10/29 17:54:30 [debug] 14759\#0: lua tcp socket keepalive: free connection pool for \"unix:/home/ec2-user/git/lua-nginx-module/t/servroot/html/nginx.sock\"" (req 0) 2020/10/29 17:54:30 [debug] 14759\#0: worker cycle
2020/10/29 17:54:30 [debug] 14759\#0: epoll timer: 58760
2020/10/29 17:54:30 [debug] 14759\#0: epoll: fd:3 ev:2011 d:05AD3718
2020/10/29 17:54:30 [debug] 14759\#0: epoll_wait() error on fd:3 ev:2011
2020/10/29 17:54:30 [debug] 14759\#0: *756 http wait request handler
2020/10/29 17:54:30 [debug] 14759\#0: *756 malloc: 05A91C70:52
2020/10/29 17:54:30 [debug] 14759\#0: *756 malloc: 04AE9CD0:8
2020/10/29 17:54:30 [debug] 14759\#0: *756 malloc: 04B71548:1024
2020/10/29 17:54:30 [debug] 14759\#0: *756 malloc: 05A91CD8:8
'
068-socket-keepalive.t TEST 44: conn queuing: resume next connect operation if resumed connect failed immediately - pattern "[error]" should not match any line in error.log but matches line "2020/10/29 17:55:19 [error] 15224\#0: *1180 lua tcp socket queued connect timed out, when trying to connect to 127.0.0.1:11211, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2020/10/29 17:55:19 [debug] 15224\#0: *1180 lua tcp socket waking up the current request
2020/10/29 17:55:19 [debug] 15224\#0: *1180 lua tcp operation done, resuming lua thread
2020/10/29 17:55:19 [debug] 15224\#0: *1180 lua tcp socket calling prepare retvals handler 0814B1EA, u:051E1418
2020/10/29 17:55:19 [debug] 15224\#0: *1180 lua run thread, top:9 c:1
2020/10/29 17:55:19 [debug] 15224\#0: *1180 malloc: 04AC63E8:8
2020/10/29 17:55:19 [debug] 15224\#0: *1180 malloc: 04F43638:8
2020/10/29 17:55:19 [debug] 15224\#0: *1180 lua allocate new chainlink and new buf of size 8, cl:04AC63E8
2020/10/29 17:55:19 [debug] 15224\#0: *1180 malloc: 04F3CC88:52
2020/10/29 17:55:19 [debug] 15224\#0: *1180 malloc: 05236F68:8
'
086-init-by.t nginx: [error] init_by_lua error: init_by_lua:2: failed to init
091-coroutine.t nginx: [error] init_by_lua error: init_by_lua:7: init_by_lua:4: something went wrong
106-timer.t TEST 4: simple at (sleep in the timer callback) - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.(?:1[4-9]|2[0-6]?))" should match a line in error.log (req 0)
106-timer.t TEST 1: simple at - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:4[4-9]|5[0-6])\d*, context: ngx\.timer, client: \d+\.\d+\.\d+\.\d+, server: 0\.0\.0\.0:\d+)" should match a line in error.log (req 0)
106-timer.t TEST 1: simple at - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:4[4-9]|5[0-6])\d*, context: ngx\.timer, client: \d+\.\d+\.\d+\.\d+, server: 0\.0\.0\.0:\d+)" should match a line in error.log (req 1)
106-timer.t TEST 3: lua variable sharing via upvalue - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:4[4-9]|5[0-6]))" should match a line in error.log (req 0)
106-timer.t TEST 3: lua variable sharing via upvalue - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:4[4-9]|5[0-6]))" should match a line in error.log (req 1)
106-timer.t TEST 2: globals are shared - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:4[4-9]|5[0-6]))" should match a line in error.log (req 0)
106-timer.t TEST 2: globals are shared - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:4[4-9]|5[0-6]))" should match a line in error.log (req 1)
106-timer.t TEST 30: user args - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:4[4-9]|5[0-6])\d*, context: ngx\.timer)" should match a line in error.log (req 0)
106-timer.t TEST 30: user args - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:4[4-9]|5[0-6])\d*, context: ngx\.timer)" should match a line in error.log (req 1)
106-timer.t TEST 9: simple at (sleep in the timer callback) - log_by_lua - pattern "(?^:\[lua\] log_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:6[4-9]|7[0-6]))" should match a line in error.log (req 0)
106-timer.t TEST 9: simple at (sleep in the timer callback) - log_by_lua - pattern "(?^:\[lua\] log_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:6[4-9]|7[0-6]))" should match a line in error.log (req 1)
108-timer-safe.t TEST 1: simple at - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:4[4-9]|5[0-6]))" should match a line in error.log (req 0)
108-timer-safe.t TEST 1: simple at - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:4[4-9]|5[0-6]))" should match a line in error.log (req 1)
108-timer-safe.t TEST 2: simple at (sleep in the timer callback) - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.(?:6[4-9]|7[0-6]))" should match a line in error.log (req 0)
108-timer-safe.t TEST 7: simple at (sleep in the timer callback) - log_by_lua - pattern "(?^:\[lua\] log_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:6[4-9]|7[0-9]|8[0-6]))" should match a line in error.log (req 0)
108-timer-safe.t TEST 7: simple at (sleep in the timer callback) - log_by_lua - pattern "(?^:\[lua\] log_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:6[4-9]|7[0-9]|8[0-6]))" should match a line in error.log (req 1)
109-timer-hup.t TEST 3: trying to add new timer after HUP reload - pattern "lua abort pending timers" should match a line in error.log (req 0)
109-timer-hup.t TEST 3: trying to add new timer after HUP reload - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
109-timer-hup.t TEST 3: trying to add new timer after HUP reload - pattern "http lua close fake http connection" should match a line in error.log (req 0)
109-timer-hup.t TEST 3: trying to add new timer after HUP reload - pattern "timer prematurely expired: true" should match a line in error.log (req 0)
109-timer-hup.t TEST 3: trying to add new timer after HUP reload - pattern "failed to register a new timer after reload: process exiting, context: ngx.timer" should match a line in error.log (req 0)
109-timer-hup.t TEST 3: trying to add new timer after HUP reload - pattern "http lua close fake http connection" should match a line in error.log (req 1)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "lua abort pending timers" should match a line in error.log (req 0)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "http lua close fake http connection" should match a line in error.log (req 0)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "f: timer prematurely expired: true" should match a line in error.log (req 0)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "f: registered a new timer after reload" should match a line in error.log (req 0)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "f: exiting=true" should match a line in error.log (req 0)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "g: timer prematurely expired: false" should match a line in error.log (req 0)
109-timer-hup.t TEST 4: trying to add new timer after HUP reload - pattern "g: exiting=true" should match a line in error.log (req 0)
109-timer-hup.t TEST 7: HUP reload should abort pending timers (fuzz test) - grep_error_log_out (req 0) got: ''
expected: 'lua found 8191 pending timers
'
109-timer-hup.t TEST 7: HUP reload should abort pending timers (fuzz test) - grep_error_log_out (req 1) got: 'lua found 8174 pending timers
'
expected: 'lua found 8191 pending timers
'
109-timer-hup.t TEST 6: HUP reload should abort pending timers (coroutine + cosocket) - grep_error_log_out (req 0) got: ''
expected: 'lua found 1 pending timers
'
109-timer-hup.t TEST 6: HUP reload should abort pending timers (coroutine + cosocket) - grep_error_log_out (req 1) got: ''
expected: 'lua found 1 pending timers
'
109-timer-hup.t TEST 2: multiple timers - pattern "lua abort pending timers" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "http lua close fake http connection" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 1!" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 2!" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 3!" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 4!" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 5!" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 6!" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 7!" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 8!" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 9!" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "in callback: hello, 10!" should match a line in error.log (req 0)
109-timer-hup.t TEST 2: multiple timers - pattern "timer prematurely expired: true" should match a line in error.log (req 0)
109-timer-hup.t TEST 1: single timer - pattern "lua abort pending timers" should match a line in error.log (req 0)
109-timer-hup.t TEST 1: single timer - pattern "lua ngx.timer expired" should match a line in error.log (req 0)
109-timer-hup.t TEST 1: single timer - pattern "http lua close fake http connection" should match a line in error.log (req 0)
109-timer-hup.t TEST 1: single timer - pattern "in callback: hello, 1" should match a line in error.log (req 0)
109-timer-hup.t TEST 1: single timer - pattern "timer prematurely expired: true" should match a line in error.log (req 0)
126-shdict-frag.t TEST 2: merge 2 single-page free slabs (forcibly evicted, merge backward) - response_body - response is expected (repeated req 0, req 0) @@ -1,12 +1,12 @@
successfully set foo.
-successfully set bar.
+failed to set bar: no memory
found foo: 4000
-successfully set baz with force.
-foo not found
+failed to set baz: no memory
+found foo: 4000
bar not found
-found baz: 8102
-successfully set foo with force.
-successfully set bar.
+baz not found
+successfully set foo.
+successfully set bar with force.
found foo: 4000
successfully set baz with force.
foo not found
'
126-shdict-frag.t TEST 9: cannot merge in-used big slabs page (forward) - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +1,5 @@
-successfully set bar.
+successfully set bar with force.
failed to safe set baz: no memory
found bar: 4000
delete bar
-failed to safe set baz: no memory
+successfully safe set baz
'
132-lua-blocks.t nginx: [emerg] Lua code block missing the closing long bracket "]==]" in /home/ec2-user/git/lua-nginx-module/t/servroot/conf/nginx.conf:41
132-lua-blocks.t nginx: [emerg] Lua code block missing the closing long bracket "]=]" in /home/ec2-user/git/lua-nginx-module/t/servroot/conf/nginx.conf:41
132-lua-blocks.t nginx: [emerg] "events" directive is not allowed here in /home/ec2-user/git/lua-nginx-module/t/servroot/conf/nginx.conf:56
132-lua-blocks.t nginx: [emerg] Lua code block missing the closing long bracket "]]" in /home/ec2-user/git/lua-nginx-module/t/servroot/conf/nginx.conf:41
142-ssl-session-store.t nginx: [emerg] "ssl_session_store_by_lua_block" directive is not allowed here in /home/ec2-user/git/lua-nginx-module/t/servroot/conf/nginx.conf:28
145-shdict-list.t TEST 15: list removed: expired - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +0,0 @@
-max - 1 matched keys length: true
-keys all expired, left number: 0
-loop again, max matched: true
-loop again, max matched: true
'
145-shdict-list.t TEST 8: get_keys operation on list type - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
-push success
+push err: value not a list
key: foo
'
145-shdict-list.t TEST 12: lpush and lpop - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +1,2 @@
-3
+push err: value not a list
-2
+pop err: value not a list
-1
'
145-shdict-list.t TEST 5: add operation on list type - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +1,3 @@
-push success
+push err: value not a list
false exists
-nil value is a list
+bar nil
'
145-shdict-list.t TEST 13: lpush and rpop - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +1,2 @@
-1
+push err: value not a list
-2
+pop err: value not a list
-3
'
145-shdict-list.t TEST 1: lpush & lpop - response_body - response is expected (repeated req 0, req 0) @@ -1,5 +1,5 @@
-push success
+push err: value not a list
-1 nil
+nil value not a list
-bar nil
+nil value not a list
-0 nil
+nil value not a list
-nil nil
+nil value not a list
'
145-shdict-list.t TEST 4: replace operation on list type - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +1,3 @@
-push success
+push err: value not a list
true nil
bar nil
'
145-shdict-list.t TEST 16: list removed: forcibly - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +0,0 @@
-two == number 2: true
-no one left: 0
-two == number 2: true
'
146-malloc-trim.t TEST 1: malloc_trim() every 1 req, in subreq - grep_error_log_out (req 0) 'malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
'
doesn't match '(?^:\Amalloc_trim\(1\) returned [01]
\z)'
146-malloc-trim.t TEST 2: malloc_trim() every 1 req, in subreq - grep_error_log_out (req 0) 'malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
'
doesn't match '(?^:\Amalloc_trim\(1\) returned [01]
malloc_trim\(1\) returned [01]
malloc_trim\(1\) returned [01]
malloc_trim\(1\) returned [01]
malloc_trim\(1\) returned [01]
malloc_trim\(1\) returned [01]
\z)'
146-malloc-trim.t TEST 7: zero count means off, log_by_lua - grep_error_log_out (req 0) got: 'malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
'
expected: ''
146-malloc-trim.t TEST 6: zero count means off - pattern "malloc_trim() disabled" should not match any line in error.log but matches line "2020/10/29 18:48:19 [debug] 8101\#0: *80 malloc_trim() disabled" (req 0) 2020/10/29 18:48:19 [debug] 8028\#0: malloc: 0545B070:28
2020/10/29 18:48:19 [debug] 8101\#0: *80 lua log handler, uri:"/ver" c:1
2020/10/29 18:48:19 [debug] 8028\#0: malloc: 0545B0C0:8
2020/10/29 18:48:19 [debug] 8101\#0: *80 http log handler
2020/10/29 18:48:19 [debug] 8028\#0: malloc: 0545B0F8:8
2020/10/29 18:48:19 [debug] 8101\#0: *80 malloc: 05574D10:114
2020/10/29 18:48:19 [debug] 8101\#0: *80 malloc: 05574DB8:8
2020/10/29 18:48:19 [debug] 8028\#0: malloc: 0545B130:8
2020/10/29 18:48:19 [debug] 8028\#0: malloc: 0545B168:32
'
146-malloc-trim.t TEST 6: zero count means off - pattern "malloc_trim() disabled" should not match any line in error.log but matches line "2020/10/29 18:48:19 [debug] 8101\#0: *81 malloc_trim() disabled" (req 0) 2020/10/29 18:48:19 [debug] 8028\#0: malloc: 0546DAF0:8
2020/10/29 18:48:19 [debug] 8101\#0: *81 lua log handler, uri:"/ver" c:1
2020/10/29 18:48:19 [debug] 8028\#0: malloc: 0546DB28:128
2020/10/29 18:48:19 [debug] 8101\#0: *81 http log handler
2020/10/29 18:48:19 [debug] 8028\#0: malloc: 0546DBD8:8
2020/10/29 18:48:19 [debug] 8101\#0: *81 malloc: 05576C80:114
2020/10/29 18:48:19 [debug] 8028\#0: malloc: 0546DC10:8
2020/10/29 18:48:19 [debug] 8101\#0: *81 malloc: 05576D28:8
2020/10/29 18:48:19 [debug] 8028\#0: malloc: 0546DC48:8
'
146-malloc-trim.t TEST 6: zero count means off - pattern "malloc_trim() disabled" should not match any line in error.log but matches line "2020/10/29 18:48:19 [debug] 8101\#0: *82 malloc_trim() disabled" (req 0) 2020/10/29 18:48:19 [debug] 8101\#0: *82 lua log handler, uri:"/ver" c:1
2020/10/29 18:48:19 [debug] 8101\#0: *82 http log handler
2020/10/29 18:48:19 [debug] 8101\#0: *82 malloc: 05578BF0:114
2020/10/29 18:48:19 [debug] 8101\#0: *82 malloc: 05578C98:8
2020/10/29 18:48:19 [debug] 8101\#0: *82 free: 05578C98, unused: 0
2020/10/29 18:48:19 [debug] 8101\#0: *82 free: 05578BB8, unused: 0
2020/10/29 18:48:19 [debug] 8101\#0: *82 free: 05578B48, unused: 0
2020/10/29 18:48:19 [debug] 8101\#0: *82 free: 05578AA8, unused: 0
2020/10/29 18:48:19 [debug] 8101\#0: *82 free: 05578A38, unused: 0
'
146-malloc-trim.t TEST 6: zero count means off - pattern "malloc_trim() disabled" should not match any line in error.log but matches line "2020/10/29 18:48:20 [debug] 8101\#0: *83 malloc_trim() disabled" (req 0) 2020/10/29 18:48:20 [debug] 8101\#0: *83 lua log handler, uri:"/ver" c:1
2020/10/29 18:48:20 [debug] 8101\#0: *83 http log handler
2020/10/29 18:48:20 [debug] 8101\#0: *83 malloc: 0557AB60:114
2020/10/29 18:48:20 [debug] 8101\#0: *83 malloc: 0557AC08:8
2020/10/29 18:48:20 [debug] 8101\#0: *83 free: 0557AC08, unused: 0
2020/10/29 18:48:20 [debug] 8101\#0: *83 free: 0557AB28, unused: 0
2020/10/29 18:48:20 [debug] 8101\#0: *83 free: 0557AAB8, unused: 0
2020/10/29 18:48:20 [debug] 8101\#0: *83 free: 0557AA18, unused: 0
2020/10/29 18:48:20 [debug] 8101\#0: *83 free: 0557A9A8, unused: 0
'
146-malloc-trim.t TEST 4: malloc_trim() every 3 req, in subreq - grep_error_log_out (req 0) 'malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
'
doesn't match '(?^:\Amalloc_trim\(1\) returned [01]
malloc_trim\(1\) returned [01]
\z)'
146-malloc-trim.t TEST 8: malloc_trim() every 1 req - grep_error_log_out (req 0) 'malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
malloc_trim(1) returned 0
'
doesn't match '(?^:\Amalloc_trim\(1\) returned [01]
\z)'
146-malloc-trim.t TEST 5: malloc_trim() every 2 req, in subreq, big memory usage - grep_error_log_out (req 0) @@ -1,3 +1,18 @@
-malloc_trim(1) returned 1
+malloc_trim(1) returned 0
-malloc_trim(1) returned 1
+malloc_trim(1) returned 0
-malloc_trim(1) returned 1
+malloc_trim(1) returned 0
+malloc_trim(1) returned 0
+malloc_trim(1) returned 0
+malloc_trim(1) returned 0
+malloc_trim(1) returned 0
+malloc_trim(1) returned 0
+malloc_trim(1) returned 0
+malloc_trim(1) returned 0
+malloc_trim(1) returned 0
+malloc_trim(1) returned 0
+malloc_trim(1) returned 0
+malloc_trim(1) returned 0
+malloc_trim(1) returned 0
+malloc_trim(1) returned 0
+malloc_trim(1) returned 0
+malloc_trim(1) returned 0
'
148-fake-shm-zone.t TEST 4: multiply zones - response_body - response is expected (repeated req 0, req 0) @@ -1,7 +1,7 @@
name=x1
size=1048576
isinit=true
-isold=false
+isold=true
name=x2
size=2097152
isinit=true
'
148-fake-shm-zone.t nginx: [emerg] lua_fake_shm "x1" is already defined as "x1" in /home/ec2-user/git/lua-nginx-module/t/servroot/conf/nginx.conf:26
152-timer-every.t TEST 1: simple very - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:4[4-9]|5[0-6])\d*, context: ngx\.timer, client: \d+\.\d+\.\d+\.\d+, server: 0\.0\.0\.0:\d+)" should match a line in error.log (req 0)
152-timer-every.t TEST 1: simple very - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.(?:09|10)\d*, context: ngx\.timer, client: \d+\.\d+\.\d+\.\d+, server: 0\.0\.0\.0:\d+)" should match a line in error.log (req 0)
152-timer-every.t TEST 1: simple very - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.(?:09|10)\d*, context: ngx\.timer, client: \d+\.\d+\.\d+\.\d+, server: 0\.0\.0\.0:\d+)" should match a line in error.log (req 1)
152-timer-every.t TEST 4: create the next timer immediately when timer start running - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
registered timer
-foo = 6
+foo = 3
'
152-timer-every.t TEST 4: create the next timer immediately when timer start running - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
registered timer
-foo = 6
+foo = 3
'
152-timer-every.t TEST 3: lua variable sharing via upvalue - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
registered timer
-foo = 6
+foo = 3
'
152-timer-every.t TEST 3: lua variable sharing via upvalue - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,2 @@
registered timer
-foo = 6
+foo = 3
'
152-timer-every.t TEST 6: memory leak check - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,2 @@
registered timer
-growth1 == growth2: true
+growth1 == growth2: false
'
153-semaphore-hup.t TEST 1: timer + reload - grep_error_log_out (req 0) @@ -1,5 +1,5 @@
created semaphore object
-created semaphore object
try to reload nginx
+created semaphore object
created semaphore object
created semaphore object
'
153-semaphore-hup.t TEST 2: timer + reload (lua code cache off) - grep_error_log_out (req 0) @@ -1,5 +1,2 @@
created semaphore object
created semaphore object
-try to reload nginx
-created semaphore object
-created semaphore object
'
161-load-resty-core.t nginx: [alert] failed to load the 'resty.core' module (https://github.com/openresty/lua-resty-core); ensure you are using an OpenResty release from https://openresty.org/en/download.html (reason: module 'resty.core' not found:
162-exit-worker.t TEST 6: skip in cache processes (with exit worker and privileged agent) - pattern "[error]" should not match any line in error.log but matches line "2020/10/29 18:55:21 [error] 10211\#0: exit_worker_by_lua_file error: cannot open /home/ec2-user/git/lua-nginx-module/t/servroot/html/exit_worker.lua: No such file or directory" (req 0) 2020/10/29 18:55:21 [debug] 10242\#0: *37 event timer add: 15: 60000:11203703
2020/10/29 18:55:21 [debug] 10242\#0: *37 reusable connection: 1
2020/10/29 18:55:21 [debug] 10242\#0: *37 epoll add event: fd:15 op:1 ev:80002001
2020/10/29 18:55:21 [debug] 10242\#0: timer delta: 132
2020/10/29 18:55:20 [debug] 10245\#0: epoll timer: 60000
2020/10/29 18:55:21 [debug] 10242\#0: worker cycle
2020/10/29 18:55:21 [debug] 10242\#0: epoll timer: 60000
2020/10/29 18:55:21 [debug] 10242\#0: epoll: fd:15 ev:0001 d:05260334
2020/10/29 18:55:21 [debug] 10242\#0: *37 http wait request handler
'

Warnings

Go back to the index page.