From: Tanaka Akira Date: 2007-10-09T15:28:15+09:00 Subject: [ruby-dev:31982] SEGV by permutation 以下のようにすると SEGV します。 % ./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 ------------------------------------------------------- [BUG] Segmentation fault ruby 1.9.0 (2007-10-07) [i686-linux] -- [田中 哲][たなか あきら][Tanaka Akira]