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
Segmentation Fault - ffi/autopointer.rb #447
Comments
I see you have typhoeus loaded. This gem has caused problems before. You're also using spring. Is everything you're using thread safe? Can you share the code? |
@tduehr thanks for the follow up. I'll try excluding that gem if I can. Everything should be thread safe. Code is open over here: https://github.com/wsharp07/RailsVenture |
This looks (poking through typhoeus and ethon code) like ethon has a couple paths that are not necessarily thread safe. You might be able to get Ethon::Curl.init into one of your initializers to fix that race condition. Might also work in your Rakefile. Failing that, is there a way to get typhoeus/ethon to load after spring forks? |
@tduehr sorry it took so long to get to this. Yes typhoeus seems to have been the culprit. Thanks for the help! |
For posterity, this fixes this particular typhoeus (actually ethon) issue:
The code is maybe generally not threadsafe, but this was at least an adequate solution for our purposes. (hopefully it's okay to bump this issue that has nothing to do with FFI since this issue is the highest search ranking for this problem :)) |
First post, and new to ruby/rails, so this may not be the place to post. I'm getting the following error when running Rake tasks. It doesn't seem to prevent me from doing anything, but it floods my console.
The text was updated successfully, but these errors were encountered: