From: Kazuhiro NISHIYAMA Date: 2007-12-27T15:30:05+09:00 Subject: [ruby-dev:32819] SEGV by String#clone 西山和広です。 /dev/nullを読み込んだStringをcloneすると落ちます。 % ruby-trunk -e 'File.read("/dev/null").clone' -e:1: [BUG] Segmentation fault ruby 1.9.0 (2007-12-27 revision 0) [i686-linux] -- control frame ---------- c:0005 p:---- s:0011 b:0011 l:000010 d:000010 CFUNC :initialize_copy c:0004 p:---- s:0009 b:0009 l:000008 d:000008 CFUNC :clone c:0003 p:0021 s:0006 b:0006 l:000005 d:000005 TOP -e:1 c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH :inherited c:0001 p:0000 s:0002 b:0002 l:000001 d:000001 TOP :17 --------------------------- DBG> : "-e:1:in `clone'" DBG> : "-e:1:in `
'" -- backtrace of native function call (Use addr2line) -- 0xb7eeb8c7 0xb7e31ae3 0xb7e31b59 0xb7ea9df9 0xb7f46440 0xb7ee0933 0xb7eea652 0xb7e361a9 0xb7e364ee 0xb7e3690b 0xb7e676c5 0xb7e6798b 0xb7ee093e 0xb7ee9eac 0xb7ee5077 0xb7ee9031 0xb7ee93b0 0xb7e3539b 0xb7e39d6a 0x8048724 0xb7c5fea8 0x8048621 ------------------------------------------------------- -- |ZnZ(ゼット エヌ ゼット) |西山和広(Kazuhiro NISHIYAMA)