# SEGV by permutation

**URL:** <https://www.ruby-forum.com/t/segv-by-permutation/116741>\
**Category:** Development\
**Created:** [October 9, 2007, 8:31am UTC](https://www.ruby-forum.com/t/segv-by-permutation/116741 "2007-10-09T08:31:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tanaka\_A](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/c67d28/32.png) [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Post date:** [October 9, 2007, 8:31am UTC](https://www.ruby-forum.com/t/segv-by-permutation/116741/1 "2007-10-09T08:31:34Z")

</div>

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

## % ./ruby -e ’ ary = (1…10).to\_a ary.permutation(2) {|x| if x == [1,2] ObjectSpace.each\_object(String) {|s| s.clear if s.length == 40 } end }’ -e:3: – control frame ---------- c:0004 p:---- s:0010 b:0010 l:000009 d:000009 CFUNC :permutation c:0003 p:0020 s:0006 b:0006 l:000005 d:000005 TOP -e:3 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:3:in `’”  
– backtrace of native function call (Use addr2line) –  
0x80f9dda  
0x81170b8  
0x8117157  
0x80c2b29  
0xb7f31420  
0x8104627  
0x8104888  
0x80f0019  
0x80f7909  
0x80f7486  
0x80f3e3d  
0x80f7ae2  
0x80f8127  
0x805aafd  
0x805abac  
0x8057d74  
0xb7d9bea8  
0x8057c91
