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

Also available in: Atom PDF

Like0
Like0Like0Like0