[ruby-core:63535] [ruby-trunk - Bug #9454] The define_method(:class) segfault

From: usa@...
Date: 2014-07-03 04:37:35 UTC
List: ruby-core #63535
Issue #9454 has been updated by Usaku NAKAMURA.

Backport changed from 1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: DONE to 1.9.3: U=
NKNOWN, 2.0.0: DONE, 2.1: DONE

backported into `ruby_2_0_0` at r46667.

----------------------------------------
Bug #9454: The define_method(:class) segfault
https://bugs.ruby-lang.org/issues/9454#change-47583

* Author: Kyrylo Silin
* Status: Closed
* Priority: Normal
* Assignee:=20
* Category:=20
* Target version:=20
* ruby -v: ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]
* Backport: 1.9.3: UNKNOWN, 2.0.0: DONE, 2.1: DONE
----------------------------------------
Ruby 2.1.0p0 segfaults when I invoke the following code.

    define_method(:class) { self.class }
    self.class #=3D> segfault :(

It affects exclusively Ruby 2.1.0p0 (I also tested on the most recent 2.0.0=
, 1.9.3 and 1.8.7).

By the way, on the contrary, the following code *does not segfault*.

    def self.class; self.class end
    self.class #=3D> SystemStackError

Viva la Ucraino revoluci=C3=B3n!

---Files--------------------------------
bug9454.txt (625 KB)


--=20
https://bugs.ruby-lang.org/

In This Thread

Prev Next