GithubHelp home page GithubHelp logo

Comments (2)

ged avatar ged commented on August 13, 2024

Original comment by Michael Granger (Bitbucket: ged, GitHub: ged).


From the full backtrace in your gist, this looks to be the same problem as <<issue 77>>. If the 'openssl' extension in the Ruby you're running is linked against a different version of OpenSSL than your PostgreSQL client library (libpq), and you load both of them, it can result in a segfault:

--1486-- /Users/kelly/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/i686-darwin11.1.0/openssl.bundle:
--1486-- dSYM directory is missing; consider using --dsymutil=yes
kdf> require_library_or_gem pg
--1486-- /Users/kelly/.rvm/gems/ruby-1.8.7-p352@jmn/gems/pg-0.11.0/lib/pg_ext.bundle:
--1486-- dSYM directory is missing; consider using --dsymutil=yes
vex amd64->IR: unhandled instruction bytes: 0xC8 0x88 0x0 0x0 0x66 0xF

The solution is to ensure that every dylib that links against OpenSSL is linked against the same version. I'm working on a way to detect this problem at runtime.

Duplicate of #77.

from ruby-pg.

ged avatar ged commented on August 13, 2024

Original comment by kelly felkins (Bitbucket: kellyfelkins, GitHub: kellyfelkins).


Thank you for the prompt reply and thank you for providing such good support.

I did the otool command as you described in the associated gist and got these results:

#!shell

kelly@Kellys-MacBook-Air: ~/workspace/jmn(master)$ otool -L ~/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/i686-darwin11.1.0/openssl.bundle 
/Users/kelly/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/i686-darwin11.1.0/openssl.bundle:
	../../.ext/i686-darwin11.1.0/openssl.bundle (compatibility version 0.0.0, current version 0.0.0)
	/Users/kelly/.rvm/rubies/ruby-1.8.7-p352/lib/libruby.dylib (compatibility version 1.8.0, current version 1.8.7)
	/usr/lib/libssl.0.9.8.dylib (compatibility version 0.9.8, current version 0.9.8)
	/usr/lib/libcrypto.0.9.8.dylib (compatibility version 0.9.8, current version 0.9.8)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.0.0)
	/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)


kelly@Kellys-MacBook-Air: ~/workspace/jmn(master)$ otool -L /usr/local/Cellar/postgresql/9.0.4/lib/libpq.5.dylib 
/usr/local/Cellar/postgresql/9.0.4/lib/libpq.5.dylib:
	/usr/local/lib/libpq.5.3.dylib (compatibility version 5.0.0, current version 5.3.0)
	/usr/lib/libssl.0.9.8.dylib (compatibility version 0.9.8, current version 44.0.0)
	/usr/lib/libcrypto.0.9.8.dylib (compatibility version 0.9.8, current version 44.0.0)
	/System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos (compatibility version 5.0.0, current version 6.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)
kelly@Kellys-MacBook-Air: ~/workspace/jmn(master)$ 

Do you see any problems here?

-Kelly

from ruby-pg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.