Closed alex88 closed 8 years ago
Hi, I don't see libvips in there anywhere, perhaps the gem can't find the library?
We need more information. Perhaps make a small test case and try in a debugger?
Where do you expect to find a reference to the library? I just recompiled the native extension and it works fine when you don't include spring in the gemfile, let me try with a new rails app so I can also publish it in a github repo to reproduce the issue
So, if you can try to clone this repo https://github.com/alex88/rails-libvips-segfault you can see that either removing spring
or sqlite3
gems from the Gemfile solves the problem, otherwise running require 'vips'
from rails c
gives segfault
@alex88 I expected to see a libvips.so linked into your binary somewhere, but there's just the ruby-vips bundle. Perhaps it's statically linked, or somehow in there?
I'll try your example. Thanks!
Well I don't think it's a real problem if it's in the log or not, since without sqlite gem it works so the linking is actually working, isn't it?
Just tried to
require 'vips'
using a spring-enabled rails project and it segfaultsremoving any spring-related gem and it works fine, I'm not sure this really needs a fix since spring is loaded only in development, but still, notifying about this issue.