Skip to content

Debugging for #105486#105496

Closed
DaveCTurner wants to merge 4 commits into
elastic:mainfrom
DaveCTurner:2024/02/14/use-after-free-netty-shutdown-wip
Closed

Debugging for #105486#105496
DaveCTurner wants to merge 4 commits into
elastic:mainfrom
DaveCTurner:2024/02/14/use-after-free-netty-shutdown-wip

Conversation

@DaveCTurner
Copy link
Copy Markdown
Member

WIP debugging #105486, nothing to see here.

We could still be manipulating a network message when the event loop
shuts down, causing us to close the message while it's still in use.
This is at best going to be a little surprising to the caller, and at
worst could be an outright use-after-free bug.

This commit moves the double-check for a leaked promise to happen
strictly after the event loop has fully terminated, so that we can be
sure we've finished using it by this point.

Relates elastic#105306, elastic#97301
@DaveCTurner DaveCTurner added WIP :Distributed/Network Http and internode communication implementations labels Feb 14, 2024
@DaveCTurner DaveCTurner force-pushed the 2024/02/14/use-after-free-netty-shutdown-wip branch 2 times, most recently from 7a63dee to 3eb34a7 Compare February 14, 2024 14:27
@DaveCTurner DaveCTurner force-pushed the 2024/02/14/use-after-free-netty-shutdown-wip branch from 3eb34a7 to 5147a1e Compare February 14, 2024 15:30
@DaveCTurner DaveCTurner deleted the 2024/02/14/use-after-free-netty-shutdown-wip branch February 15, 2024 09:26
@DaveCTurner DaveCTurner restored the 2024/02/14/use-after-free-netty-shutdown-wip branch June 17, 2024 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Network Http and internode communication implementations v8.14.0 WIP

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants