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 phtread-detatch() call #16760

Merged
merged 2 commits into from Jan 11, 2024
Merged

fix phtread-detatch() call #16760

merged 2 commits into from Jan 11, 2024

Conversation

ktsaou
Copy link
Member

@ktsaou ktsaou commented Jan 11, 2024

There is race conditions that sometimes crashes netdata when a thread is created and finishes before the creator can call pthread_detach().

  • call pthread_detach() from the spawn thread instead of the creator
  • remove the use of locks that were added for this purpose

@ktsaou ktsaou merged commit af042f7 into netdata:master Jan 11, 2024
69 of 71 checks passed
stelfrag pushed a commit to stelfrag/netdata that referenced this pull request Jan 31, 2024
* fix phtread-detatch() call

* fix variable tag

(cherry picked from commit af042f7)
@stelfrag stelfrag mentioned this pull request Jan 31, 2024
tkatsoulas pushed a commit that referenced this pull request Feb 6, 2024
* fix phtread-detatch() call

* fix variable tag

(cherry picked from commit af042f7)
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

1 participant