Project

General

Profile

Actions

Bug #16771

closed

Segmentation fault when inspecting a bound method

Added by decuplet (Nikita Shilnikov) over 4 years ago. Updated about 4 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:97756]

Description

This piece of code leads to a crash in ruby 2.7.1.

bound_method = Kernel.instance_method(:respond_to?).bind(Object.new)
100000.times { bound_method.inspect }

I cannot reproduce the error in 2.7.0 so this must be new.
I attached the output, didn't bother with the crash report log, though. It should be easily reproducible since I found it on CI which runs a different OS.


Files

output.txt (41.3 KB) output.txt decuplet (Nikita Shilnikov), 04/08/2020 10:26 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0