-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
FFI fails when required under rack #1108
Comments
Oh, I forgot to mention: running under rack-2 and thin 1.7.0 fails too:
|
I had also performed an experiment installing ruby with Rvm on a standard Ubuntu image and hit the same errors. |
@ayoshi there's been a lot of version changes in ruby, rack, etc since you reported this issue. Would you be able to use the latest version of the gems and see if this is still a problem? |
The example given here isn't failing, it's simply printing exceptions because it is run in debug mode. You get the same errors when requiring directly in debug mode:
Even if the output given, you can see the webserver still starts up and is listening:
|
I have created a simple test app:
Running it fails:
The same code runs with regular ruby with no problem
Gives out no errors, the more complicated code works too:
I've been pulling my hair out for 3 straight days. The real code inside handlers uses FFI several layers deeper, and of course it fails.
I'm running the tests under the official ruby:2.2.4 docker image.
Versions:
ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-linux]
ffi (1.9.14)
rack (1.6.4)
rack-cors (0.4.0)
rack-mini-profiler (0.10.1)
rack-protection (1.5.3)
rack-test (0.6.3)
The text was updated successfully, but these errors were encountered: