Bug #4915


segmentation fault on net/http.rb:586

Added by bhuwan (bhuwan bhuwan) about 11 years ago. Updated over 10 years ago.

Third Party's Issue
Target version:
ruby -v:
ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-darwin10.7.0]


/Users/test/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/net/http.rb:586: [BUG] Segmentation fault
ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-darwin10.7.0]

Abort trap

Attempted to do a Chargify call and received this error.
Rails 3.0.5, ruby 1.8.7 patch level 334 on Snow Leopard OS X


crash (51.1 KB) crash bhuwan (bhuwan bhuwan), 06/22/2011 08:05 AM

Related issues 3 (0 open3 closed)

Related to Ruby master - Bug #4373: http.rb:677: [BUG] Segmentation faultThird Party's Issue02/06/2011Actions
Related to Ruby master - Bug #5655: Segfault in Net::HTTP on OS X LionThird Party's Issue11/22/2011Actions
Related to Ruby master - Bug #5611: Segfault in net/http.rbClosed11/11/2011Actions

Updated by bhuwan (bhuwan bhuwan) about 11 years ago

  • happens on WEBRick and apache passenger: Jun 21 18:55:49 names-macbook ReportCrash[85295]: Saved crash report for ruby[85273] version ??? (???) to /Users/test/Library/Logs/DiagnosticReports/ruby_2011-06-21-185549_names-MacBook.crash
  • OpenSSL 0.9.8r 8 Feb 2011
  • Attached is the crash report

Updated by bhuwan (bhuwan bhuwan) about 11 years ago

Same issue occurs without rvm.

Updated by SupaIrish (Chris Irish) almost 11 years ago

I've had a similar problem a few times, and it was always because I had Ruby compiled with the incorrect OpenSSL. Do you have OpenSSL installed through MacPorts? If you do you need to point your Ruby installation at /opt/local when you compile it. See if this post helps, it's for ruby 1.9 but it's the same issue with ruby 1.8

Updated by naruse (Yui NARUSE) over 10 years ago

  • Status changed from Open to Third Party's Issue

Thank you for writing an article, Chris.


Also available in: Atom PDF