openresty / openresty/lua-nginx-module

Nginx - Worker Process Crash (Lua Parser)

Open
#2,158 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
11.8k
Forks
2.1k
Avg merge
6h 1m
Merged PRs (30d)
6

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the nginx configuration around lua_package_cpath, init_by_lua_block, and the commented init_worker_by_lua_block, using the reported nginx and lua-nginx-module versions. Reproduce the crash when reopening init_worker_by_lua_block and determine the cause of the signal 11; done requires a confirmed diagnosis or actionable fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, nginx
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.