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

avoid lockup in ThreadPool::shutdown() on legacy host #1417

Merged
merged 1 commit into from
Nov 3, 2022

Conversation

gh4ck3r
Copy link
Contributor

@gh4ck3r gh4ck3r commented Nov 3, 2022

It is found on CentOS 7.0.1406 which is very early version of CentOS 7.
It's not happened on CentOS 8 or Ubuntu 22.04. So, I think, it's affected libc or libpthread which is both 2.17 on CentOS 7.0.1406.

I found the lockup from my own test suite with repeating test for stability. Before this patch, it occurs within 1000 times. After apply this patch it was fine even under 1M times of repeating.

@AhnLab-OSSG

It is found on CentOS 7.0.1406 which is very early version of CentOS 7.
@yhirose yhirose merged commit ad7edc7 into yhirose:master Nov 3, 2022
@yhirose
Copy link
Owner

yhirose commented Nov 3, 2022

@gh4ck3r thanks for the fine contribution!

@gh4ck3r gh4ck3r deleted the FixThreadPool branch November 4, 2022 00:57
ExclusiveOrange pushed a commit to ExclusiveOrange/cpp-httplib-exor that referenced this pull request May 2, 2023
It is found on CentOS 7.0.1406 which is very early version of CentOS 7.

Co-authored-by: Changbin Park <changbin.park@ahnlab.com>
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.

None yet

3 participants