# SEGV by String#clone

**URL:** <https://www.ruby-forum.com/t/segv-by-string-clone/124267>\
**Category:** Development\
**Created:** [December 27, 2007, 7:31am UTC](https://www.ruby-forum.com/t/segv-by-string-clone/124267 "2007-12-27T07:31:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/77aa72/32.png) [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Post date:** [December 27, 2007, 7:31am UTC](https://www.ruby-forum.com/t/segv-by-string-clone/124267/1 "2007-12-27T07:31:35Z")

</div>

e$B@\>;3OB9-$G$9!#e(B

/dev/nulle$B$rFI$\_9~$s$@e(BStringe$B$re(Bclonee$B$9$k$HMn$A$^$9!#e(B

% 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
