-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation faults in Lua filter (LuaThreadLocal) #10241
Comments
Is there any more detail you can share about your use of Lua or any of the times that it crashes? Do you use LDS to deliver Lua config? Nothing immediately comes to mind from the core dump. cc @dio |
ACK, more info on this will be very helpful. |
@mattklein123 @dio I see a similar crash due to SDS problem (when certs are missing), may be related to this? #9765 (comment) @jmuia do you have listeners with tls context configured? |
Yes I think it's possible that the crash is due to listener teardown issues. We just fixed something similar in a different filter (cc @yuval-k), but it would be nice to confirm that is what is happening. |
Uses of Lua include:
Timing of crashes:
Yep, we use LDS for this.
If it would be helpful I can provide the backtrace for all threads from the core dump.
Yep, the listener that is configured with a Lua filter also configures tls_context. -- I've attached below the (sanitized) log output prior to a crash:
|
Possibly related: #9940 |
looking at the code and stack trace i imagine that the issue is capturing
an quick solution would be to pass |
The reason is that when the worker executes
|
Title: Segmentation faults in Lua filter (
LuaThreadLocal
)Description:
Envoy occasionally crashes, which is unexpected.
Repro steps:
Unsure how to reproduce at the moment, it seems spurious (<5 times per day in a QA fleet since collecting core dumps).
It has been observed in:
1.12.2
+ hot restart: send used stats only during hot restart #9121 + http: Fix ASSERT failure and infinite loop when attempting to unset readDisable state on a closed connection. #9509 + patches from1.12.3
1.13.1
We haven't collected core dumps from other versions.
Config:
We have various Lua filters configured.
Call Stack:
From the
1.12.2
build described above:The text was updated successfully, but these errors were encountered: