I'm running Postgres 12.1, Ruby 2.6.5 and pg 1.1.4 on MacOS Catalina. This also happens on Ruby 2.5.1 and 2.5.7 as well as MacOS Mojave. It does not happen with Postgres 10 or 11.
Running the following small script will cause a segfault.
#!/usr/bin/env ruby
require 'pg'
PG.connect(:host => 'localhost', :user => 'username', :dbname => 'test_db')
Process.fork do
PG.connect(:host => 'localhost', :user => 'username', :dbname => 'test_db')
end
See the attached segfault.txt and crash_report.txt
I'm running Postgres 12.1, Ruby 2.6.5 and pg 1.1.4 on MacOS Catalina. This also happens on Ruby 2.5.1 and 2.5.7 as well as MacOS Mojave. It does not happen with Postgres 10 or 11.
Running the following small script will cause a segfault.
See the attached segfault.txt and crash_report.txt