Project

General

Profile

Actions

Bug #13605

closed

GC bug calling `ObjectSpace.each_object`

Added by ryanf (Ryan Fitzgerald) over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
[ruby-core:81424]

Description

This code made Ruby bail out with the message "[BUG] rb_gc_mark(): 0x000000040dc740 is T_NONE":

ObjectSpace.each_object(Module){|m|
  next if (to_ignore.include?(m) rescue true)

  if m.respond_to?(:instance_methods)
    candidates.concat m.instance_methods(false).collect(&:to_s)
  end
}

I haven't been able to repro, but it happened building Pry on Travis CI: https://travis-ci.org/pry/pry/jobs/236720971

The relevant logs are attached.


Files

each_object_bug.txt (81.9 KB) each_object_bug.txt ryanf (Ryan Fitzgerald), 05/27/2017 08:05 PM
patch-for-2508d68e.patch (8.07 KB) patch-for-2508d68e.patch wanabe (_ wanabe), 05/30/2017 01:03 AM
Dockerfile (353 Bytes) Dockerfile wanabe (_ wanabe), 05/30/2017 01:03 AM

Related issues 2 (0 open2 closed)

Related to Ruby master - Bug #13155: Segfault testing PryClosedActions
Related to Ruby master - Bug #13537: ruby crash in rb_gc_markClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0