I am trying to use ActionMailer to send a confirmation message when a
user signs up for a site, but almost every time, Ruby segfaults on my
Notifications::deliver_signup() method. I say almost because as you
will observe, the first time I try it after firing up irb, it works!
Pasted from irb:
irb(main):002:0> User.find_by_login( ''jvoorhis'' )
=> #<User:0x2aaaace88ea8 @attributes={"type"=>nil,
"id"=>"23",
"organization_id"=>"1",
"first_name"=>"Jeremy",
"login"=>"jvoorhis",
"password"=>"225353f27052c3101d6e40a014fa093e2b5f4b80",
"last_name"=>"Voorhis",
"email"=>"jeremy-c8bdznBsMsVjznU+92uYC0EOCMrvLtNR@public.gmane.org"}>
irb(main):003:0> Notifications::deliver_signup( User.find_by_login(
''jvoorhis'' ) )
=> #<TMail::Mail port=#<TMail::StringPort:id=0x1555567395c0>
bodyport=#<TMail::StringPort:id=0x1555567387d8>>
irb(main):004:0> Notifications::deliver_signup( User.find_by_login(
''jvoorhis'' ) )
/usr/lib/ruby/1.8/net/protocol.rb:197: [BUG] Segmentation fault
ruby 1.8.2 (2005-04-11) [x86_64-linux]
Aborted
As you would guess, in the context of the web app, WEBrick dies before
it can ever give a response, and I get a connection refused error.
Thanks in advance,
Jeremy