I am setting up a rails application on Ubuntu 18.04
. My ruby version is 2.1.4
. Postgres version is (PostgreSQL) 10.10
.
I installed gems using rails Gemfile
.
Following is the snippet of error that I got while executing rake db:create
.
/home/nishant/.rvm/gems/ruby-2.1.4/gems/puma-2.9.2/lib/puma/puma_http11.so: [BUG] Segmentation fault at 0x00000000000000
ruby 2.1.4p265 (2014-10-27 revision 48166) [x86_64-linux]
-- Control frame information -----------------------------------------------
c:0036 p:-11855247756540 s:0130 e:000129 TOP [FINISH]
c:0035 p:---- s:0128 e:000127 CFUNC :require
This error occurs for any
rake
command.
Can anyone provide a solution/fix for this?
As pointed by Casper in comment to the question, the problem got solved by installing a newer version of puma server. I installed puma version 3.8.2. With that puma -v
gives proper output. also rake db:create
works.