[ruby-dev:48907] [Ruby trunk - Bug #10885] Segmentation fault when calling refined method in duplicate module
From:
nagachika00@...
Date:
2015-03-17 17:34:27 UTC
List:
ruby-dev #48907
Issue #10885 has been updated by Tomoyuki Chikanaga.
Backport changed from 2.0.0: DONE, 2.1: REQUIRED, 2.2: DONE to 2.0.0: DONE,=
2.1: DONE, 2.2: DONE
Backported into `ruby_2_1` branch at r49995.
----------------------------------------
Bug #10885: Segmentation fault when calling refined method in duplicate mod=
ule
https://bugs.ruby-lang.org/issues/10885#change-51867
* Author: Kazuki Tsujimoto
* Status: Closed
* Priority: Normal
* Assignee:=20
* ruby -v: ruby 2.3.0dev (2015-02-22) [x86_64-linux]
* Backport: 2.0.0: DONE, 2.1: DONE, 2.2: DONE
----------------------------------------
=E4=BB=A5=E4=B8=8B=E3=81=AE=E3=82=B3=E3=83=BC=E3=83=89=E3=81=A7SEGV=E3=81=
=97=E3=81=BE=E3=81=99=E3=80=82
Module=E3=82=92dup=E3=81=99=E3=82=8B=E6=99=82=E3=81=ABcref=E3=82=92=E3=82=
=B3=E3=83=94=E3=83=BC=E3=81=97=E3=81=A6=E3=81=84=E3=81=BE=E3=81=99=E3=81=8C=
=E3=80=81=E3=81=9D=E3=81=AE=E4=B8=AD=E3=81=A7nd_refinements=E3=82=92=E8=A8=
=AD=E5=AE=9A=E3=81=97=E3=81=A6=E3=81=84=E3=81=AA=E3=81=84=E3=81=AE=E3=81=8C=
=E5=8E=9F=E5=9B=A0=E3=81=A7=E3=81=99=E3=80=82
~~~ruby
module M
refine BasicObject do
def __id__
end
end
class << self
def m
__id__
end
end
end
M.dup.m
~~~
--=20
https://bugs.ruby-lang.org/