Segmentation fault with ActionMailer with Ruby 1.9.3-p125

I happily sent email from my web app with ActionMailer using ruby ​​1.9.2-p180. Then I upgraded to ruby ​​1.9.3-p125 using RVM.

Now I am getting segmentation error every time I try to send and send via email.

/Users/disaacs/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/net/smtp.rb:583: [BUG] Segmentation fault
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin10.8.0]

-- Control frame information -----------------------------------------------
c:0092 p:---- s:0499 b:0499 l:000498 d:000498 CFUNC  :connect
c:0091 p:0059 s:0496 b:0496 l:000495 d:000495 METHOD /Users/disaacs/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/net/smtp.rb:583
c:0090 p:0255 s:0491 b:0490 l:001180 d:001180 METHOD /Users/disaacs/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/net/smtp.rb:560
c:0089 p:0047 s:0482 b:0482 l:000481 d:000481 METHOD /Users/disaacs/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/net/smtp.rb:519
c:0088 p:0496 s:0475 b:0475 l:000474 d:000474 METHOD /Users/disaacs/.rvm/gems/ruby-1.9.3-p125/gems/mail-2.3.0/lib/mail/network/delivery_methods/smtp.rb:128
c:0087 p:0031 s:0464 b:0464 l:000463 d:000463 METHOD /Users/disaacs/.rvm/gems/ruby-1.9.3-p125/gems/mail-2.3.0/lib/mail/message.rb:1989
c:0086 p:0009 s:0460 b:0460 l:000436 d:000459 BLOCK  /Users/disaacs/.rvm/gems/ruby-1.9.3-p125/gems/mail-2.3.0/lib/mail/message.rb:230
c:0085 p:0021 s:0458 b:0458 l:000440 d:000457 BLOCK  /Users/disaacs/.rvm/gems/ruby-1.9.3-p125/gems/actionmailer-3.1.1/lib/action_mailer/base.rb:432


I've seen some similar questions , but nothing with definitive answers. Is this a well-known issue with no answer?

I am running Rails 3.1.1 on OSX 10.6.8.


source to share

1 answer

I had a similar issue with Paperclip which was related to the way opensl was compiled when installing ruby ​​1.9.3. Not 100% sure if this is the same problem you have, but I would say it is.

To fix this problem, I reinstalled the ruby ​​and fresh gemset after installing the rvm openssl pkg:

$ rvm pkg install openssl
$ rvm remove 1.9.3-p125
$ rvm install 1.9.3-p125 --with-openssl-dir=$rvm_path/usr




All Articles