# SEGV by def d(a) yield(a) end; d(0,&:x)

**URL:** <https://www.ruby-forum.com/t/segv-by-def-d-a-yield-a-end-d-0-x/117532>\
**Category:** Development\
**Created:** [October 17, 2007, 8:35pm UTC](https://www.ruby-forum.com/t/segv-by-def-d-a-yield-a-end-d-0-x/117532 "2007-10-17T20:35:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eklerni](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/b4bc9f/32.png) [@eklerni](https://www.ruby-forum.com/u/eklerni)\
**Post date:** [October 17, 2007, 8:35pm UTC](https://www.ruby-forum.com/t/segv-by-def-d-a-yield-a-end-d-0-x/117532/1 "2007-10-17T20:35:04Z")

</div>

eklerni e$B$G$9!#e(B

1.9e$B$G0J2\<$N$h$&$K$9$k$He(B SEGV e$B$7$^$7$?!#e(B

## C:\>ruby -e “def d(a) yield(a) end;d(0,&:x)” -e:1: – control frame ---------- c:0005 p:---- s:0012 b:0012 l:002048 d:000011 IFUNC :proc c:0004 p:0005 s:0010 b:0009 l:000008 d:000008 METHOD -e:1 c:0003 p:0016 s:0005 b:0005 l:000004 d:000004 TOP -e:1 c:0002 p:---- s:0003 b:0003 l:000002 d:000002 FINISH :inherited c:0001 p:---- s:0001 b:-001 l:000000 d:000000 ------

DBG\> : “-e:1:in `d'" DBG> : "-e:1:in`'”  
[BUG] Segmentation fault  
ruby 1.9.0 (2007-10-17) [i386-mswin32\_80]

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

e$B4D6-$Oe(B Windows XP SP2 mswine$BHG$G$9!#e(B
