This project is archived and is in readonly mode.

#1109 ✓resolved
georgiev

object allocation during garbage collection phase

Reported by georgiev | September 25th, 2008 @ 09:29 AM | in 3.x

I am experiancing random "object allocation during garbage collection phase" errors in rails app. I tried upgrading ruby and rails - the error persists with ruby 1.8.6_p287/1.8.7_p72 / rails 2.1.0/2.1.1. Also tried in different servers - mongrel and apache/mod_rails.

The error araises from random locations too. The most frequent one is "/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/callbacks.rb:271"

Unortunately I have no idea how to make a relatively simple script to reproduce the error.

The attachment file contains two consecutive crash events in gdb session.

system info:

Gentoo linux 2.6.25.16

uname -a Linux georgiev 2.6.25.16 #1 SMP PREEMPT Thu Sep 4 22:54:13 EEST 2008 i686 Genuine Intel(R) CPU 2160 @ 1.80GHz GenuineIntel GNU/Linux

ruby -v ruby 1.8.6 (2008-08-11 patchlevel 287) [i686-linux]

gem list

LOCAL GEMS

actionmailer (2.1.1) actionpack (2.1.1) activerecord (2.1.1) activerecord-firebird-adapter (1.0.0.9250) activeresource (2.1.1) activesupport (2.1.1) capistrano (2.5.0) cgi_multipart_eof_fix (2.5.0) daemons (1.0.10) fastthread (1.0.1) fireruby (0.4.3) gem_plugin (0.2.3) highline (1.4.0) macaddr (1.0.0) mongrel (1.1.5) net-scp (1.0.1) net-sftp (2.0.1) net-ssh (2.0.4) net-ssh-gateway (1.0.0) rails (2.1.1) rake (0.8.2) rubygems-update (1.2.0) uuidtools (1.0.3)

Comments and changes to this ticket

  • Yaroslav Markin

    Yaroslav Markin December 27th, 2008 @ 01:48 PM

    Can you reproduce this with latest rails (2.2.2)?

  • Adam Milligan

    Adam Milligan December 27th, 2008 @ 07:34 PM

    I realize I'm late to the party on this, but this is behavior we've seen at Pivotal a number of times now on a number of different projects. I've made the problem go away by updating to the latest version of RSpec in some cases, and updating to the latest version of LibXML in other cases. I have yet to see anything that indicates Rails is causing the bug to manifest.

    Short mentions of this bug, and the havoc it has caused at http://pivotallabs.com/users/bri... and http://pivotallabs.com/blabs/arc... .

  • georgiev

    georgiev January 2nd, 2009 @ 01:57 PM

    I managed to narrow down this to a bug in the firebird-adapter - leaking open result set objects.

    In case someone else infected with the firebird-adapter bugs finds this - the attached file contains fix for that particular bug along with various fixes/enhancements from the Scott Knight patches. ;)

  • Pratik

    Pratik March 7th, 2009 @ 03:06 PM

    • State changed from “new” to “incomplete”

    georgiev : Firebird related code doesn't really live in the core anymore.

    Also, I don't think there is any point in keeping this ticket open unless the problem can easily be reproduced. Will reopen once we have a failing test or more details.

    Thanks.

  • Jeremy Kemper

    Jeremy Kemper May 4th, 2010 @ 06:48 PM

    • Milestone changed from 2.x to 3.x
  • Mike Riley

    Mike Riley July 29th, 2010 @ 05:22 PM

    • State changed from “incomplete” to “resolved”
    • Importance changed from “” to “”

    Hello,

    I am going to close this ticket. If you can easily reproduce this we can investigate further.

    Mike Riley

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Tags

Pages