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

Segfaults when using with Rails 5.2/Ruby 2.5.1 #443

Open
nickmjones opened this issue Apr 27, 2018 · 2 comments
Open

Segfaults when using with Rails 5.2/Ruby 2.5.1 #443

nickmjones opened this issue Apr 27, 2018 · 2 comments

Comments

@nickmjones
Copy link

I'm pulling my hair out trying to work around this issue. I've installed version 2.1.3, and when I try to issue `rails db:create' I get almost 2000 lines of segfault errors (that exceed my scroll back buffer) that conclude with:

You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

I have no other Postgres binaries install or running. This is High Sierra 10.13.4. Super minimal Gemfile which looks like the following:

source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby '2.5.1'
gem 'rails', '~> 5.2.0'
gem 'pg'
gem 'puma', '~> 3.11'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.2'
gem 'turbolinks', '~> 5'
gem 'jbuilder', '~> 2.5'
gem 'bootsnap', '>= 1.1.0', require: false
gem 'bourbon'
gem 'devise'
gem 'administrate'
gem 'sendgrid'
gem 'cancancan', '~> 2.0'

group :development, :test do
  gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
end

group :development do
  gem 'web-console', '>= 3.3.0'
  gem 'listen', '>= 3.0.5', '< 3.2'
  gem 'spring'
  gem 'spring-watcher-listen', '~> 2.0.0'
end

group :test do
  gem 'capybara', '>= 2.15', '< 4.0'
  gem 'selenium-webdriver'
  gem 'chromedriver-helper'
end

I'm at a total loss as to why I'm getting such an over the top error. Any help would be very much appreciated.

@jakob
Copy link
Member

jakob commented Apr 27, 2018

I have limited experience with Ruby, so please take my hints with a grain of salt.

First of all, did you try installing the pg gem with archflags as suggested on postgresapp.com? I think there was an issue if you just do gem install pg (or use bundle install)

Second of all, without error messages, this is going to be difficult. You can do rails db:create &>output.txt to save output to a file. Attach this file to the issue, maybe then someone could help.

Finally did you also report this bug to ruby? Since the error message suggests submitting a bug to the ruby project, I’m wondering why you think this is related to Postgres.app?

@nickmjones
Copy link
Author

Thank, I'll try to get the full error messages. I'll also consider making an issue on the Ruby project.

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

No branches or pull requests

2 participants