https://bz.apache.org/bugzilla/show_bug.cgi?id=69590
Bug ID: 69590
Summary: mod_lua: OutOfMemory in LuaOutputFilter (with LARGE
data)
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: ---
How reproduce:
--- config ---
LuaOutputFilter dummy-out "dummy.lua" filter
SetOutputFilter dummy-out
---
--- dummy.lua ---
function filter(r)
io.stderr:write("lua begin", "\n")
-- prepare
coroutine.yield()
while not rawequal(bucket, nil) do
coroutine.yield(bucket)
end
io.stderr:write("lua end", "\n")
-- close
coroutine.yield()
end
---
Create LARGE file in htdocs:
> /usr/bin/yes | /usr/bin/dd of=dummy.txt bs=1K count=1M # 1GB
do a GET
> curl -si http://foobar/dummy.txt | tail -10
Track Apache process and see how eats memory like cookie monster until
OOM-Killer.
> [13064.115505] Out of memory: Killed process 17090 (httpd)
> total-vm:1890948kB, anon-rss:673924kB, file-rss:0kB, shmem-rss:0kB, UID:33
> pgtables:1548kB oom_score_adj:0
> [13067.376049] oom_reaper: reaped process 17090 (httpd), now anon-rss:0kB,
> file-rss:128kB, shmem-rss:0kB
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]