Issue #6181 has been updated by _ wanabe.


This issue may be due to Mac bundled OpenSSL like [Bug #6886].
Two crash reports (this and [Bug #6886]'s) are similar in that crashed threads have called '`CRYPTO_get_ex_data`' before '`_sigtramp`' and crashes have been triggered by '`ossl_start_ssl`'.

----------------------------------------
Bug #6181: Ruby crash when trying to send a mail (tls/gmail)
https://bugs.ruby-lang.org/issues/6181#change-50970

* Author: Mariano Simone
* Status: Assigned
* Priority: Normal
* Assignee: Martin Bosslet
* ruby -v: ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin10.8.0]
* Backport: 
----------------------------------------
The following code made ruby crash:

require 'net/smtp'

smtp = Net::SMTP.new 'smtp.gmail.com', 587

smtp.enable_starttls

smtp.start("gmail.com", "***edited***", "***edited***", :login) do
  smtp.send_message("hello world!!", "mljsimone / gmail.com", "undefined.behaviour / gmail.com")
end

---Files--------------------------------
ruby_2012-03-21-002337_Mariano-Simones-MacBook-Pro.crash (6.85 KB)
crash.txt (4.02 KB)


-- 
https://bugs.ruby-lang.org/