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

fix(libtor): don't leak a file descriptor #1072

Merged
merged 3 commits into from
Feb 3, 2023
Merged

fix(libtor): don't leak a file descriptor #1072

merged 3 commits into from
Feb 3, 2023

Conversation

bassosimone
Copy link
Contributor

@bassosimone bassosimone commented Feb 3, 2023

Discovered while trying to understand the reason why we have an abort caused by Android's fdsan.

This is not the reason why we abort, but it seems correct to fix this issue anyway.

While there, notice that stopping to run libtorlinux for every PR (which we just did in 5ebcca2) was wrong. We need to run this workflow for every PR because it runs tests for the libtor integration.

Part of ooni/probe#2405

Discovered while trying to understand the reason why we
have an abort caused by Android's fdsan.

This is not the reason why we abort, but it seems correct
to fix this issue anyway.

Part of ooni/probe#2405
If we don't run it, we don't test the code. So, it was not
just building but also making sure tests passed.
Previously we were hanging because we still had an
open reference to the socket when the context expired
since the filep was closed using defer.
@bassosimone bassosimone merged commit 8e1bed1 into master Feb 3, 2023
@bassosimone bassosimone deleted the issue/2404b branch February 3, 2023 10:54
bassosimone added a commit that referenced this pull request Feb 3, 2023
Discovered while trying to understand the reason why we have an abort caused by Android's fdsan.

This is not the reason why we abort, but it seems correct to fix this issue anyway.

While there, notice that stopping to run libtorlinux for every PR (which we just did in 5ebcca2) was wrong. We need to run this workflow for every PR because it runs tests for the libtor integration.

Part of ooni/probe#2405
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.

1 participant