From: rob@... Date: 2017-06-04T22:51:07+00:00 Subject: [ruby-core:81573] [Ruby trunk Bug#13605] GC bug calling `ObjectSpace.each_object` Issue #13605 has been updated by robertgleeson (Robert Gleeson). robertgleeson (Robert Gleeson) wrote: > The segfault no longer happens, since https://github.com/pry/pry/pull/1611/commits/94316852f5c1114f3073876558085835f2cf5377. > if you want to reproduce a commit before that one should work, on the `respond_to-2.4-warnings` branch. Spoke too soon, i think we just got lucky, it still happens when i try running the suite many times. ---------------------------------------- Bug #13605: GC bug calling `ObjectSpace.each_object` https://bugs.ruby-lang.org/issues/13605#change-65275 * Author: ryanf (Ryan Fitzgerald) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux] * Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN ---------------------------------------- This code made Ruby bail out with the message "[BUG] rb_gc_mark(): 0x000000040dc740 is T_NONE": ~~~ ruby 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) patch-for-2508d68e.patch (8.07 KB) Dockerfile (353 Bytes) -- https://bugs.ruby-lang.org/ Unsubscribe: