Segmentation fault with rails #3177
-
|
Describe the bug Puma config: # config/puma.rb
workers Integer(ENV['WEB_CONCURRENCY'] || 4)
threads_count = Integer(ENV['RAILS_MAX_THREADS'] || 5)
threads threads_count, threads_count
port ENV['PORT'] || 3000
environment ENV['RACK_ENV'] || 'development'
preload_app!
on_worker_boot do
# Worker specific setup for Rails 4.1+
# See: https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server#on-worker-boot
ActiveRecord::Base.establish_connection
endTo Reproduce Sadly, I can't share much of the codebase. The app is started with the following command: It starts fine, but upon receiving any request crashes. Full crash report can be found here: https://gist.github.com/aliismayilov/bbfd82826202dc7e8c7b9913b5973799 Expected behavior Desktop (please complete the following information):
Please let me know if I can provide more insight. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
|
This is not a Puma issue. The segfault is happening in the pg gem. |
Beta Was this translation helpful? Give feedback.
-
|
See ged/ruby-pg#311 (comment) for more info and possible workarounds |
Beta Was this translation helpful? Give feedback.
See ged/ruby-pg#311 (comment) for more info and possible workarounds