[ruby-core:71628] [Ruby trunk - Bug #11451] MRI crashes with 'Stack inconsistency error' when a method which yields is called recursively in a particular way

From: nagachika00@...
Date: 2015-11-22 15:41:44 UTC
List: ruby-core #71628
Issue #11451 has been updated by Tomoyuki Chikanaga.

Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: REQUIRED to 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: DONE

Backported into `ruby_2_2` branch at r52717.

----------------------------------------
Bug #11451: MRI crashes with 'Stack inconsistency error' when a method which yields is called recursively in a particular way
https://bugs.ruby-lang.org/issues/11451#change-55029

* Author: Alex Dowad
* Status: Closed
* Priority: Normal
* Assignee: Koichi Sasada
* ruby -v: 2.3.0dev, also present in 2.2.2
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: DONE
----------------------------------------
Dear Ruby people,

How are you? The other day, someone reported that a gem I maintain was crashing under MRI 2.2.2. I traced it through with GDB, found where it was going wrong, and wrote a tiny little patch which makes the crash go away. (Yay!) Can you look at this and check that this patch won't cause any other problems?

Thanks,
Alex Dowad

---Files--------------------------------
repro.rb (283 Bytes)
0001-Fix-crash-caused-by-recursive-yield-to-blocks-with-d.patch (1.48 KB)


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

In This Thread

Prev Next