location = /test1 {
access_by_lua '
ngx.log(ngx.ERR, "========== go here ===============")
ngx.print("this is lua")
ngx.print(ngx.var.uri)
';
}
location = /test2 {
access_by_lua '
local key = ngx.var.http_user_agent
local res = ngx.location.capture(
"/test1", { args = { key = key } }
)
ngx.print(res.body)
';
}
5. openresty -s reload
6. curl 127.0.0.1/test2 -iv , coredump
**What is the expected behavior?**
output normaly
**What is the actual behavior?**
2022/03/26 06:02:35 [alert] 1#1: worker process 229 exited on signal 11
2022/03/26 06:02:59 [alert] 1#1: worker process 234 exited on signal 11
2022/03/26 06:03:54 [alert] 1#1: worker process 242 exited on signal 11
**Additional context**
Add any other context about the problem here.
Describe your environment Mac docker run openresty/openresty:alpine
Steps to reproduce 1. compile the otel so into image Dockerfile content
go into the container and change nginx.conf
and then add location