Forum: Ruby-core 1.9.3p194 [BUG] Segmentation fault

233c279c012ebac792aaa805f966cbc7?d=identicon&s=25 steveklabnik (Steve Klabnik) (Guest)
on 2013-08-05 20:09
(Received via mailing list)
Issue #6839 has been updated by steveklabnik (Steve Klabnik).

It's been quite a long time for this bug. Has it been tried on a newer
Ruby? Is there any way to get a full reproduction, possibly without
Bug #6839: 1.9.3p194 [BUG] Segmentation fault

Author: dzelle (Dustin Zelle)
Status: Feedback
Priority: Normal
Category: core
Target version: next minor
ruby -v: ruby 1.9.3p125 (2012-02-16 revision 34643) [i686-linux]

I am trying to process tweets on engineyard for a rails app and
constantly get segmentation faults, seemingly at random. The core and
trace are below:

  require '../config/environment'

  Process.daemon true, false #daemonize me

  if Rails.env == "production"
    logger = "/data/cloudable/current/log/process_tweets.log"
    logger.formatter =
    logger = "../log/process_tweets.log"
    logger.formatter =

  while true

    tweets = Tweet.where(:processed => false)

    tweets.each do |tweet|
      user = User.where(:twitter_uid => "#{tweet.user_id}").first #
should be unique

      if user
        h = {:text => tweet.text, :id => tweet.tweet_id, :created_at =>
             :url => tweet.urls.first}

        tweet.processed = true if TwitterJob.find_or_create user, h! "Processed tweet %d" % tweet.tweet_id
    end "Waiting to poll for new tweets"
    sleep 5 # wait to poll for new unprocessed tweets


warning: already initialized constant SMTPSession
warning: already initialized constant POP
warning: already initialized constant POPSession
warning: already initialized constant POP3Session
warning: already initialized constant APOPSession
[BUG] Segmentation fault ruby 1.9.3p125 (2012-02-16 revision 34643)
This topic is locked and can not be replied to.