Skip to content

Instantly share code, notes, and snippets.

@liwh
Created June 12, 2011 05:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liwh/1021285 to your computer and use it in GitHub Desktop.
Save liwh/1021285 to your computer and use it in GitHub Desktop.
/Users/Apple/.rvm/gems/ruby-1.9.2-p180@shopqi/gems/mail-2.2.18/lib/mail/core_extensions/smtp.rb:14: [BUG] Segmentation fault
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.7.0]
-- control frame ----------
c:0041 p:---- s:0165 b:0165 l:000164 d:000164 CFUNC :connect
c:0040 p:0069 s:0162 b:0162 l:000161 d:000161 METHOD /Users/Apple/.rvm/gems/ruby-1.9.2-p180@shopqi/gems/mail-2.2.18/lib/mail/core_extensions/smtp.rb:14
c:0039 p:0255 s:0157 b:0156 l:0026b0 d:0026b0 METHOD /Users/Apple/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/smtp.rb:566
c:0038 p:0047 s:0148 b:0148 l:000147 d:000147 METHOD /Users/Apple/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/smtp.rb:525
c:0037 p:0496 s:0141 b:0141 l:000140 d:000140 METHOD /Users/Apple/.rvm/gems/ruby-1.9.2-p180@shopqi/gems/mail-2.2.18/lib/mail/network/delivery_methods/smtp.rb:128
c:0036 p:0031 s:0130 b:0130 l:000129 d:000129 METHOD /Users/Apple/.rvm/gems/ruby-1.9.2-p180@shopqi/gems/mail-2.2.18/lib/mail/message.rb:1989
c:0035 p:0009 s:0126 b:0126 l:000102 d:000125 BLOCK /Users/Apple/.rvm/gems/ruby-1.9.2-p180@shopqi/gems/mail-2.2.18/lib/mail/message.rb:230
c:0034 p:0021 s:0124 b:0124 l:000106 d:000123 BLOCK /Users/Apple/.rvm/gems/ruby-1.9.2-p180@shopqi/gems/actionmailer-3.0.6/lib/action_mailer/base.rb:403
c:0033 p:0017 s:0121 b:0121 l:000111 d:000120 BLOCK /Users/Apple/.rvm/gems/ruby-1.9.2-p180@shopqi/gems/activesupport-3.0.6/lib/active_support/notifications.rb:52
c:0032 p:0032 s:0119 b:0119 l:000118 d:000118 METHOD /Users/Apple/.rvm/gems/ruby-1.9.2-p180@shopqi/gems/activesupport-3.0.6/lib/active_support/notifications/instrumenter.rb:21
c:0031 p:0036 s:0112 b:0112 l:000111 d:000111 METHOD /Users/Apple/.rvm/gems/ruby-1.9.2-p180@shopqi/gems/activesupport-3.0.6/lib/active_support/notifications.rb:52
c:0030 p:0021 s:0107 b:0107 l:000106 d:000106 METHOD /Users/Apple/.rvm/gems/ruby-1.9.2-p180@shopqi/gems/actionmailer-3.0.6/lib/action_mailer/base.rb:401
c:0029 p:0039 s:0103 b:0103 l:000102 d:000102 METHOD /Users/Apple/.rvm/gems/ruby-1.9.2-p180@shopqi/gems/mail-2.2.18/lib/mail/message.rb:230
c:0028 p:0021 s:0100 b:0100 l:002168 d:000099 EVAL (irb):3
c:0027 p:---- s:0098 b:0098 l:000097 d:000097 FINISH
c:0026 p:---- s:0096 b:0096 l:000095 d:000095 CFUNC :eval
c:0025 p:0028 s:0089 b:0089 l:000088 d:000088 METHOD /Users/Apple/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/irb/workspace.rb:80
c:0024 p:0033 s:0082 b:0081 l:000080 d:000080 METHOD /Users/Apple/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/irb/context.rb:254
c:0023 p:0031 s:0076 b:0076 l:002558 d:000075 BLOCK /Users/Apple/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/irb.rb:159
c:0022 p:0042 s:0068 b:0068 l:000067 d:000067 METHOD /Users/Apple/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/irb.rb:273
c:0021 p:0011 s:0063 b:0063 l:002558 d:000062 BLOCK /Users/Apple/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/irb.rb:156
c:0020 p:0144 s:0059 b:0059 l:000042 d:000058 BLOCK /Users/Apple/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/irb/ruby-lex.rb:243
c:0019 p:---- s:0056 b:0056 l:000055 d:000055 FINISH
c:0018 p:---- s:0054 b:0054 l:000053 d:000053 CFUNC :loop
c:0017 p:0009 s:0051 b:0051 l:000042 d:000050 BLOCK /Users/Apple/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/irb/ruby-lex.rb:229
c:0016 p:---- s:0049 b:0049 l:000048 d:000048 FINISH
c:0015 p:---- s:0047 b:0047 l:000046 d:000046 CFUNC :catch
c:0014 p:0023 s:0043 b:0043 l:000042 d:000042 METHOD /Users/Apple/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/irb/ruby-lex.rb:228
c:0013 p:0046 s:0040 b:0040 l:002558 d:002558 METHOD /Users/Apple/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/irb.rb:155
c:0012 p:0011 s:0037 b:0037 l:0010f8 d:000036 BLOCK /Users/Apple/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/irb.rb:70
c:0011 p:---- s:0035 b:0035 l:000034 d:000034 FINISH
c:0010 p:---- s:0033 b:0033 l:000032 d:000032 CFUNC :catch
c:0009 p:0183 s:0029 b:0029 l:0010f8 d:0010f8 METHOD /Users/Apple/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/irb.rb:69
c:0008 p:0210 s:0024 b:0024 l:000ee0 d:000ee0 METHOD /Users/Apple/.rvm/gems/ruby-1.9.2-p180@shopqi/gems/railties-3.0.6/lib/rails/commands/console.rb:44
c:0007 p:0019 s:0020 b:0020 l:000019 d:000019 METHOD /Users/Apple/.rvm/gems/ruby-1.9.2-p180@shopqi/gems/railties-3.0.6/lib/rails/commands/console.rb:8
c:0006 p:0430 s:0016 b:0016 l:000015 d:000015 TOP /Users/Apple/.rvm/gems/ruby-1.9.2-p180@shopqi/gems/railties-3.0.6/lib/rails/commands.rb:23
c:0005 p:---- s:0012 b:0012 l:000011 d:000011 FINISH
c:0004 p:---- s:0010 b:0010 l:000009 d:000009 CFUNC :require
c:0003 p:0061 s:0006 b:0006 l:0014e8 d:001bb8 EVAL script/rails:6
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:0014e8 d:0014e8 TOP
---------------------------
-- Ruby level backtrace information ----------------------------------------
script/rails:6:in `<main>'
script/rails:6:in `require'
/Users/Apple/.rvm/gems/ruby-1.9.2-p180@shopqi/gems/railties-3.0.6/lib/rails/commands.rb:23:in `<top (required)>'
/Users/Apple/.rvm/gems/ruby-1.9.2-p180@shopqi/gems/railties-3.0.6/lib/rails/commands/console.rb:8:in `start'
/Users/Apple/.rvm/gems/ruby-1.9.2-p180@shopqi/gems/railties-3.0.6/lib/rails/commands/console.rb:44:in `start'
/Users/Apple/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/irb.rb:69:in `start'
/Users/Apple/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/irb.rb:69:in `catch'
/Users/Apple/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/irb.rb:70:in `block in start'
/Users/Apple/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/irb.rb:155:in `eval_input'
/Users/Apple/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/irb/ruby-lex.rb:228:in `each_top_level_statement'
/Users/Apple/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/irb/ruby-lex.rb:228:in `catch'
/Users/Apple/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/irb/ruby-lex.rb:229:in `block in each_top_level_statement'
/Users/Apple/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/irb/ruby-lex.rb:229:in `loop'
/Users/Apple/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/irb/ruby-lex.rb:243:in `block (2 levels) in each_top_level_statement'
/Users/Apple/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/irb.rb:156:in `block in eval_input'
/Users/Apple/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/irb.rb:273:in `signal_status'
/Users/Apple/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/irb.rb:159:in `block (2 levels) in eval_input'
/Users/Apple/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/irb/context.rb:254:in `evaluate'
/Users/Apple/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/irb/workspace.rb:80:in `evaluate'
/Users/Apple/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/irb/workspace.rb:80:in `eval'
(irb):3:in `irb_binding'
/Users/Apple/.rvm/gems/ruby-1.9.2-p180@shopqi/gems/mail-2.2.18/lib/mail/message.rb:230:in `deliver'
/Users/Apple/.rvm/gems/ruby-1.9.2-p180@shopqi/gems/actionmailer-3.0.6/lib/action_mailer/base.rb:401:in `deliver_mail'
/Users/Apple/.rvm/gems/ruby-1.9.2-p180@shopqi/gems/activesupport-3.0.6/lib/active_support/notifications.rb:52:in `instrument'
/Users/Apple/.rvm/gems/ruby-1.9.2-p180@shopqi/gems/activesupport-3.0.6/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/Users/Apple/.rvm/gems/ruby-1.9.2-p180@shopqi/gems/activesupport-3.0.6/lib/active_support/notifications.rb:52:in `block in instrument'
/Users/Apple/.rvm/gems/ruby-1.9.2-p180@shopqi/gems/actionmailer-3.0.6/lib/action_mailer/base.rb:403:in `block in deliver_mail'
/Users/Apple/.rvm/gems/ruby-1.9.2-p180@shopqi/gems/mail-2.2.18/lib/mail/message.rb:230:in `block in deliver'
/Users/Apple/.rvm/gems/ruby-1.9.2-p180@shopqi/gems/mail-2.2.18/lib/mail/message.rb:1989:in `do_delivery'
/Users/Apple/.rvm/gems/ruby-1.9.2-p180@shopqi/gems/mail-2.2.18/lib/mail/network/delivery_methods/smtp.rb:128:in `deliver!'
/Users/Apple/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/smtp.rb:525:in `start'
/Users/Apple/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/smtp.rb:566:in `do_start'
/Users/Apple/.rvm/gems/ruby-1.9.2-p180@shopqi/gems/mail-2.2.18/lib/mail/core_extensions/smtp.rb:14:in `tlsconnect'
/Users/Apple/.rvm/gems/ruby-1.9.2-p180@shopqi/gems/mail-2.2.18/lib/mail/core_extensions/smtp.rb:14:in `connect'
-- C level backtrace information -------------------------------------------
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
@liwh
Copy link
Author

liwh commented Jun 12, 2011

ActionMailer::Base.smtp_settings = {
:address => "smtp.gmail.com",
:port => 465, # changed from 587
:domain => "DOMAIN",
:user_name => "USERNAME",
:password => 'PASSWORD',
:authentication => "plain",
:enable_starttls_auto => false # changed from true
}

http://redmine.ruby-lang.org/issues/4373

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment