Open guy-otonomo opened 1 year ago
I have no idea on that, but after a simple googling, I found this page maybe help: https://groups.google.com/g/OpenResty/c/EC_ohjV5ROA
I think it's due to incorrect configuration flags passed when you compile the LuaJIT. Have you tried loading other libraries?
And you can try to comment the SSE related lines https://github.com/xpol/lua-rapidjson/blob/master/src/rapidjson.cpp#L10-L14
See if it helps.
Well, not a simple search, because results are in Chinese 😅 Thanks for your help, it does seems to explain the issue (compiled version vs runtime version). Other plugins seem to work OK BTW.
Commenting out those lines, should be done before building rapidjson, right? (we install it via luarocks, so this is going to be a hard one). We should also try a machine in AWS that supports sse4_2.
Thanks again.
Notes: we use
rapidjson
inside Kong.cmake-3.15.5-r0
): works.cmake-3.21.3-r0
): fails! (actually for any new version above 2.4.1).cmake-3.21.3-r0
: works.Will be happy to provide any more info.