Comments (5)
Could this be the same thing, but though a different path?
#0 0x00005568a670cb3b in luaS_newlstr (L=L@entry=0x5568a8401c30, str=str@entry=0x7fafc6de4021 "SSL:Verify:Registry", l=19) at lstring.c:82
o = <optimized out>
h = 1821639967
step = 1
l1 = 0
#1 0x00005568a6703dec in lua_getfield (L=L@entry=0x5568a8401c30, idx=idx@entry=-10000, k=k@entry=0x7fafc6de4021 "SSL:Verify:Registry") at lapi.c:550
i_o = 0x7ffd49fbc450
t = 0x5568000000a4
key = {
value = {
gc = 0x0,
p = 0x0,
n = 0,
b = 0
},
tt = 1
}
#2 0x00007fafc6de2ab0 in cert_verify_cb (x509_ctx=0x5568a92ebaf0, ptr=0x5568a8bfbc20) at src/context.c:225
verify = <optimized out>
L = 0x5568a8401c30
ctx = 0x5568a8bfbc20
pctx = <optimized out>
#3 0x00007fafc6b962ee in ?? () from /usr/lib/x86_64-linux-gnu/libssl.so.1.1
No symbol table info available.
#4 0x00007fafc6ba8acb in ?? () from /usr/lib/x86_64-linux-gnu/libssl.so.1.1
No symbol table info available.
(More stack frames follow...)
(gdb) bt full 12
#0 0x00005568a670cb3b in luaS_newlstr (L=L@entry=0x5568a8401c30, str=str@entry=0x7fafc6de4021 "SSL:Verify:Registry", l=19) at lstring.c:82
o = <optimized out>
h = 1821639967
step = 1
l1 = 0
#1 0x00005568a6703dec in lua_getfield (L=L@entry=0x5568a8401c30, idx=idx@entry=-10000, k=k@entry=0x7fafc6de4021 "SSL:Verify:Registry") at lapi.c:550
i_o = 0x7ffd49fbc450
t = 0x5568000000a4
key = {
value = {
gc = 0x0,
p = 0x0,
n = 0,
b = 0
},
tt = 1
}
#2 0x00007fafc6de2ab0 in cert_verify_cb (x509_ctx=0x5568a92ebaf0, ptr=0x5568a8bfbc20) at src/context.c:225
verify = <optimized out>
L = 0x5568a8401c30
ctx = 0x5568a8bfbc20
pctx = <optimized out>
#3 0x00007fafc6b962ee in ?? () from /usr/lib/x86_64-linux-gnu/libssl.so.1.1
No symbol table info available.
#4 0x00007fafc6ba8acb in ?? () from /usr/lib/x86_64-linux-gnu/libssl.so.1.1
No symbol table info available.
#5 0x00007fafc6ba62cf in ?? () from /usr/lib/x86_64-linux-gnu/libssl.so.1.1
No symbol table info available.
#6 0x00007fafc6b9e9f1 in SSL_do_handshake () from /usr/lib/x86_64-linux-gnu/libssl.so.1.1
No symbol table info available.
#7 0x00007fafc6de10ee in handshake (ssl=0x5568a9346238) at src/ssl.c:119
err = <optimized out>
tm = 0x5568a9348298
#8 meth_handshake (L=0x5568a7cef010) at src/ssl.c:386
ssl = 0x5568a9346238
#9 0x00005568a67068a0 in luaD_precall (L=L@entry=0x5568a7cef010, func=func@entry=0x5568a936fea0, nresults=nresults@entry=2) at ldo.c:320
ci = <optimized out>
n = <optimized out>
cl = <optimized out>
funcr = <optimized out>
#10 0x00005568a67101b2 in luaV_execute (L=L@entry=0x5568a7cef010, nexeccalls=2, nexeccalls@entry=1) at lvm.c:591
b = <optimized out>
nresults = 2
i = <optimized out>
ra = 0x5568a936fea0
cl = 0x5568a7d2ef40
base = <optimized out>
k = 0x5568a7db10c0
pc = 0x5568a7d37a44
#11 0x00005568a6706d1d in luaD_call (L=0x5568a7cef010, func=0x5568a7cf7210, nResults=<optimized out>) at ldo.c:378
No locals.
(More stack frames follow...)
This was on LuaSec 0.7 as used by Prosody. OpenSSL 1.1.0f-3+deb9u2. Debian Stable.
from luasec.
Question: Is this indicating that there are two Lua states involved in the same call?
- L=L@entry=0x5568a7cef010
- L=L@entry=0x5568a8401c30
from luasec.
There is only one Lua state, but there may be many coroutines. One possible explanation is that the coroutine in which the SSL context was created in has since been garbage-collected.
from luasec.
One problem is ctx->L saves the state that creates it.
This field must be updated at beginnig of meth_handshake() in ssl.c in order to keep a reference to the active thread.
from luasec.
Does this need to be done anywhere else? Re-negotiation maybe?
from luasec.
Related Issues (20)
- ssl.https.request dont work HOT 6
- Off by one in `cert:validat(notafter)` HOT 2
- [HTTPS] Problems with memory consumption when loading the CA certificate HOT 5
- skip response headers messages HOT 2
- SSL Handshake fails without an error message HOT 2
- Compilation fails with >=openssl-3.0.0 HOT 1
- Can't compile source code in luasec.vcxproj HOT 1
- method `conn:shutdown()` is missing HOT 4
- Is openssl 1.0.2 supported with lua 5.1 release? HOT 2
- Docker container crashed when lua calling ssl.so library HOT 4
- Android shared library
- Sumneko's Lua language server shows a warning for passing 2 variables to a function with only 1 argument in https.lua HOT 1
- New release HOT 4
- Failed to install with mingw64 HOT 6
- Installation on an embedded Lua v5.1 (with no Lua Rocks) HOT 12
- tls-psk regress after #194 HOT 3
- Failed VS2022 BUILD | openssl-3.2.0 and crypt32.lib
- Emerged on Gentoo version 1.3.2, and I see it by path /usr/share/lua/5.1/ssl/https.lua, but expected for version 5.4
- Does this library support DTLS? HOT 1
- getting information about client HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from luasec.