Project

General

Profile

Actions

Bug #576

closed

Segfault if Class.new is aliased

Added by jredville (Jim Deville) over 15 years ago. Updated almost 13 years ago.

Status:
Closed
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