Project

General

Profile

Actions

Bug #576

closed

Segfault if Class.new is aliased

Added by jredville (Jim Deville) about 14 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
ruby -v:
ruby 1.8.7 (2009-02-01 revision 21927) [i686-linux]
[ruby-core:18749]

Description

=begin
By aliasing Class.new, one can get around the lack of MatchData.new (and presumably other hidden new methods). If one uses this to try and create a new MatchData, and then calls an instance method of the new MatchData object, Ruby segfaults. This has been tested and reproduced on Ruby 1.8.6p111 and Ruby 1.8.6 HEAD.
=end


Files

temp.rb (99 Bytes) temp.rb Example code jredville (Jim Deville), 09/20/2008 05:49 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0