https://bz.apache.org/bugzilla/show_bug.cgi?id=69592

            Bug ID: 69592
           Summary: mod_lua: LuaFilter + LuaScope Connection/Thread/Server
                    => Process Crash / PANIC (Abort)
           Product: Apache httpd-2
           Version: 2.4.63
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: mod_lua
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

With LuaFilters (in or out) + LuaScope conn/thread/server (to improve perf),
apache process crashes, with PANIC (Abort).

How reproduce:

--- config test-1 (output) ---
LuaScope thread
LuaOutputFilter dummy-out "dummy.lua" filter
SetOutputFilter dummy-out
---

--- config test-2 (input) ---
LuaScope thread
LuaInputFilter dummy-in "dummy.lua" filter
SetInputFilter dummy-in
---


--- dummy.lua ---
function filter(r)
    io.stderr:write("dummy lua", "\n")
    return -- skip processing
end
---

Create simple file in htdocs:
> echo TEST > dummy.txt

do a concurrent GET
> ab -c 8 -t 60 -s 4 -k http://foobar/dummy.txt

Track Apache error log, and see crashes like these:

> AH00052: child pid XXXX exit signal Abort (6)
> PANIC: unprotected error in call to Lua API (attempt to index a nil value)

This can be tested with last stable docker image (today, 2.4.63):
> httpd:2.4

Thanks.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to