Project

General

Profile

Actions

Misc #3757

closed

GC bug after loading gem

Added by vjoel (Joel VanderWerf) over 13 years ago. Updated over 4 years ago.

Status:
Closed
Assignee:
-
[ruby-core:31914]

Description

=begin
This bug is very general. All you have to do is:

  1. require enough of the stdlib
  2. require some gem
  3. GC.stress=true
  4. create a few objects

See the attached gcbug.rb.

The bug appears on both x86_64-linux and i686-linux.

It does not happen with ruby-1.9.2, AFAICT.

It does happen with both p302 and p299 of ruby-1.8.7.

The bug is typically reported as one of the following:

gcbug.rb:24: [BUG] Segmentation fault
ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]

gcbug.rb:24: [BUG] rb_gc_mark(): unknown data type 0x18(0x1bbaf00) non object
ruby 1.8.7 (2010-08-16 patchlevel 302) [x86_64-linux]
=end


Files

gcbug.rb (713 Bytes) gcbug.rb vjoel (Joel VanderWerf), 08/29/2010 05:54 AM
Actions #1

Updated by rogerdpack (Roger Pack) over 13 years ago

=begin
does this occur with 1.9.3dev?
-r
=end

Actions #2

Updated by rogerdpack (Roger Pack) over 13 years ago

=begin

Is there any reason to believe it will occur with 1.9.3dev?

It might. I ran into an odd gc bug once with 1.9.3dev and not 1.9.2 (I think it's gone, but just checking out of curiosity..).

Thanks.
=end

Actions #3

Updated by jeremyevans0 (Jeremy Evans) over 4 years ago

  • Description updated (diff)
  • Status changed from Open to Closed
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0