Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

object allocation during garbage collection phase

#1109

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 Migrations will not run on a fresh database 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)

Reported by georgiev · September 25th, 2008 @ 09:29 AM

State: resolved
Milestone: 3.x
Assigned to: nobody
Importance: none

Activity

  1. Yaroslav Markin
    Yaroslav Markin

    Can you reproduce this with latest rails (2.2.2)?

    December 27th, 2008 @ 01:48 PM

  2. Adam Milligan
    Adam Milligan

    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... .

    December 27th, 2008 @ 07:34 PM

  3. georgiev
    georgiev

    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. ;)

    January 2nd, 2009 @ 01:57 PM

  4. Pratik
    Pratik
    • 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.

    March 7th, 2009 @ 03:06 PM

  5. Jeremy Kemper
    Jeremy Kemper
    • Milestone changed from 2.x to 3.x

    May 4th, 2010 @ 06:48 PM

  6. Mike Riley
    Mike Riley
    • 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

    July 29th, 2010 @ 05:22 PM