[#83107] Alias Enumerable#include? to Enumerable#includes? — Alberto Almagro <albertoalmagro@...>

Hello,

9 messages 2017/10/04

[ruby-core:83078] [Ruby trunk Bug#13964] [BUG] Stack consistency error

From: naoyuki.kumagai@...
Date: 2017-10-02 05:51:11 UTC
List: ruby-core #83078
Issue #13964 has been reported by md1961 (Naoyuki Kumagai).

----------------------------------------
Bug #13964: [BUG] Stack consistency error
https://bugs.ruby-lang.org/issues/13964

* Author: md1961 (Naoyuki Kumagai)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-linux]
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
You get "[BUG] Stack consistency error" when you run attached 'bug_repro.rb'.

If you change line 44 in the script

    option_draw&.weight *= 2

to

    option_draw.weight *= 2 if option_draw

you get no error.

Also if you change line 63 in the script

    2.times do |age|

to

    1.times do |age|

you get no error neither.

Thank you in advance.


---Files--------------------------------
bug_repro.rb (1016 Bytes)
bug_repro.out (11 KB)


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

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next