Skip to content
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

lua: fix a bug where the lifetime of userdata will result in crash #35063

Merged
merged 2 commits into from
Jul 7, 2024

Conversation

wbpcode
Copy link
Member

@wbpcode wbpcode commented Jul 4, 2024

Commit Message: lua: fix a bug where the lifetime of userdata will result in crash
Additional Description:

The RouteHandleWrapper will be desotryed when the lua doing the gc. And the embedded HeaderMapRef will call the reset() when it's destructed and will refer the invalid lua_State pointer and finally result in a crash.

Risk Level: low.
Testing: unit.
Docs Changes: n/a.
Release Notes: added.
Platform Specific Features: n/a.

Signed-off-by: wbpcode <wbphub@live.com>
@wbpcode wbpcode linked an issue Jul 4, 2024 that may be closed by this pull request
@wbpcode wbpcode merged commit ab911ac into envoyproxy:main Jul 7, 2024
51 checks passed
@wbpcode wbpcode deleted the dev-fix-lua-specifier branch July 7, 2024 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

segmentation fault with lua_cluster_specifier
2 participants