{"action":"created","issue":{"url":"https://api.github.com/repos/rowland/activerecord-fb-adapter/issues/61","labels_url":"https://api.github.com/repos/rowland/activerecord-fb-adapter/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/rowland/activerecord-fb-adapter/issues/61/comments","events_url":"https://api.github.com/repos/rowland/activerecord-fb-adapter/issues/61/events","html_url":"https://github.com/rowland/activerecord-fb-adapter/issues/61","id":94794083,"number":61,"title":"Segfault when using spring (mac only)","user":{"login":"rzane","id":2731572,"avatar_url":"https://avatars.githubusercontent.com/u/2731572?v=3","gravatar_id":"","url":"https://api.github.com/users/rzane","html_url":"https://github.com/rzane","followers_url":"https://api.github.com/users/rzane/followers","following_url":"https://api.github.com/users/rzane/following{/other_user}","gists_url":"https://api.github.com/users/rzane/gists{/gist_id}","starred_url":"https://api.github.com/users/rzane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rzane/subscriptions","organizations_url":"https://api.github.com/users/rzane/orgs","repos_url":"https://api.github.com/users/rzane/repos","events_url":"https://api.github.com/users/rzane/events{/privacy}","received_events_url":"https://api.github.com/users/rzane/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-13T19:33:30Z","updated_at":"2015-07-14T15:42:21Z","closed_at":null,"body":"This script will setup a new app using firebird:\r\n\r\n```sh\r\n#!/bin/bash\r\n\r\ngem install rails -v 4.2.0 --conservative\r\nrails _4.2.0_ new exampleapp\r\ncd exampleapp\r\necho \"gem 'activerecord-fb-adapter'\" >> Gemfile\r\nruby -pi -e 'gsub(/adapter: sqlite3/, \"adapter: fb\\n  username: sysdba\\n  password: masterkey\\n  host: localhost\")' config/database.yml\r\nruby -pi -e 'gsub(/\\.sqlite3/, \".fdb\")' config/database.yml\r\nbundle install\r\n```\r\n\r\nRun it. Once complete, `cd exampleapp`.\r\n\r\nRun `bin/rake db:create`. You'll get a segfaut.\r\n\r\nNow, run it without spring `DISABLE_SPRING=1 bin/rake db:create`. It should succeed.\r\n\r\nA similar issue exists here: https://github.com/jcupitt/ruby-vips/issues/64\r\n\r\n~~I also suspect this issue is related: https://github.com/rowland/fb/issues/38~~\r\n"},"comment":{"url":"https://api.github.com/repos/rowland/activerecord-fb-adapter/issues/comments/121285406","html_url":"https://github.com/rowland/activerecord-fb-adapter/issues/61#issuecomment-121285406","issue_url":"https://api.github.com/repos/rowland/activerecord-fb-adapter/issues/61","id":121285406,"user":{"login":"rzane","id":2731572,"avatar_url":"https://avatars.githubusercontent.com/u/2731572?v=3","gravatar_id":"","url":"https://api.github.com/users/rzane","html_url":"https://github.com/rzane","followers_url":"https://api.github.com/users/rzane/followers","following_url":"https://api.github.com/users/rzane/following{/other_user}","gists_url":"https://api.github.com/users/rzane/gists{/gist_id}","starred_url":"https://api.github.com/users/rzane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rzane/subscriptions","organizations_url":"https://api.github.com/users/rzane/orgs","repos_url":"https://api.github.com/users/rzane/repos","events_url":"https://api.github.com/users/rzane/events{/privacy}","received_events_url":"https://api.github.com/users/rzane/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T15:42:21Z","updated_at":"2015-07-14T15:42:21Z","body":"Good call @mariuz, looks like I didn't read that issue all the way.\r\n\r\nI don't think this is an issue with the adapter or with fb, but let's keep it open for others who might come across this issue.\r\n\r\nStrangely enough, adding `require: false` to `gem 'sqlite3'` also seems to resolve this issue.\r\n\r\n"}}