Project

General

Profile

Actions

Backport #9248

closed

Struct methods, segmentation fault

Added by Soilent (Konstantin x) about 11 years ago. Updated almost 11 years ago.


Description

=begin
The following snippet causes segmentation fault:

(({p Struct.new(:method_with_questionmark?).new.methods}))

This happens when accessor method name contains question mark.
=end


Related issues 1 (0 open1 closed)

Is duplicate of Ruby master - Bug #8756: SEGFAULT caused by `p Struct.new(:q?).instance_methods`ClosedGlass_saga (Masaki Matsushita)08/09/2013Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0