Giter Club home page Giter Club logo

Comments (2)

duanzhaoqian avatar duanzhaoqian commented on August 16, 2024

2021/11/22 04:53:31 [warn] 29930#29930: *2 [lua] _G write guard:12: __newindex(): writing a global Lua variable ('size') which may lead to race conditions between concurrent requests, so prefer the use of 'local' variables
stack traceback:
/usr/local/openresty/lualib/resty/des.lua:106: in function 'cipher'
/usr/local/openresty/lualib/resty/des.lua:127: in function 'new'
lua_func_test.lua:10: in function 'file_gen'
init_worker_by_lua:45: in function <init_worker_by_lua:43>
[C]: in function 'xpcall'
init_worker_by_lua:52: in function <init_worker_by_lua:50>, context: ngx.timer
ERROR: /usr/local/openresty/lualib/resty/des.lua:173: /usr/local/openresty/luajit/lib/libluajit-5.1.so.2: undefined symbol: EVP_CIPHER_CTX_cleanup
stack traceback:
/usr/local/openresty/lualib/resty/des.lua:173: in function 'new'
lua_func_test.lua:10: in function 'file_gen'
init_worker_by_lua:45: in function <init_worker_by_lua:43>
[C]: in function 'xpcall'
init_worker_by_lua:52: in function <init_worker_by_lua:50>

from lua-resty-des.

lx940112 avatar lx940112 commented on August 16, 2024

2021/11/22 04:53:31 [warn] 29930#29930: *2 [lua] _G write guard:12: __newindex(): writing a global Lua variable ('size') which may lead to race conditions between concurrent requests, so prefer the use of 'local' variables stack traceback: /usr/local/openresty/lualib/resty/des.lua:106: in function 'cipher' /usr/local/openresty/lualib/resty/des.lua:127: in function 'new' lua_func_test.lua:10: in function 'file_gen' init_worker_by_lua:45: in function <init_worker_by_lua:43> [C]: in function 'xpcall' init_worker_by_lua:52: in function <init_worker_by_lua:50>, context: ngx.timer ERROR: /usr/local/openresty/lualib/resty/des.lua:173: /usr/local/openresty/luajit/lib/libluajit-5.1.so.2: undefined symbol: EVP_CIPHER_CTX_cleanup stack traceback: /usr/local/openresty/lualib/resty/des.lua:173: in function 'new' lua_func_test.lua:10: in function 'file_gen' init_worker_by_lua:45: in function <init_worker_by_lua:43> [C]: in function 'xpcall' init_worker_by_lua:52: in function <init_worker_by_lua:50>

我也遇到的同样的问题,我换了个openssl 1.0.x 的版本是可以的,但是1.1.x版本就不行了,我尝试着将"des.lua" 中所有的 EVP_CIPHER_CTX_cleanup 修改为 EVP_CIPHER_CTX_reset 之后,就可以成功执行了

from lua-resty-des.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.