dcparker / ruby-gmail

A Rubyesque interface to Gmail. Connect to Gmail via IMAP and manipulate emails and labels. Send email with your Gmail account via SMTP. Includes full support for parsing and generating MIME messages.
http://dcparker.github.com/ruby-gmail
792 stars 123 forks source link

Segmentation fault when using mysql and rails3 #34

Closed schlick closed 11 years ago

schlick commented 13 years ago

Hi,

I always get a segmentation fault whenever I try to use ruby-gmail in my rails 3 application.

Here's my steps to generate the error:

rails new my_app -d mysql
cd my_app
echo "gem 'mime'\ngem 'ruby-gmail'" >> Gemfile
bundle install
rails console

In the console:

require 'mime/message'
require 'gmail'
gmail = Gmail.new('my_gmail_email','my_password')

This generates the following error (truncated):

/Users/michaelm/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/net/imap.rb:1397: [BUG] Segmentation fault

This is under Ruby 1.9.2-p0, Rails 3.0.4 and mysql2 gem 0.2.6.

It works fine under Rails 2.3. It also works fine when I change the database from mysql to sqlite.

Any ideas and how to get it working with mysql?

Thanks,

Michael.

joshaven commented 13 years ago

I am sorry, I don't know much about the ruby-gmail gem and don't have the time to figure it out right now... I've left this in my mail box in hopes to go over the code soon. The original developer has died. I am a good friend of his that has been trying to help out with some of the wrap-up of his projects. I am looking for a replacement project owner for this project. -- Joshaven Potter

myobie commented 11 years ago

Because of the age of this issue, I'm going to close it out.