Lion にして以来、再コンパイルした ruby-1.9.2 (p290) が VM ごと落ちる現象が頻発していた。コンパイラが gcc-llvm に変わったからなのだろうか。例えばこんな感じで...
$ ruby -e 'iter=(1..3).each; iter.next;iter.next' [BUG] Segmentation fault ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.1.0] -- control frame ---------- c:0005 p:---- s:0009 b:0009 l:000320 d:000008 IFUNC c:0004 p:---- s:0007 b:0007 l:000006 d:000006 CFUNC :each c:0003 p:---- s:0005 b:0005 l:000004 d:000004 CFUNC :each c:0002 p:---- s:0003 b:0003 l:000320 d:000002 IFUNC c:0001 p:---- s:0001 b:-001 l:000000 d:000000 ------ --------------------------- -- Ruby level backtrace information ---------------------------------------- -e:0:in `each' -e:0:in `each' -- C level backtrace information ------------------------------------------- [NOTE] You may have encountered a bug in the Ruby interpreter or extension libraries. Bug reports are welcome. For details: http://www.ruby-lang.org/bugreport.html Abort trap: 6
1.9.3 では落ちなくなった。ひとまずよかった。
0 件のコメント:
コメントを投稿