https://bz.apache.org/bugzilla/show_bug.cgi?id=69592
--- Comment #1 from abernal <[email protected]> --- Fix proposed: https://github.com/apache/httpd/pull/1044 Root cause: lua_setup_filter_ctx() calls lua_newthread() to get a coroutine to run the filter function in, but overwrites its only pointer to the parent lua_State with the new coroutine instead of keeping both. lua_newthread() roots the coroutine on the parent's own stack, so that reference is never popped back off. With LuaScope once/request this is harmless since the parent VM is destroyed with the request anyway, but with conn/thread/server the parent VM is cached and reused, so every filtered request leaks one more permanently rooted coroutine onto its stack until the interpreter crashes, matching the PANIC/abort reported here. Reproduced the crash for real with a local build (ab -c 8 -k against LuaScope conn + LuaOutputFilter, captured a SIGSEGV core dump via coredumpctl/gdb pointing at lua_getglobal() inside lua_setup_filter_ctx), then verified the fix holds under the same load for 50000 requests across LuaScope conn/thread and both LuaInputFilter/LuaOutputFilter, with zero failures. -- 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]
