Issue #8607 has been updated by nagachika (Tomoyuki Chikanaga).

Status changed from Open to Closed

Thank you for your investigation.
I close this ticket.
----------------------------------------
Bug #8607: Stack consistency error (sp: 16, bp: 17)
https://bugs.ruby-lang.org/issues/8607#change-40374

Author: sawa (Tsuyoshi Sawada)
Status: Closed
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-linux]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


The following code:

    class A
      attr_accessor :foo
    end
    class B
      def initialize(parent)
        @parent = parent
      end
      def method_missing(method, *args, &block)
        @parent.send(method)
      end
    end

    B.new(A.new).foo = :bar

returns:

    [BUG] Stack consistency error (sp: 16, bp: 17)

It has been reported on Stackoverflow (http://stackoverflow.com/questions/17513074/ruby-2-0-throws-bug-stack-consistency-error) by NicoSantangelo.


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