MRI crashes with 'Stack inconsistency error' when a method which yields is called recursively in a particular way
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?
Updated by ko1 (Koichi Sasada) almost 5 years ago
- Status changed from Assigned to Closed
Applied in changeset r51651.
- vm_insnhelper.c (vm_invoke_block): we should not expect ci->argc is stable after invoking a block. [Bug #11451]
- test/ruby/test_yield.rb: add a test. This test script is given by Alex Dowad.