Bug #12146
closedSome between gem pg, postgresql and rails seems broken: active_record/connection_adapters/postgresql/database_statements.rb:155: [BUG] Segmentation fault at 0x00000000000000
Description
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
Updated by nobu (Nobuyoshi Nakada) about 9 years ago
- File bug-12146.log bug-12146.log added
- Description updated (diff)
- 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.
Updated by dieglock (Diego Carlock) about 9 years ago
Hello Nobuyoshi Nakada. I been trying to solve this trouble, but my experience is limited. Do you know what causes the library mix.
I changed from pg to mysql2 and I still have a library trouble. I opened a question at Stackoverflow. Any guide for newbies to solve library mixing? Thanks.
http://stackoverflow.com/questions/36022898/incompatible-library-versions-ruby-rvm-bundler