# \[Bug:1.9\] method\_missing $B$N:FDj5A$G(B Stack consistency error

**URL:** <https://www.ruby-forum.com/t/bug-1-9-method-missing-b-n-fdj5a-g-b-stack-consistency-error/147333>\
**Category:** Development\
**Created:** [August 31, 2008, 2:12pm UTC](https://www.ruby-forum.com/t/bug-1-9-method-missing-b-n-fdj5a-g-b-stack-consistency-error/147333 "2008-08-31T14:12:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wanabe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/51bf81/32.png) [@wanabe](https://www.ruby-forum.com/u/wanabe)\
**Post date:** [August 31, 2008, 2:12pm UTC](https://www.ruby-forum.com/t/bug-1-9-method-missing-b-n-fdj5a-g-b-stack-consistency-error/147333/1 "2008-08-31T14:12:35Z")

</div>

e$B%o%J%Y$H?=$7$^$9!#e(B

[Bug #513] e$B$H;w$?8=\>]$,e(B vm\_method\_missing e$BCf$Ge(B  
POPN e$BE~C#A0$Ke(B break e$B$7$?\>l9g$K$b5/$-$k$h$&$G$9!#e(B

$ ruby -e ’  
def method\_missing(m)  
yield  
end  
foo {break}  
’  
-e:5: [BUG] Stack consistency error (sp: 7, bp: 6)  
ruby 1.9.0 (2008-08-31 revision 18997) [i386-mingw32]

## – control frame ---------- c:0003 p:0027 s:0007 b:0006 l:000005 d:000005 TOP -e:5 c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH :private\_class\_method c:0001 p:0000 s:0002 b:0002 l:000001 d:000001 TOP :384

DBG\> : “-e:5:in `’”

This application has requested the Runtime to terminate it in an unusual  
way.  
Please contact the application’s support team for more information.

---

<div class="post-metadata">

**Author:** ![wanabe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/51bf81/32.png) [@wanabe](https://www.ruby-forum.com/u/wanabe)\
**Post date:** [September 2, 2008, 5:27pm UTC](https://www.ruby-forum.com/t/bug-1-9-method-missing-b-n-fdj5a-g-b-stack-consistency-error/147333/2 "2008-09-02T17:27:42Z")

</div>

e$B%A%1%C%He(B #529 e$B$,99?7$5$l$^$7$?!#e(B (by Yusuke E.)

e$B%9%F!\<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B  
e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B

## Applied in changeset r19072.

[http://redmine.ruby-lang.org/issues/show/529](http://redmine.ruby-lang.org/issues/show/529)
