Forum: Ruby-core [ruby-trunk - Bug #8880][Open] Refinements bug in ruby 2.1.0dev (2013-09-08) [x86_64-linux]

768c4401e9e8dc378a841955a7df728a?d=identicon&s=25 minad (Daniel Mendler) (Guest)
on 2013-09-09 03:13
(Received via mailing list)
Issue #8880 has been reported by minad (Daniel Mendler).

----------------------------------------
Bug #8880: Refinements bug in ruby 2.1.0dev (2013-09-08) [x86_64-linux]
https://bugs.ruby-lang.org/issues/8880

Author: minad (Daniel Mendler)
Status: Open
Priority: Normal
Assignee:
Category: core
Target version: current: 2.1.0
ruby -v:  ruby 2.1.0dev (2013-09-08) [x86_64-linux]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


Hi,

I found a bug in the refinements implementation of Ruby 2.1.0. It is
related to https://bugs.ruby-lang.org/issues/8722. On ruby 2.0.0p0
(2013-02-24 revision 39474) this does not occur.

The VM segfaults when the attached code is executed. The problem is that
a used refinement is modified afterwards.

Daniel
F1d6cc2b735bfd82c8773172da2aeab9?d=identicon&s=25 Nobuyoshi Nakada (nobu)
on 2013-09-09 06:14
(Received via mailing list)
Issue #8880 has been updated by nobu (Nobuyoshi Nakada).


#8722 is irrelevant, and it occurs regardless of eval.

Seems refined method definition doesn't increase seq in the class.
----------------------------------------
Bug #8880: Refinements bug in ruby 2.1.0dev (2013-09-08) [x86_64-linux]
https://bugs.ruby-lang.org/issues/8880#change-41692

Author: minad (Daniel Mendler)
Status: Open
Priority: Normal
Assignee:
Category: core
Target version: current: 2.1.0
ruby -v:  ruby 2.1.0dev (2013-09-08) [x86_64-linux]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


Hi,

I found a bug in the refinements implementation of Ruby 2.1.0. It is
related to https://bugs.ruby-lang.org/issues/8722. On ruby 2.0.0p0
(2013-02-24 revision 39474) this does not occur.

The VM segfaults when the attached code is executed. The problem is that
a used refinement is modified afterwards.

Daniel
F1d6cc2b735bfd82c8773172da2aeab9?d=identicon&s=25 Nobuyoshi Nakada (nobu)
on 2013-09-09 09:58
(Received via mailing list)
Issue #8880 has been updated by nobu (Nobuyoshi Nakada).

Backport changed from 1.9.3: UNKNOWN, 2.0.0: UNKNOWN to 1.9.3: DONTNEED,
2.0.0: DONTNEED


----------------------------------------
Bug #8880: Refinements bug in ruby 2.1.0dev (2013-09-08) [x86_64-linux]
https://bugs.ruby-lang.org/issues/8880#change-41696

Author: minad (Daniel Mendler)
Status: Closed
Priority: Normal
Assignee:
Category: core
Target version: current: 2.1.0
ruby -v:  ruby 2.1.0dev (2013-09-08) [x86_64-linux]
Backport: 1.9.3: DONTNEED, 2.0.0: DONTNEED


Hi,

I found a bug in the refinements implementation of Ruby 2.1.0. It is
related to https://bugs.ruby-lang.org/issues/8722. On ruby 2.0.0p0
(2013-02-24 revision 39474) this does not occur.

The VM segfaults when the attached code is executed. The problem is that
a used refinement is modified afterwards.

Daniel
This topic is locked and can not be replied to.