From: Nobuyoshi Nakada Date: 2009-03-18T11:14:05+09:00 Subject: [ruby-core:22925] Re: [Bug #1227] [BUG] object allocation during garbage collection phase Hi, At Mon, 9 Mar 2009 19:24:33 +0900, daz wrote in [ruby-core:22781]: > Maybe this, from: > http://rubyforge.org/scm/?group_id=1814 > > svn checkout http://ruby-prof.rubyforge.org/svn/ > or > svn checkout svn://rubyforge.org/var/svn/ruby-prof Thank you. It was a bug of ruby-prof. It tries to allocate an object during mark phase. Index: ext/ruby_prof.c =================================================================== --- ext/ruby_prof.c (revision 362) +++ ext/ruby_prof.c (working copy) @@ -311,8 +311,8 @@ static void prof_call_info_mark(prof_call_info_t *call_info) { - rb_gc_mark(prof_method_wrap(call_info->target)); + rb_gc_mark(call_info->target->object); rb_gc_mark(call_info->children); if (call_info->parent) - rb_gc_mark(prof_call_info_wrap(call_info->parent)); + rb_gc_mark(call_info->parent->object); } -- Nobu Nakada