Description
I'm trying to understand why the worker processes are crashing:
2023/02/23 17:48:49 [alert] 12431#0: worker process 12433 exited on signal 11
2023/02/23 17:48:49 [alert] 12431#0: cache manager process 12434 exited on signal 11
2023/02/23 17:48:49 [alert] 12431#0: cache loader process 12435 exited on signal 11
2023/02/23 17:48:49 [alert] 12431#0: worker process 12432 exited on signal 11
2023/02/23 17:48:49 [alert] 12431#0: worker process 12436 exited on signal 11
nginx version: nginx/1.22.0
lua-nginx-module-0.10.9rc7
ngx_devel_kit-0.3.1
http {
lua_package_cpath "/usr/local/src/lua-cjson-2.1.0/?.so;;";
init_by_lua_block {
cjson = require "cjson"
-- cjson2 = cjson.new()
}
init_worker_by_lua_block {
}
}
open the init_worker_by_lua_block tag ,when restart nginx. then nginx work crash
root 7225 1 0 Feb23 ? 00:00:06 nginx: master process /usr/local/nginx/sbin/nginx
root 8215 7225 0 09:20 ? 00:00:00 [nginx]
root 8216 7225 0 09:20 ? 00:00:00 [nginx]
root 8218 30804 0 09:20 pts/7 00:00:00 grep --color=auto nginx
root 8219 7225 0 09:20 ? 00:00:00 nginx: master process /usr/local/nginx/sbin/nginx