I have located an issue with module nginx-module-vts (https://github.com/vozlt/nginx-module-vts) or an issue with init_worker_by_lua... when both are used it crashes nginx (c5, access violation) but I
can't figure out which of the two is causing it, it only happens when using init_worker_by_lua or init_worker_by_lua_file.
I've tried 1.7.11 / 1.7.10 / 1.7.9 all the way back to 1.7.5 and it still crashes when both are used.
Latest versions of and minimal configure;
--add-module=objs/lib/ngx_devel_kit
--add-module=objs/lib/lua-nginx-module
--add-module=objs/lib/nginx-module-vts
Can anyone determine who's to blame here? and maybe where in the code?
minimal nginx config:
worker_processes 1;
error_log logs/error.log debug;
pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
vhost_traffic_status_zone shared:vts_zone:1m;
lua_shared_dict dishared 1m;
init_worker_by_lua '
if not test_delay then
local test_delay = 5
local worker_pid = tostring(ngx.worker.pid())
end
';
access_log logs/access.log main;
server {
listen 80;
server_name localhost;
location / {
root html;
try_files $uri $uri/ =404;
index index.html index.htm;
}
location /status {
vhost_traffic_status_display;
vhost_traffic_status_display_format html;
}
}
}
When using any other Lua code it works fine, linking 20+ modules all is fine, only these 2 Lua worker routines causes a crash.
I can determine it is a shared memory issue but can't find who's trying to go to the wrong address.