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

sys_net: Fix race between dnshook and nc #11826

Merged
merged 2 commits into from Apr 16, 2022
Merged

Conversation

RipleyTom
Copy link
Contributor

@RipleyTom RipleyTom commented Apr 16, 2022

On closing dnshook was destroyed before network_context which could still hold shared_ptr of lv2_socket_native objects.
Upon nc termination destructor was called which called close() which called a dnshook method and crashed.

Now just closing the socket if necessary and ignore dnshook in the destructor(this doesn't affect in-game behaviour as the socket can be removed from idm only through close() ).

@Megamouse Megamouse merged commit 563af42 into RPCS3:master Apr 16, 2022
@RipleyTom RipleyTom deleted the fix_dnshook branch April 21, 2022 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants