Project

General

Profile

Actions

Bug #11451

closed

MRI crashes with 'Stack inconsistency error' when a method which yields is called recursively in a particular way

Added by alexdowad (Alex Dowad) over 9 years ago. Updated almost 9 years ago.

Status:
Closed
Target version:
-
ruby -v:
2.3.0dev, also present in 2.2.2
[ruby-core:<unknown>]

Description

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) repro.rb Minimal Ruby script for repro alexdowad (Alex Dowad), 08/17/2015 12:54 PM
0001-Fix-crash-caused-by-recursive-yield-to-blocks-with-d.patch (1.48 KB) 0001-Fix-crash-caused-by-recursive-yield-to-blocks-with-d.patch And here is the fix! alexdowad (Alex Dowad), 08/17/2015 12:55 PM

Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #11071: Stack consistency error while using RSpec and TimecopClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0