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

Easy::Operations#handle: Thread-safe cleanup #136

Merged
merged 2 commits into from
Feb 9, 2021

Conversation

Zapotek
Copy link
Contributor

@Zapotek Zapotek commented Feb 14, 2017

This change fixes intermittent segfaults.
Unfortunately I don't have an easily reproducible test-case but this change seems to
fix segfaults for a live system.

This change fixes intermittent segfaults.
Unfortunately I don't have an easily reproducible test-case but this change seems to 
fix segfaults for a live system.
@Zapotek
Copy link
Contributor Author

Zapotek commented Feb 21, 2017

Check that, segfaults started re-appearing.

@hanshasselberg
Copy link
Member

:( does that mean this fix doesn't help?

@Zapotek
Copy link
Contributor Author

Zapotek commented Feb 21, 2017

Unfortunately yes and I'm not sure what else it might be.
I'll see if I can narrow it down but I'm not very experienced with FFI so I'm not hopeful.

@niko-pax-uofa
Copy link

This issue you are trying to address is related to ( probably the cause of) typhoeus/typhoeus#452

@Zapotek
Copy link
Contributor Author

Zapotek commented Jun 4, 2020

This is a very old PR but when using Ruby 2.7.1 segfaults became a clear show stopper in my use-case as easy_cleanup started to always segfault after a while.

This fix immediately took care of my issue although I'm not sure if it'll be 100% effective for all multi-thread related segfaults.

I think it's worth merging into master.

@arianf
Copy link

arianf commented Mar 4, 2022

I don't think this has fixed the sigfaults for us. We are still seeing them, I've filed: #209

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.

5 participants