I got following crash. When I use ngx.location_capture. Do your guys have the same problem? It randomly happen.
nginx: worker process(43544,0x7fff7c54c310) malloc: *** error for object 0x7fdf52805e08: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
2013/11/12 11:52:08 [alert] 43357#0: worker process 43544 exited on signal 6
---- my nginx.conf --
location /external {
internal;
rewrite_by_lua "
local req = ngx.req
for k, v in pairs(req.get_headers()) do
if k ~= 'content-length' then
req.clear_header(k)
end
end
if ngx.ctx.headers then
for k, v in pairs(ngx.ctx.headers) do
req.set_header(k, v)
end
end
";
resolver 8.8.8.8;
proxy_http_version 1.1;
proxy_pass $_uri;
}
}