THIS INFORMATION IS NOW OUT OF DATE, AND EXISTS HERE ONLY FOR ARCHIVAL PURPOSES
You may suffer an error that looks like this. It's possible you are setting up a new Mac, or you just recompiled your Ruby.
Excon::Errors::SocketError in ...
Bad address (Errno::EFAULT)
At fault is OpenSSL (or, an integration with it). You'll likely need to get a different version of it. Assuming you are using Homebrew, do the following...
$ brew tap homebrew/versions
$ brew versions openssl
You should see a number of versions listed, look for 1.0.1l
...
...
1.0.1l git checkout b5cffc8 /usr/local/Library/Formula/openssl.rb
...
# Get this version in your Library by doing...
$ cd /usr/local/Library/Formula/
$ git checkout b5cffc8 /usr/local/Library/Formula/openssl.rb
NOTE: Make sure you use your path and git-ref, not what is shown in this example.
Then rebuild ruby.
$ rvm reinstall 2.1.0 # CHANGE TO YOUR RUBY VERSION
And that should fix it.
I found the solution works for me on mac os x Catalina.
brew install openssl.rb