Project

General

Profile

Actions

Bug #5655

closed

Segfault in Net::HTTP on OS X Lion

Added by ahkoppel (Alex Koppel) about 13 years ago. Updated about 13 years ago.

Status:
Third Party's Issue
Assignee:
-
Target version:
ruby -v:
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.1.0]
Backport:
[ruby-core:41177]

Description

When I make an SSL call using Net::HTTP in Ruby 1.9.3p0 (installed via RVM), I'm consistently getting a segfault in OS X Lion. I've attached the OS X crash log and the output from the crash, which includes the control frame information, Ruby level backtrace information, and loaded features.

I've also been able to reproduce this in 1.9.3-head (ruby -v: ruby 1.9.3p0 (2011-11-08 revision 33661) [x86_64-darwin11.1.0]).

My environment (uname -a): Darwin Ravasaur.local 11.1.0 Darwin Kernel Version 11.1.0: Tue Jul 26 16:07:11 PDT 2011; root:xnu-1699.22.81~1/RELEASE_X86_64 x86_64

Code to reproduce:
require 'net/https'
http = Net::HTTP.new("facebook.com", 443)
store = OpenSSL::X509::Store.new
store.set_default_paths
http.cert_store = store
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
http.use_ssl = true
http_request = Net::HTTPGenericRequest.new("POST", true, true, "/koppel", {"Content-Length"=>"0"})
http.request http_request, ""


Files

ruby_2011-11-21-170444_Ravasaur.crash (15.1 KB) ruby_2011-11-21-170444_Ravasaur.crash OS X crash log ahkoppel (Alex Koppel), 11/22/2011 01:50 AM
crash_output.txt (33.1 KB) crash_output.txt Ruby output from crash ahkoppel (Alex Koppel), 11/22/2011 01:50 AM

Related issues 2 (0 open2 closed)

Related to Ruby 1.8 - Bug #4915: segmentation fault on net/http.rb:586Third Party's Issue06/22/2011Actions
Related to Ruby master - Bug #4373: http.rb:677: [BUG] Segmentation faultThird Party's Issue02/06/2011Actions

Updated by naruse (Yui NARUSE) about 13 years ago

  • Status changed from Open to Third Party's Issue

Install openssl with macports or homebrew or something and use it.
See http://www.christopherirish.com/2011/09/02/ruby-1-9-2-segmentation-fault-and-openssl/

Actions

Also available in: Atom PDF

Like0
Like0