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: http: Release work queue after event base finish (btc#19033) #1031

Merged
merged 1 commit into from
Feb 9, 2022

Conversation

fdoving
Copy link
Contributor

@fdoving fdoving commented May 25, 2021

Should fix #838

backport of bitcoin#19033.

This fixes a race between http_request_cb and StopHTTPServer where
the work queue is used after release. - promag @ bitcoin.

@HyperPeek HyperPeek changed the title [WIP, do not merge] http: Release work queue after event base finish (btc#19033) fix: http: Release work queue after event base finish (btc#19033) Jul 3, 2021
Copy link
Contributor

@HyperPeek HyperPeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bitcoin merged this recently and although it seems hard to prove, we should add this fix as I can not see any disadvantage. Approved 2453af9

@hans-schmidt
Copy link
Contributor

Why did you choose not to delete lines 481 & 482 the way that bitcoin did?
481: delete workQueue;
482: workQueue = nullptr;

backport of bitcoin#19033.

This fixes a race between http_request_cb and StopHTTPServer where
the work queue is used after release. - promag @ bitcoin.
@fdoving
Copy link
Contributor Author

fdoving commented Dec 1, 2021

Why did you choose not to delete lines 481 & 482 the way that bitcoin did? 481: delete workQueue; 482: workQueue = nullptr;

Oversight.

Fixed now.

Copy link
Contributor

@hans-schmidt hans-schmidt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@fdoving fdoving added this to the 4.7.0 milestone Jan 22, 2022
@hans-schmidt hans-schmidt merged commit 70d8e84 into RavenProject:develop Feb 9, 2022
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.

sometimes httpworker exits by segfault error 4
3 participants