Project

General

Profile

Misc #3757

GC bug after loading gem

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

Status:
Closed
Priority:
Normal
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

History

#1

Updated by rogerdpack (Roger Pack) over 9 years ago

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

#2

Updated by rogerdpack (Roger Pack) over 9 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

#3

Updated by jeremyevans0 (Jeremy Evans) 4 months ago

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

Also available in: Atom PDF