Skip to content

The Call stack of ngx.re change #491

Description

@liukaiyuliukaiyu

The original ngx.re call link was ngx.re.find -->lua-nginx-module --> ngx_http_lua_ngx_re_find --> ngx_http_lua_ngx_re_match_helper
When compiling openresty, add the compile parameter --with-ld-opt /curl/lib/ -lcurl curl
The /lib/ directory contains the following files: libcurl.a libcurl.la libcurl.so libcurl.so.4 libcurl.so.4.3.0
./configure \ --prefix=/usr/local/openresty \ --with-ld-opt="-Wl,-rpath,/usr/local/openresty/luajit/lib \ -L/*/curl/lib/ -lcurl"
Then the function call stack for ngx.re.find becomes
ngx.re.find() --> re_match_helper -->ngx_lua_ffi_exec_regex -->ngx_http_lua_ffi_exec_regex
ngx.re.find() in regex.lua that calls lua-resty-core.
Why is that? Why does curllib affect the underlying call logic?
Help, thank you very much

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions