From: nobu@... Date: 2016-03-06T01:53:38+00:00 Subject: [ruby-core:74176] [Ruby trunk Bug#12146][Rejected] Some between gem pg, postgresql and rails seems broken: active_record/connection_adapters/postgresql/database_statements.rb:155: [BUG] Segmentation fault at 0x00000000000000 Issue #12146 has been updated by Nobuyoshi Nakada. File bug-12146.log added Description updated Status changed from Open to Rejected ``` /lib64/libpthread.so.0 [0x33d820f7e0] /usr/lib64/libruby.so.1.8 [0x35bf841b0b] /home/dominim6/.rvm/gems/ruby-2.2.2@424_blogger/gems/pg-0.18.4/lib/pg_ext.so(wait_socket_readable+0x216) [0x7fe32e397a16] pg_connection.c:2418 /home/dominim6/.rvm/gems/ruby-2.2.2@424_blogger/gems/pg-0.18.4/lib/pg_ext.so(pgconn_async_exec+0x107) [0x7fe32e39bcc7] pg_connection.c:3081 ``` You mix an extension library for 1.8. Note that 2.2.2 is outdated, and 2.2.3 or later should raise `LoadError` in this case. ---------------------------------------- Bug #12146: Some between gem pg, postgresql and rails seems broken: active_record/connection_adapters/postgresql/database_statements.rb:155: [BUG] Segmentation fault at 0x00000000000000 https://bugs.ruby-lang.org/issues/12146#change-57318 * Author: Diego Carlock * Status: Rejected * Priority: Normal * Assignee: * ruby -v: ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux] * Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN ---------------------------------------- Hello, I think I found a bug. #### FRAME *Working with ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux], Centos 6, vps at Bluehost, EasyApache, whm, rails 4.2.4, rake 10.5.0, therubyracer-0.12.2. I know for sure, thanks to cPanel and whm that user and database are created. I even have another rails app in same server, with identical database.yml that works sometimes and other fails. If I reinstall the pg gem directly at gem (not via bundler) works again when failing. The trick however does not work with the second app, the one that triggers the bug. Thanks. #### BUG REPORT When running bundle exec rake assets:precompile db:migrate RAILS_ENV=production This is what comes after assets are compiled: ``` **/home/dominim6/.rvm/gems/ruby-2.2.2@424_blogger/gems/activerecord-4.2.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:155: [BUG] Segmentation fault at 0x00000000000000 ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]** (snip) Aborted (core dumped) ``` ---Files-------------------------------- bug-12146.log (250 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: