PostgresApp / PostgresApp

The easiest way to get started with PostgreSQL on the Mac
https://postgresapp.com
Other
7.36k stars 383 forks source link

Segfaults when using with Rails 5.2/Ruby 2.5.1 #443

Open nickmjones opened 6 years ago

nickmjones commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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