(This page was automatically generated by the tools in the opsboy project on 05:23:54 23-Feb-2019 GMT.)

Detailed Test Report for ngx_lua in linux x86_64 (wv)

Summary

Commit Testing Time Unexpected
Failures
Expected
Failures
Files Tests Elapsed Time
ee47e55e 2019-02-22 02:01:38 GMT 14 121 199 20500 6021 sec

LuaJIT

LuaJIT 2.1.0-beta3, commit 0e646b5

Compilation Errors

Unexpected Failures

File Name Details
013-base64.t TEST 18: base64 encode with wrong 2nd parameter - pattern "(?^:bad argument \\#2 to 'encode_base64' \(boolean expected, got number\)|\[error\] .*? boolean argument only)" should match a line in error.log (req 0)
013-base64.t TEST 18: base64 encode with wrong 2nd parameter - pattern "(?^:bad argument \\#2 to 'encode_base64' \(boolean expected, got number\)|\[error\] .*? boolean argument only)" should match a line in error.log (req 1)
035-gmatch.t TEST 19: gmatch iterator used by another request - response_body - response is expected (repeated req 0, req 0) got: "matched\x{0a}matched\x{0a}"
length: 16
expected: "matched\x{0a}sr failed: 500\x{0a}"
length: 23
strings begin to differ at char 9 (line 2 column 1)
035-gmatch.t TEST 19: gmatch iterator used by another request - pattern "attempt to use ngx.re.gmatch iterator in a request that did not create it" should match a line in error.log (req 0)
035-gmatch.t TEST 19: gmatch iterator used by another request - response_body - response is expected (repeated req 1, req 0) got: "matched\x{0a}matched\x{0a}"
length: 16
expected: "matched\x{0a}sr failed: 500\x{0a}"
length: 23
strings begin to differ at char 9 (line 2 column 1)
035-gmatch.t TEST 19: gmatch iterator used by another request - pattern "attempt to use ngx.re.gmatch iterator in a request that did not create it" should match a line in error.log (req 1)
035-gmatch.t TEST 19: gmatch iterator used by another request - response_body - response is expected (repeated req 2, req 0) got: "matched\x{0a}matched\x{0a}"
length: 16
expected: "matched\x{0a}sr failed: 500\x{0a}"
length: 23
strings begin to differ at char 9 (line 2 column 1)
035-gmatch.t TEST 19: gmatch iterator used by another request - pattern "attempt to use ngx.re.gmatch iterator in a request that did not create it" should match a line in error.log (req 2)
035-gmatch.t TEST 19: gmatch iterator used by another request - response_body - response is expected (repeated req 3, req 0) got: "matched\x{0a}matched\x{0a}"
length: 16
expected: "matched\x{0a}sr failed: 500\x{0a}"
length: 23
strings begin to differ at char 9 (line 2 column 1)
035-gmatch.t TEST 19: gmatch iterator used by another request - pattern "attempt to use ngx.re.gmatch iterator in a request that did not create it" should match a line in error.log (req 3)
035-gmatch.t TEST 19: gmatch iterator used by another request - response_body - response is expected (repeated req 4, req 0) got: "matched\x{0a}matched\x{0a}"
length: 16
expected: "matched\x{0a}sr failed: 500\x{0a}"
length: 23
strings begin to differ at char 9 (line 2 column 1)
035-gmatch.t TEST 19: gmatch iterator used by another request - pattern "attempt to use ngx.re.gmatch iterator in a request that did not create it" should match a line in error.log (req 4)
062-count.t TEST 12: shdict metatable - response_body - response is expected (repeated req 0, req 0) got: 'n = 22
'
expected: 'n = 18
'
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 receive a line: closed [ok]
-failed to receive a line: closed []
'

Expected Failures

File Name Details
004-require.t TEST 3: expand default path (after) - response_body_like - response is expected (/home/ec2-user/git/lua-resty-core/lib/?.lua;/home/ec2-user/git/lua-resty-lrucache/lib/?.lua;/home/ec2-user/git/lua-nginx-module/t/servroot/html/?.lua;./?.lua;/opt/luajit-sysm/share/luajit-2.1.0-beta3/?.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua;/opt/luajit-sysm/share/lua/5.1/?.lua;/opt/luajit-sysm/share/lua/5.1/?/init.lua;) '/home/ec2-user/git/lua-resty-core/lib/?.lua;/home/ec2-user/git/lua-resty-lrucache/lib/?.lua;/home/ec2-user/git/lua-nginx-module/t/servroot/html/?.lua;./?.lua;/opt/luajit-sysm/share/luajit-2.1.0-beta3/?.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua;/opt/luajit-sysm/share/lua/5.1/?.lua;/opt/luajit-sysm/share/lua/5.1/?/init.lua;'
doesn't match '(?^s:^[^;]+/servroot(_\d+)?/html/\?\.lua;(.+\.lua)?;*$)'
005-exit.t TEST 24: exit 444 in header filter - status code ok got: ''
expected: '444'
005-exit.t TEST 23: exit both in header filter and content handler - status code ok got: ''
expected: '201'
005-exit.t TEST 21: exit 403 in header filter - status code ok got: ''
expected: '403'
005-exit.t TEST 21: exit 403 in header filter - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
005-exit.t TEST 21: exit 403 in header filter - status code ok got: ''
expected: '403'
005-exit.t TEST 21: exit 403 in header filter - response_body_like - response is expected () ''
doesn't match '(?^s:403 Forbidden)'
005-exit.t TEST 22: exit 201 in header filter - status code ok got: ''
expected: '201'
023-rewrite/on-abort.t TEST 6: ngx.exit(0) with pending subrequest - pattern "(?^:lua user thread aborted: runtime error: rewrite_by_lua\(nginx\.conf:\d+\):4: attempt to abort with pending subrequests)" should match a line in error.log (req 0)
023-rewrite/on-abort.t TEST 6: ngx.exit(0) with pending subrequest - pattern "(?^:lua user thread aborted: runtime error: rewrite_by_lua\(nginx\.conf:\d+\):4: attempt to abort with pending subrequests)" should match a line in error.log (req 1)
023-rewrite/req-socket.t TEST 7: Expect & 100 Continue - status code ok got: '200'
expected: '100'
023-rewrite/req-socket.t TEST 7: Expect & 100 Continue - response_body_like - response is expected (failed to get the request socket: test expect failed) 'failed to get the request socket: test expect failed
'
doesn't match '(?^s:\breceived: hello\b.*?\breceived: worl\b)'
023-rewrite/req-socket.t TEST 7: Expect & 100 Continue - status code ok got: '200'
expected: '100'
023-rewrite/req-socket.t TEST 7: Expect & 100 Continue - response_body_like - response is expected (failed to get the request socket: test expect failed) 'failed to get the request socket: test expect failed
'
doesn't match '(?^s:\breceived: hello\b.*?\breceived: worl\b)'
024-access/on-abort.t TEST 6: ngx.exit(0) with pending subrequest - pattern "(?^:lua user thread aborted: runtime error: access_by_lua\(nginx\.conf:\d+\):4: attempt to abort with pending subrequests)" should match a line in error.log (req 0)
024-access/on-abort.t TEST 6: ngx.exit(0) with pending subrequest - pattern "(?^:lua user thread aborted: runtime error: access_by_lua\(nginx\.conf:\d+\):4: attempt to abort with pending subrequests)" should match a line in error.log (req 1)
025-codecache.t TEST 29: cosocket connection pool timeout (after Lua VM destroys) - pattern "(?^:\blua tcp socket keepalive: free connection pool [0-9A-F]+ for "127.0.0.1:)" should match a line in error.log (req 0)
025-codecache.t TEST 29: cosocket connection pool timeout (after Lua VM destroys) - pattern "lua tcp socket keepalive max idle timeout" should not match any line in error.log but matches line "2019/02/22 02:39:11 [debug] 24255\#0: lua tcp socket keepalive max idle timeout" (req 0) 2019/02/22 02:39:11 [debug] 24255\#0: lua tcp socket keepalive close handler: fd:8
2019/02/22 02:39:11 [debug] 24255\#0: poll del event: fd:8 ev:1
2019/02/22 02:39:11 [debug] 24255\#0: reusable connection: 0
2019/02/22 02:39:11 [debug] 24255\#0: lua tcp socket keepalive: free connection pool for "127.0.0.1:11211"
2019/02/22 02:39:11 [debug] 24255\#0: posted event 0000000008856020
2019/02/22 02:39:11 [debug] 24255\#0: *1 delete posted event 0000000008856020
2019/02/22 02:39:11 [debug] 24255\#0: *1 http run request: "/t?"
2019/02/22 02:39:11 [debug] 24255\#0: *1 http writer handler: "/t?"
2019/02/22 02:39:11 [debug] 24255\#0: *1 http output filter "/t?"
'
025-codecache.t TEST 29: cosocket connection pool timeout (after Lua VM destroys) - pattern "(?^:\blua tcp socket keepalive: free connection pool [0-9A-F]+ for "127.0.0.1:)" should match a line in error.log (req 1)
025-codecache.t TEST 29: cosocket connection pool timeout (after Lua VM destroys) - pattern "lua tcp socket keepalive max idle timeout" should not match any line in error.log but matches line "2019/02/22 02:39:11 [debug] 24255\#0: lua tcp socket keepalive max idle timeout" (req 1) 2019/02/22 02:39:11 [debug] 24255\#0: lua tcp socket keepalive close handler: fd:8
2019/02/22 02:39:11 [debug] 24255\#0: poll del event: fd:8 ev:1
2019/02/22 02:39:11 [debug] 24255\#0: reusable connection: 0
2019/02/22 02:39:11 [debug] 24255\#0: lua tcp socket keepalive: free connection pool for "127.0.0.1:11211"
2019/02/22 02:39:11 [debug] 24255\#0: posted event 0000000008856020
2019/02/22 02:39:11 [debug] 24255\#0: *1 delete posted event 0000000008856020
2019/02/22 02:39:11 [debug] 24255\#0: *1 http run request: "/t?"
2019/02/22 02:39:11 [debug] 24255\#0: *1 http writer handler: "/t?"
2019/02/22 02:39:11 [debug] 24255\#0: *1 http output filter "/t?"
'
025-codecache.t TEST 29: cosocket connection pool timeout (after Lua VM destroys) - pattern "lua tcp socket keepalive max idle timeout" should not match any line in error.log but matches line "2019/02/22 02:39:12 [debug] 24255\#0: lua tcp socket keepalive max idle timeout" (req 1) 2019/02/22 02:39:12 [debug] 24255\#0: lua tcp socket keepalive close handler: fd:8
2019/02/22 02:39:12 [debug] 24255\#0: poll del event: fd:8 ev:1
2019/02/22 02:39:12 [debug] 24255\#0: reusable connection: 0
2019/02/22 02:39:12 [debug] 24255\#0: lua tcp socket keepalive: free connection pool for "127.0.0.1:11211"
2019/02/22 02:39:12 [debug] 24255\#0: posted event 0000000008856020
2019/02/22 02:39:12 [debug] 24255\#0: *3 delete posted event 0000000008856020
2019/02/22 02:39:12 [debug] 24255\#0: *3 http run request: "/t?"
2019/02/22 02:39:12 [debug] 24255\#0: *3 http writer handler: "/t?"
2019/02/22 02:39:12 [debug] 24255\#0: *3 http output filter "/t?"
'
025-codecache.t TEST 24: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - pattern "decrementing the reference count for Lua VM: 3" should not match any line in error.log but matches line "2019/02/22 02:39:31 [debug] 24265\#0: lua decrementing the reference count for Lua VM: 3" (req 0) 2019/02/22 02:39:31 [debug] 24265\#0: free: 000000000893CDC0, unused: 0
2019/02/22 02:39:31 [debug] 24265\#0: free: 000000000893CD10, unused: 0
2019/02/22 02:39:31 [debug] 24265\#0: free: 000000000893CC60, unused: 0
2019/02/22 02:39:31 [debug] 24265\#0: free: 000000000893CA30, unused: 0
2019/02/22 02:39:31 [debug] 24265\#0: free: 000000000893C7A0, unused: 0
2019/02/22 02:39:31 [debug] 24265\#0: free: 000000000893C100, unused: 0
2019/02/22 02:39:31 [debug] 24265\#0: free: 000000000893B060, unused: 0
2019/02/22 02:39:31 [debug] 24265\#0: posted event 0000000008855C50
2019/02/22 02:39:31 [debug] 24265\#0: *1 delete posted event 0000000008855C50
'
025-codecache.t TEST 24: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - pattern "decrementing the reference count for Lua VM: 3" should not match any line in error.log but matches line "2019/02/22 02:39:31 [debug] 24265\#0: lua decrementing the reference count for Lua VM: 3" (req 1) 2019/02/22 02:39:31 [debug] 24265\#0: free: 000000000893CDC0, unused: 0
2019/02/22 02:39:31 [debug] 24265\#0: free: 000000000893CD10, unused: 0
2019/02/22 02:39:31 [debug] 24265\#0: free: 000000000893CC60, unused: 0
2019/02/22 02:39:31 [debug] 24265\#0: free: 000000000893CA30, unused: 0
2019/02/22 02:39:31 [debug] 24265\#0: free: 000000000893C7A0, unused: 0
2019/02/22 02:39:31 [debug] 24265\#0: free: 000000000893C100, unused: 0
2019/02/22 02:39:31 [debug] 24265\#0: free: 000000000893B060, unused: 0
2019/02/22 02:39:31 [debug] 24265\#0: posted event 0000000008855C50
2019/02/22 02:39:31 [debug] 24265\#0: *1 delete posted event 0000000008855C50
'
025-codecache.t TEST 24: lua_max_pending_timers - chained timers (non-zero delay) - not exceeding - pattern "decrementing the reference count for Lua VM: 3" should not match any line in error.log but matches line "2019/02/22 02:39:31 [debug] 24265\#0: lua decrementing the reference count for Lua VM: 3" (req 1) 2019/02/22 02:39:31 [debug] 24265\#0: free: 0000000008A23E10, unused: 0
2019/02/22 02:39:31 [debug] 24265\#0: free: 0000000008A23D60, unused: 0
2019/02/22 02:39:31 [debug] 24265\#0: free: 0000000008A23CB0, unused: 0
2019/02/22 02:39:31 [debug] 24265\#0: free: 0000000008A23A80, unused: 0
2019/02/22 02:39:31 [debug] 24265\#0: free: 0000000008A237F0, unused: 0
2019/02/22 02:39:31 [debug] 24265\#0: free: 0000000008A23150, unused: 0
2019/02/22 02:39:31 [debug] 24265\#0: free: 0000000008A220B0, unused: 0
2019/02/22 02:39:31 [debug] 24265\#0: posted event 0000000008855C50
2019/02/22 02:39:31 [debug] 24265\#0: *4 delete posted event 0000000008855C50
'
041-header-filter.t TEST 41: filter finalize - status code ok got: ''
expected: '302'
041-header-filter.t TEST 41: filter finalize - response_body_like - response is expected () ''
doesn't match '(?^s:302 Found)'
041-header-filter.t TEST 41: filter finalize - status code ok got: ''
expected: '302'
041-header-filter.t TEST 41: filter finalize - response_body_like - response is expected () ''
doesn't match '(?^s:302 Found)'
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
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)
056-flush.t TEST 17: limit_rate - pattern "(?^:lua writes elapsed [12](?:\.\d+)? sec)" should match a line in error.log (req 0)
058-tcp-socket.t TEST 68: receiveany with limited, max is smaller than data - response_body - response is expected (repeated req 0, req 0) @@ -1,2 +1,11 @@
-hello w
+h
-orld
+e
+l
+l
+o
+
+w
+o
+r
+l
+d
'
058-tcp-socket.t TEST 68: receiveany with limited, max is smaller than data - response_body - response is expected (repeated req 1, req 0) @@ -1,2 +1,11 @@
-hello w
+h
-orld
+e
+l
+l
+o
+
+w
+o
+r
+l
+d
'
058-tcp-socket.t TEST 67: receiveany with limited, max is larger than data - response_body - response is expected (repeated req 0, req 0) got: 'h
'
expected: 'hello world
'
058-tcp-socket.t TEST 67: receiveany with limited, max is larger than data - response_body - response is expected (repeated req 1, req 0) got: 'h
'
expected: 'hello world
'
058-tcp-socket.t TEST 64: receiveany method in cosocket - response_body - response is expected (repeated req 0, req 0) @@ -1,3 +1,14 @@
1
-22
+2
-hello world
+2
+h
+e
+l
+l
+o
+
+w
+o
+r
+l
+d
'
058-tcp-socket.t TEST 64: receiveany method in cosocket - response_body - response is expected (repeated req 1, req 0) @@ -1,3 +1,14 @@
1
-22
+2
-hello world
+2
+h
+e
+l
+l
+o
+
+w
+o
+r
+l
+d
'
067-req-socket.t TEST 7: Expect & 100 Continue - status code ok got: '200'
expected: '100'
067-req-socket.t TEST 7: Expect & 100 Continue - response_body_like - response is expected (failed to get the request socket: test expect failed) 'failed to get the request socket: test expect failed
'
doesn't match '(?^s:\breceived: hello\b.*?\breceived: worl\b)'
067-req-socket.t TEST 7: Expect & 100 Continue - status code ok got: '200'
expected: '100'
067-req-socket.t TEST 7: Expect & 100 Continue - response_body_like - response is expected (failed to get the request socket: test expect failed) 'failed to get the request socket: test expect failed
'
doesn't match '(?^s:\breceived: hello\b.*?\breceived: worl\b)'
067-req-socket.t TEST 14: successful reread after reading timeout happens (receive -> receive) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,4 @@
sent: 65
sent: 11
-received: err: timeout, partial: abc
+received: err: timeout, partial: abchello world
-received: received: hello world
+received: err: timeout, partial:
'
067-req-socket.t TEST 14: successful reread after reading timeout happens (receive -> receive) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,4 @@
sent: 65
sent: 11
-received: err: timeout, partial: abc
+received: err: timeout, partial: abchello world
-received: received: hello world
+received: err: timeout, partial:
'
067-req-socket.t TEST 15: successful reread after reading timeout happens (receive -> receiveuntil) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,4 @@
sent: 65
sent: 12
-received: err: timeout, partial: abc
+received: err: timeout, partial: abchello world
-received: received: hello world
+received:
'
067-req-socket.t TEST 15: successful reread after reading timeout happens (receive -> receiveuntil) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,4 @@
sent: 65
sent: 12
-received: err: timeout, partial: abc
+received: err: timeout, partial: abchello world
-received: received: hello world
+received:
'
067-req-socket.t TEST 16: successful reread after reading timeout happens (receiveuntil -> receive) - response_body - response is expected (repeated req 0, req 0) @@ -1,4 +1,4 @@
sent: 65
sent: 12
-received: err: timeout, partial: abc
+received: err: timeout, partial: abchello world
-received: received: hello world
+received:
'
067-req-socket.t TEST 16: successful reread after reading timeout happens (receiveuntil -> receive) - response_body - response is expected (repeated req 1, req 0) @@ -1,4 +1,4 @@
sent: 65
sent: 12
-received: err: timeout, partial: abc
+received: err: timeout, partial: abchello world
-received: received: hello world
+received:
'
068-socket-keepalive.t TEST 42: conn queuing: set timeout via lua_socket_connect_timeout - pattern "lua tcp socket queued connect timed out, when trying to connect to 127.0.0.1:11211" should match a line in error.log (req 0)
072-conditional-get.t TEST 3: If-Unmodified-Since false ==25402== Invalid read of size 8
==25402== at 0x42652C: ngx_chain_update_chains (ngx_buf.c:191)
==25402== by 0x4FE3CB: ngx_http_lua_output_filter (ngx_http_lua_util.c:629)
==25402== by 0x4FED7F: ngx_http_lua_send_chain_link (ngx_http_lua_util.c:575)
==25402== by 0x4F005B: ngx_http_lua_ngx_echo (ngx_http_lua_output.c:233)
==25402== by 0x4F00E3: ngx_http_lua_ngx_say (ngx_http_lua_output.c:34)
==25402== by 0x5463362: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==25402== by 0x500762: ngx_http_lua_run_thread (ngx_http_lua_util.c:1084)
==25402== by 0x504363: ngx_http_lua_content_by_chunk (ngx_http_lua_contentby.c:122)
==25402== by 0x50444B: ngx_http_lua_content_handler_inline (ngx_http_lua_contentby.c:312)
==25402== by 0x503EF6: ngx_http_lua_content_handler (ngx_http_lua_contentby.c:224)
==25402== by 0x45FFE7: ngx_http_core_content_phase (ngx_http_core_module.c:1180)
==25402== by 0x45AD92: ngx_http_core_run_phases (ngx_http_core_module.c:869)
==25402== by 0x45AEA1: ngx_http_handler (ngx_http_core_module.c:852)
==25402== by 0x466465: ngx_http_process_request (ngx_http_request.c:1956)
==25402== by 0x466A91: ngx_http_process_request_headers (ngx_http_request.c:1381)
==25402== by 0x467026: ngx_http_process_request_line (ngx_http_request.c:1051)
==25402== by 0x467710: ngx_http_wait_request_handler (ngx_http_request.c:500)
==25402== by 0x443A0A: ngx_event_process_posted (ngx_event_posted.c:34)
==25402== by 0x443403: ngx_process_events_and_timers (ngx_event.c:269)
==25402== by 0x44D003: ngx_single_process_cycle (ngx_process_cycle.c:333)
==25402== by 0x422F5B: main (nginx.c:382)
==25402== Address 0x118 is not stack'd, malloc'd or (recently) free'd
==25402==
{
<insert_a_suppression_name_here>
Memcheck:Addr8
fun:ngx_chain_update_chains
fun:ngx_http_lua_output_filter
fun:ngx_http_lua_send_chain_link
fun:ngx_http_lua_ngx_echo
fun:ngx_http_lua_ngx_say
fun:lj_BC_FUNCC
fun:ngx_http_lua_run_thread
fun:ngx_http_lua_content_by_chunk
fun:ngx_http_lua_content_handler_inline
fun:ngx_http_lua_content_handler
fun:ngx_http_core_content_phase
fun:ngx_http_core_run_phases
fun:ngx_http_handler
fun:ngx_http_process_request
fun:ngx_http_process_request_headers
fun:ngx_http_process_request_line
fun:ngx_http_wait_request_handler
fun:ngx_event_process_posted
fun:ngx_process_events_and_timers
fun:ngx_single_process_cycle
fun:main
}
072-conditional-get.t TEST 3: If-Unmodified-Since false ==25402==
==25402== Process terminating with default action of signal 11 (SIGSEGV)
==25402== Access not within mapped region at address 0x118
==25402== at 0x42652C: ngx_chain_update_chains (ngx_buf.c:191)
==25402== by 0x4FE3CB: ngx_http_lua_output_filter (ngx_http_lua_util.c:629)
==25402== by 0x4FED7F: ngx_http_lua_send_chain_link (ngx_http_lua_util.c:575)
==25402== by 0x4F005B: ngx_http_lua_ngx_echo (ngx_http_lua_output.c:233)
==25402== by 0x4F00E3: ngx_http_lua_ngx_say (ngx_http_lua_output.c:34)
==25402== by 0x5463362: lj_BC_FUNCC (in /opt/luajit-sysm/lib/libluajit-5.1.so.2.1.0)
==25402== by 0x500762: ngx_http_lua_run_thread (ngx_http_lua_util.c:1084)
==25402== by 0x504363: ngx_http_lua_content_by_chunk (ngx_http_lua_contentby.c:122)
==25402== by 0x50444B: ngx_http_lua_content_handler_inline (ngx_http_lua_contentby.c:312)
==25402== by 0x503EF6: ngx_http_lua_content_handler (ngx_http_lua_contentby.c:224)
==25402== by 0x45FFE7: ngx_http_core_content_phase (ngx_http_core_module.c:1180)
==25402== by 0x45AD92: ngx_http_core_run_phases (ngx_http_core_module.c:869)
==25402== by 0x45AEA1: ngx_http_handler (ngx_http_core_module.c:852)
==25402== by 0x466465: ngx_http_process_request (ngx_http_request.c:1956)
==25402== by 0x466A91: ngx_http_process_request_headers (ngx_http_request.c:1381)
==25402== by 0x467026: ngx_http_process_request_line (ngx_http_request.c:1051)
==25402== by 0x467710: ngx_http_wait_request_handler (ngx_http_request.c:500)
==25402== by 0x443A0A: ngx_event_process_posted (ngx_event_posted.c:34)
==25402== by 0x443403: ngx_process_events_and_timers (ngx_event.c:269)
==25402== by 0x44D003: ngx_single_process_cycle (ngx_process_cycle.c:333)
==25402== by 0x422F5B: main (nginx.c:382)
==25402== If you believe this happened as a result of a stack
==25402== overflow in your program's main thread (unlikely but
==25402== possible), you can try to increase the size of the
==25402== main thread stack using the --main-stacksize= flag.
==25402== The main thread stack size used in this run was 8388608.

072-conditional-get.t TEST 3: If-Unmodified-Since false - status code ok got: ''
expected: '412'
072-conditional-get.t TEST 3: If-Unmodified-Since false - response_body_like - response is expected () ''
doesn't match '(?^s:412 Precondition Failed)'
072-conditional-get.t TEST 3: If-Unmodified-Since false - pattern "say failed: nginx output filter error" should match a line in error.log (req 0)
072-conditional-get.t TEST 3: If-Unmodified-Since false - Can't connect to 127.0.0.1:1984: Connection refused (aborted) '
072-conditional-get.t TEST 3: If-Unmodified-Since false - status code ok got: ''
expected: '412'
072-conditional-get.t TEST 3: If-Unmodified-Since false - response_body_like - response is expected () ''
doesn't match '(?^s:412 Precondition Failed)'
072-conditional-get.t TEST 3: If-Unmodified-Since false - pattern "say failed: nginx output filter error" should match a line in error.log (req 1)
086-init-by.t nginx: [error] init_by_lua error: init_by_lua:2: failed to init
100-client-abort.t TEST 27: ngx.say - pattern "say failed: nginx output filter error" should match a line in error.log (req 0)
100-client-abort.t TEST 27: ngx.say - pattern "say failed: nginx output filter error" should match a line in error.log (req 1)
100-client-abort.t TEST 28: ngx.print - pattern "print failed: nginx output filter error" should match a line in error.log (req 0)
100-client-abort.t TEST 28: ngx.print - pattern "print failed: nginx output filter error" should match a line in error.log (req 1)
100-client-abort.t TEST 31: ngx.eof - pattern "eof failed: nginx output filter error" should match a line in error.log (req 0)
100-client-abort.t TEST 31: ngx.eof - pattern "eof succeeded" should not match any line in error.log but matches line "2019/02/22 03:21:43 [warn] 25913\#0: *1 [lua] content_by_lua(nginx.conf:49):8: eof succeeded, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 0) 2019/02/22 03:21:43 [debug] 25913\#0: *1 lua resume returned 0
2019/02/22 03:21:43 [debug] 25913\#0: *1 lua light thread ended normally
2019/02/22 03:21:43 [debug] 25913\#0: *1 lua deleting light thread
2019/02/22 03:21:43 [debug] 25913\#0: *1 lua run thread returned 0
2019/02/22 03:21:43 [debug] 25913\#0: *1 http finalize request: 0, "/t?" a:1, c:1
2019/02/22 03:21:43 [debug] 25913\#0: *1 event timer add: 7: 60000:4925678
2019/02/22 03:21:43 [debug] 25913\#0: *1 poll add event: fd:7 ev:4
2019/02/22 03:21:43 [debug] 25913\#0: worker cycle
2019/02/22 03:21:43 [debug] 25913\#0: poll timer: 60000
'
100-client-abort.t TEST 31: ngx.eof - pattern "eof failed: nginx output filter error" should match a line in error.log (req 1)
100-client-abort.t TEST 31: ngx.eof - pattern "eof succeeded" should not match any line in error.log but matches line "2019/02/22 03:21:44 [warn] 25913\#0: *2 [lua] content_by_lua(nginx.conf:49):8: eof succeeded, client: 127.0.0.1, server: localhost, request: \"GET /t HTTP/1.1\", host: \"localhost\"" (req 1) 2019/02/22 03:21:44 [debug] 25913\#0: *2 lua resume returned 0
2019/02/22 03:21:44 [debug] 25913\#0: *2 lua light thread ended normally
2019/02/22 03:21:44 [debug] 25913\#0: *2 lua deleting light thread
2019/02/22 03:21:44 [debug] 25913\#0: *2 lua run thread returned 0
2019/02/22 03:21:44 [debug] 25913\#0: *2 http finalize request: 0, "/t?" a:1, c:1
2019/02/22 03:21:44 [debug] 25913\#0: *2 event timer add: 7: 60000:4926010
2019/02/22 03:21:44 [debug] 25913\#0: *2 poll add event: fd:7 ev:4
2019/02/22 03:21:44 [debug] 25913\#0: worker cycle
2019/02/22 03:21:44 [debug] 25913\#0: poll timer: 60000
'
101-on-abort.t TEST 6: ngx.exit(0) with pending subrequest - pattern "(?^:lua user thread aborted: runtime error: content_by_lua\(nginx\.conf:\d+\):4: attempt to abort with pending subrequests)" should match a line in error.log (req 0)
101-on-abort.t TEST 6: ngx.exit(0) with pending subrequest - pattern "(?^:lua user thread aborted: runtime error: content_by_lua\(nginx\.conf:\d+\):4: attempt to abort with pending subrequests)" 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 7: 0 timer - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0(?:[^.]|\.00))" 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 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 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 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)
107-timer-errors.t TEST 6: ngx.req.set_header - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the current context)" should match a line in error.log (req 0)
107-timer-errors.t TEST 6: ngx.req.set_header - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the current context)" should match a line in error.log (req 1)
107-timer-errors.t TEST 1: accessing nginx variables - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the current context)" should match a line in error.log (req 0)
107-timer-errors.t TEST 1: accessing nginx variables - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the current context)" should match a line in error.log (req 1)
107-timer-errors.t TEST 20: ngx.header - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the current context)" should match a line in error.log (req 0)
107-timer-errors.t TEST 20: ngx.header - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the current context)" should match a line in error.log (req 1)
107-timer-errors.t TEST 5: ngx.req.get_headers - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the current context)" should match a line in error.log (req 0)
107-timer-errors.t TEST 5: ngx.req.get_headers - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the current context)" should match a line in error.log (req 1)
107-timer-errors.t TEST 16: ngx.req.get_uri_args() - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the current context)" should match a line in error.log (req 0)
107-timer-errors.t TEST 16: ngx.req.get_uri_args() - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the current context)" should match a line in error.log (req 1)
107-timer-errors.t TEST 3: writing ngx.status - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the current context)" should match a line in error.log (req 0)
107-timer-errors.t TEST 3: writing ngx.status - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the current context)" should match a line in error.log (req 1)
107-timer-errors.t TEST 2: reading ngx.status - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the current context)" should match a line in error.log (req 0)
107-timer-errors.t TEST 2: reading ngx.status - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the current context)" should match a line in error.log (req 1)
107-timer-errors.t TEST 25: ngx.req.set_method - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the current context)" should match a line in error.log (req 0)
107-timer-errors.t TEST 25: ngx.req.set_method - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the current context)" should match a line in error.log (req 1)
107-timer-errors.t TEST 7: ngx.req.clear_header - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the current context)" should match a line in error.log (req 0)
107-timer-errors.t TEST 7: ngx.req.clear_header - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the current context)" should match a line in error.log (req 1)
107-timer-errors.t TEST 24: ngx.req.get_method - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the current context)" should match a line in error.log (req 0)
107-timer-errors.t TEST 24: ngx.req.get_method - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the current context)" should match a line in error.log (req 1)
107-timer-errors.t TEST 34: ngx.headers_sent - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the current context)" should match a line in error.log (req 0)
107-timer-errors.t TEST 34: ngx.headers_sent - pattern "(?^:\[error\] .*? runtime error: content_by_lua\(nginx\.conf:\d+\):3: API disabled in the current context)" should match a line in error.log (req 1)
108-timer-safe.t TEST 2: simple at (sleep in the timer callback) - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0\.0(?:6[4-9]|7[0-6]))" should match a line in error.log (req 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 5: 0 timer - pattern "(?^:\[lua\] content_by_lua\(nginx\.conf:\d+\):\d+: elapsed: 0(?:[^.]|\.00))" 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 0)
109-timer-hup.t TEST 7: HUP reload should abort pending timers (fuzz test) - grep_error_log_out (req 0) got: 'lua found 8190 pending timers
'
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 8189 pending timers
'
expected: 'lua found 8191 pending timers
'
123-lua-path.t TEST 1: LUA_PATH & LUA_CPATH env (code cache on) - response_body - response is expected (repeated req 0, req 0) got: "/home/ec2-user/git/lua-resty-core/lib/?.lua;/home/"...
length: 118
expected: "/foo/bar/baz\x{0a}/baz/bar/foo\x{0a}"
length: 26
strings begin to differ at char 2 (line 1 column 2)
123-lua-path.t TEST 1: LUA_PATH & LUA_CPATH env (code cache on) - response_body - response is expected (repeated req 1, req 0) got: "/home/ec2-user/git/lua-resty-core/lib/?.lua;/home/"...
length: 118
expected: "/foo/bar/baz\x{0a}/baz/bar/foo\x{0a}"
length: 26
strings begin to differ at char 2 (line 1 column 2)
123-lua-path.t TEST 2: LUA_PATH & LUA_CPATH env (code cache off) - response_body - response is expected (repeated req 0, req 0) got: "/home/ec2-user/git/lua-resty-core/lib/?.lua;/home/"...
length: 210
expected: "/foo/bar/baz\x{0a}/baz/bar/foo\x{0a}"
length: 26
strings begin to differ at char 2 (line 1 column 2)
123-lua-path.t TEST 2: LUA_PATH & LUA_CPATH env (code cache off) - response_body - response is expected (repeated req 1, req 0) got: "/home/ec2-user/git/lua-resty-core/lib/?.lua;/home/"...
length: 210
expected: "/foo/bar/baz\x{0a}/baz/bar/foo\x{0a}"
length: 26
strings begin to differ at char 2 (line 1 column 2)
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
139-ssl-cert-by.t TEST 2: sleep - pattern "(?^:elapsed in ssl cert by lua: 0.(?:09|1[01])\d+,)" should match a line in error.log (req 0)
142-ssl-session-store.t TEST 9: inter-operation with ssl_certificate_by_lua - pattern "(?^:elapsed in ssl cert by lua: 0.(?:09|1[01])\d+,)" should match a line in error.log (req 0)
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
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,3 @@
-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
'
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 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 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 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 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
'

Warnings

Go back to the index page.