Skip to content

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

Merged
wbpcode merged 2 commits intoenvoyproxy:mainfrom
wbpcode:dev-fix-lua-specifier
Jul 7, 2024
Merged

lua: fix a bug where the lifetime of userdata will result in crash#35063
wbpcode merged 2 commits intoenvoyproxy:mainfrom
wbpcode:dev-fix-lua-specifier

Conversation

@wbpcode
Copy link
Copy Markdown
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.

@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
@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